« first day (3449 days earlier)      last day (1485 days later) » 

12:11 AM
Sent. Sorry if it's a duplicate discussion, because I don't remember it.
If we change that, then zend_include_or_eval should be fine, right? :)
 
Making SPL slightly less shit: github.com/php/php-src/pull/5301
 
@Girgias I was in an inhibited state when I sent you the message but to someone unaware that setlocale exists, let alone the current behavior, the RFC can be confusing at first sight
 
@Tiffany yeah, well I/Maté will have a look to improve that :)
 
12:52 AM
substr and mb_substr don't work properly in some languages. Why?

Here is an example, I try to limit the text to 200 characters, but it returns:

سلام سلام سلام سلام سلام سلام سلا ...

It's clear that it's not 200 characters.
By the way, those three dots were generated by another function. Ignore that.
 
1:11 AM
@X4748-IR You may be looking for php.net/manual/en/function.grapheme-substr.php
 
Call to undefined function grapheme_substr()

It seems it's not installed by default. What's its name in Ubuntu packages?
It's intl.
@pmmaga No... didn't work
@pmmaga I figured it out. The text was encoded lol (HTML unicodes)
 
2:12 AM
@cmb I don't think anyone wants more ini setting, but if it made it possible to do the change.... then maybe something like this (though details need to be thought through and not too terrible):
Mar 21 at 0:01, by Danack
PHP 8 - add an ini setting that controls what happens when a float to string cast is called. ini setting of 'legacy' => deprecation notice is raised, and current shitty behaviour is done. ini setting of 'sane' => locale independent conversion is done.

PHP 8.1 - remove that ini setting
 
david@‍grudl.com ・ Output Control ・ #79414
 
@MátéKocsis It's a massive issue...for some people. tbh I strongly dislike locale settings and judge people who use them. But yeah, without a decent way of doing the upgrade and having the uses of them at least give a notice would make the vote a lot closer than it would be otherwise.
 
2:31 AM
@Girgias something like this - github.com/php/php-src/pull/5303/files
 
 
2 hours later…
4:31 AM
@Jeeves lol... looks like spam but isn't
 
 
2 hours later…
6:10 AM
@MarkR I like it it can provide some optimisations, there was a time I was also thinking something about that but even with an additional handling of psr4 where you pass an array of key-pairs build from namespace and directory mappings
 
 
2 hours later…
8:23 AM
@Girgias That's supposed to make it less shit?
 
gd 2.3.0 + imagettfbbox with empty text generates warning ・ GD related ・ #79415
 
9:15 AM
@brzuchal Before I moved to swoole, I was working on micro-optimising APIs which would get hit upwards of 5 to 10 thousand times per second. Very aggressive caching etc. But when I was profiling them I was spending more than half the time in each one inside the autoloader.
 
@MarkR I'm thinking of php-http sapi started with libmicrohttpd for long running processes instead of using swoole you'll return at the end of index.php a callable which will be used for processing requests without terminating script
what do you think?
 
I just use swoole now, last week I was pushing 10,000 rps using 3 CPU cores.
 
Yeah, I get it but what do you think about SAPI like that which doesn't require from developer anything but returning a callback which accepts env creates request and passes to kernel and on terminate just flush headers, setcookie and the content - after return be ready to process next request and that's it
most of the apps written on Symfony components or PSR7 could be converted easily
no additional symbols, no additional functions classes and instances
only a callback on return of a invoked script
 
I don't think there's much point in limiting it.
Mid - Long term I think there will need to be a new SAPI that breaks away from the shared-nothing, but doing so without involving any additional support structures seems unnecearally limiting
 
9:35 AM
@MarkR Keep in mind that most of the time you see reported as spent in the autoloader is not actually in the autoloader itself, but in including the file.
 
@MarkR that belongs to the userland, the same situation like with HttpKernel PSR-7 and SapiRequest & SapiResponse RFC - if SAPI can provide easy way to get request input and convert it to own req/res objects process it and flush the response using PHP built in featues, where then is a need for additional structures support?
 
@NikiC That was my first thought, so at the time I took the list of included files and dumped a file that would just require them all one by one, dependencies first, so the autoloader would never run. I'm trying to dig up my spreadsheet but it gave a reasonable bump
 
9:56 AM
@MarkR I suppose preloading is not an option for this project yet?
 
@MátéKocsis Personally I'm all set.
But as we were discussing spl last night, it made me think back to my autoloading adventures and ponder if it made sense to allow skipping the autoloader callback entirely, even without preloading
 
Using sed, why is this failing?
sed -e 's/^TF_VAR_$//g' <-- supposed to replace all strings in a file that start with TF_VAR_ and then end abruptly
 
@Jimbo At some point I gave up on trying to make sed/awk/find work for me and always write one-off PHP scripts to do their job :(
 
10:13 AM
@MarkR I would go further and stop doing locales :-þ
@Jimbo The $ needs escaping?
@NikiC Your avatar looks remarkably like a corona virus.
9
 
10:25 AM
...
 
@brzuchal Well not now you've just told everyone :| :| :|
 
I think there is no one from Z-camp here, right?
Ican delete it
 
It's a publicly available chat and it's archived forever
 
not editions, right?
 
not that im aware of
 
10:28 AM
Ok, editions as well, but since they don't show up in transcript directly it's harder to find
 
@brzuchal *hides "I'm on team Z" badge*
 
(now we know why salathe keeps voting against things O_O)
 
/me Calling to ISP to ask for permission to cut of the internet
Yeah, gotcha :D
I wonder how Z-camp communicates... Hmmm
 
Well they want to keep things like in the early 2000s, so by MSN I assume (I miss that program)
 
@MarkR nah it's ICQ
 
10:34 AM
Is it still alive?
 
@NikiC I think this is a better idea actually
 
11:23 AM
@Girgias You've got mail
 
11:57 AM
 
"parmaeters"
 
@Derick fixed
 
Dutch for "with your friends"?
 
no, just a typo by Nikita
@Crell You've got mail! (And thanks to Nikita, we can add that new RFC to the mix too)
 
Ooo...
 
12:23 PM
@NikiC All seems sensible to me. The one thing sticking in the back of my head is if we should be trying think about named constructors, __unserialize() and other places the same pattern appears. It may be out of scope and not something we can sort out easily, just thinking aloud to make sure we're solving general cases.
 
12:48 PM
@salathe On the C side it's cleaner at lest IMHO
@MarkR Neato
@Derick Received :D Just need to make sure I've got everything setup (and brush up on C locales ...)
 
@Girgias "Hey Theseus, don't forget your ball of string."
 
:(
 
I can sum this up easily: Don't use it.
 
@Danack I was reading that page already
@Derick also true
 
12:55 PM
o/
I need advice on table/entity naming. For example, if I have a "staff" table in the db, what should I call/name each row/entity? Since staff is a collective noun, this present some issues. This table will hold all staff/people of a firm. I'm already using "users" for storing credentials, so I need a second table with a sensible name.
Actually, I'm looking for a noun that has different singular and plural forms, and can be used to refer everyone in a firm. Does such thing exist?
 
@akinuri This is the wrong approach......you have people. Those people will have roles, including a role of 'StaffMember'. But it is possible for a person to have multiple roles. For example in a school/university, it is possible for a single person to be both a teacher, and a student.
@akinuri why does staff pose a problem for you in this case though?
 
@Danack I have "users" table, so I have Users (finder) class, and User (entity) class. Can't use the same approach with staff :)
 
why not?
Is there some inbuilt class naming requirement?
 
@MarkR Name collision
Same name for both finder and entity
 
1:10 PM
Is that a requirement of some framework you're using?
 
In that case.....change both. Maybe either use StaffMember for the entity, and one of StaffMemberRepo/StaffMemberFinder/Staffing for your finder class. (I think repository is possibly a more standard name for that).
 
Nope. I just thought it make more sense this way. $this->users->get(1) returns a User instance.
 
cmb
@akinuri maybe employee?
 
@cmb Oh, I thought about many things, and I just want everything to be consistent. For example, site.com/staff/1 just beats any other alternative
I've never really needed namespaces, so I kind of have been avoiding it (both understanding and using). Would it help in this case?
 
... you should join internals
But yes, namespaces would help... in fact, everything you do should be in a namespace
 
1:16 PM
Example 4 missing text on php.net/manual/en/functions.arguments.php ・ Documentation problem ・ #79416
 
@akinuri maybe don't use English for naming things then....
 
1:48 PM
@akinuri thesaurus.com/browse/staff?s=t team, teammember
crew
personnel
I'm partial to employee, though... but, I know in the situation of academia, "employee" is an umbrella term, and I had to differentiate between faculty and non-faculty by using faculty and staff...
 
The coronavirus has claimed another victim. @NikiC, delirious with fever, has started to port HHVM into PHP
3
 
Morngins
 
@Machavity I don't know why there isn't more support for adding $this->x in the constructor/method parameter list rather than needing to move the declaration into the constructor
//example:class Point {
    public float $x;
    public float $y;
    public float $z;

    // Explicit types must match
    public function __construct(
        float $this->x = 0.0,
        float $this->y = 0.0,
        float $this->z = 0.0
    ) {}

    // no types would be "promoted"
    public function foobar(
        $this->x = 0.0,
        $this->y = 0.0,
        $this->z = 0.0
    ) {}
}
 
@ircmaxell I rather like the idea TBH. Just some social isolation humor
 
2:03 PM
And that can even solve the variadic problem:
 
I do that more often than I care to count
 
class Foo {
    public array $bar;
    public function __construct(string ... $this->bar) {}
}
 
I like it, although I'm not sure if i'd end up using it... it would save me space for sure especially when writing services, but on the flip side... I oft add comments to them
 
/cc @NikiC ^^
 
although i guess there's nothing stopping me from adding them inline to the args, even if it's a bit less clean looking
 
2:05 PM
@ircmaxell I did propose that at some point in the past
Or rather Gordon did, I wrote the implementation
 
and that was less desired than the constructor promotion?
 
I can't tell you how desired constructor promotion is going to be, but the other RFC did fail :)
 
what does "constructor promotion" mean?
 
And well, I'm not sure I see the advantage of this approach over full promotion. It removes only a part of the boilerplate, and I don't think it enables a lot of additional use-cases
 
2:10 PM
@NikiC three advantages to me: 1) Only one place to look to find the class's properties, 2) this syntax can be leveraged for all methods, not just constructors, 3) this doesn't have the variadic type problem
 
@cmb I don't understand the meaning of the word "promotion" in context of a constructor or parameters, that's my confusion
is it something to do with class hierarchy?
 
@Tiffany Usually you have to declare properties separate, and then assign them, with this the constructor arguments would become fully fledged properties
 
ahhh
 
You can construct your objects with 30% off!
 
60% off with property declarations :D
 
2:17 PM
@ircmaxell Regarding 1), I'm not sure the promotion syntax makes a lot of difference there. Either you have sane coding style, in which case your constructor is going to be sitting right there at the top with the properties readily visible, or you have shit coding style, in which case you can already spread property declarations randomly across your class (there is no requirement that they're all at the top, this is just convention)
@ircmaxell 2) is true. I guess this could benefit setter methods
And 3), well. This could be allowed for constructor promotion as well, it's not like it could be any other type than array. I'm just not sure if it's worth the special case for something that doesn't seem terribly common.
 
@NikiC Oh for sure, it isn't a "OMG THIS IS CLEARLY WTFBBQ", but if there's a way to avoid mixing syntaxes for declarations, wouldn't that be a good thing?
 
@ircmaxell Yes, I can definitely see both sides here
 
2:33 PM
So the good thing about 🇩🇪- you can get put on "100% leave", in which you don't work, you're still employed by your company, but the Government pays you 60% of your salary for 1 year. Lots of businesses being bailed out thanks to this with the current situation
 
UK does 80%... well, theoretically.
 
Think anyone will make a stink about this bit?
> Similarly, because promoted parameters imply a property declaration, nullability must be explicitly declared, and is not inferred from a null default value.
 
Doubt it, what are they going to do, complain about backwards compatibility for a feature which didn't exist?
 
2:51 PM
"or you have shit coding style" Please don't say that :(
No PSR have rules about the position of the constructor. And for me, static methods (that I use as named constructors) seem more logical to come first (because they all use the constructor)
by saying this, my only point is that IMO it's a legitimate coding style not to have the constructor on the top
 
@NikiC re: constructor property promotion, there was an RFC for this already a few years ago, and it failed, IIRC
 
Yep, it was mentioned a bit earlier
 
@Andrea That was a different RFC
 
Yup
 
3:00 PM
@NikiC it should be mentioned in the new RFC imo
 
It should indeed
 
@Andrea lol
@Andrea There really is an existing RFC for everything
 
cmb
including an implementation ;)
 
@salathe Oh god. It's like ... like I don't read the mailing list or something
 
lol, is it in write-only mode again? :P
 
@salathe Quite a lot of mails actually end up in spam :(
 
If anything, it shows some folks really want a feature like this :)
 
And not because I block people, but because the mailing list seems to be misconfigured
I think it breaks some DKIM verification or whatever all that stuff is called
Though I can't blame that particular RFC on that, as I actually replied in the discussion, apparently...
 
3:25 PM
@NikiC I don't tend to have that problem, but will very often just "mark all as read" when the same few people decide to reply to each other many, many times. :(
 
Lately I've been doing "mark all as read" too.
 
3:53 PM
There are no new ideas, just new implementations. :-)
 
@NikiC Arrays allow a trailing comma as well. Would make sense to add it to args
 
4:27 PM
obviously I need to make a competing RFC that proposes copying C++'s excellent constructor syntax /s
 
4:56 PM
There are too many RFCs already, stop it! Can't keep up with enough episodes :P
 
thought that would make you happy, more material for episodes? :D
 
5:13 PM
This week, on As the RFCs Turn, Derick finds out just how many RFCs are too many
 
yeaaah operator overloading is going for the long tail 66% crossing :D
 
What a mess Derick complaining of amount of RFCs to record episodes and Ocramius complaining about too much RFCs which makes sense ;P
 
Operator overloading is bugging me. I want the idea and want to vote yes for it, but the choice of return type and error handling sucks.
 
something I need to add to list of stuff I need to learn, bitwise operators, and bitwise stuff in general
 
cmb
5:29 PM
@Derick, it seems to me your latest mail to internals@ doesn't make sense; did you mean s/proponent/opponent/ ?
@MarkR I would prefer exceptions (which would also enable parameter type declarations), but these appear to have quite some overhead here.
 
@cmb I would have just created a dedicated class for it and done MyValue|UnsupportedResult rather than null, as that's likely a value people may wish to use to express certain results.
 
cmb
ah, well, another value than NULL could indeed be useful
 
and IMO it should throw if trying to use operands which aren't defined, just like it throws if you try to use a method which isn't defined. If those 2 things were better, it'd be a solid yes from me.
 
5:59 PM
@MarkR Voting no because the design of the idea isn't good is totally valid.
I don't have a vote at the moment; I honestly am not sure if I'd vote yes or no at this point. I've not dug into the details of this proposal yet.
@cmb Replace all nulls with monads!
 
@cmb Uh?
 
cmb
@Derick you said you are a proponent of operator overloading, but since it's internally supported, making it available to userland would make sense. Why "but", if you like it anyway?
 
@Crell Keeping in mind that we're flexible about changing the details of proposals
 
@NikiC how much can change post-RFC, though? (I honestly don't know.)
 
oh, and
 
cmb
6:05 PM
Question is what is a detail? For me, throwing notices on concat of Stringable objects is a no-go.
 
yes, I was always a strong "opponent" :-)
 
@cmb That's a valid reason to vote no, IMO. "I like the concept, but this implementation is not good, please try again with a better one" is a legit reason to vote no.
Certainly people have done that many times in the past.
 
@cmb That's a detail
 
cmb
okay then :)
 
Frankly, error handling is more important to most code design than the happy path. It never gets enough attention.
 
6:07 PM
It's not even mentioned in the RFC, so can clearly be changed
 
Crazy idea... How much work would it be to make . on callables be a pipe operator?
Would the current RFC already enable that in some cases?
 
...
Be careful, or I might have to kick you :P
 
lol.
Not a fan of composing, or using the concat operator for it? :-P
 
Eugh I'm going to change to yes, but if that null return and E_NOTICE stays I'm going to be sorely disappointed ._.
 
The null return is explicitly specified in the RFC so that may need a second RFC (Really not sure what the practice is there.)
 
6:16 PM
I'm not sure... @Nikic you're helping cheerlead it, your thoughts please?
 
@NikiC I'm genuinely curious, are you against having function composition operator?
(Because, uh, I just realized that __concat() is really easy to abuse as a bind() operation. I do not know how I feel about this.)
 
cmb
If you see $a . $b, it should be immediately clear what's happening (i.e. string concatenation). Overloading to do something completely different is … oh these nice shoes have a big hole now.
 
Yeah, but nothing enforces that I can see. which means (new Maybe($val)) . $callable1 . $callable2 . $callable3 is now suddenly possible. Right or wrong.
 
cmb
Yes, it's possible. You can do a lot of crazy stuff without operator overloading, but shouldn't. :)
 
6:34 PM
@MarkR I think I'll wait and change my mind to "yes" on 6th of april, or maybe 1st of April :)
TBH I also was opponent like Derick to operator overloading but thinking more if in other languages that didn't bring chaos maybe it could be for some narrow use cases used in PHP
Ohhhh, if I change my mind now and there will be no more votes then it's gonna be accepted O_o
 
zeev and rasmus haven't voted yet
 
Ok, I'll wait, then.
Speaking seriously I have one comment
Throwing a Notice: You have to implement the __add function in class stdClass to use this operator with an object in... for extension derived classes doesn't make sense and could be confusing
What does it say is it that developer should go and implement it in ext/standard in C now?
For all extension derived classes notices in this form is complete nonsense, right?
 
6:49 PM
@MarkR Generally any change is fine as long as there's "consensus". I'm not sure regarding the return myself, I personally like the null (but would drop the constant).
@Crell I'm definitely against using concatenation for that purpose
If you want something in the direction, I think the pipe operator |> is a much better bet
@MarkR I mainly like null because it's cheap :) And I think also fairly clear in it's purpose. There's not much else null can mean in that context.
 
@NikiC I'm just imagining null being a valid return for certain operations, particularly if null is on the RHS of the operator.
 
@MarkR That's a reasonable concern, though no example comes to mind ... do you maybe have one?
 
Am I a troll?
 
7:06 PM
Hm. I wonder if |> with a __pipe() override would be a sane (or at least not atrocious) way to implement bind().
 
@NikiC High level maths isn't my forte, but I could imagine it being used in place of an exception for things which couldn't necessarily be represented... new Real(-1) ** 0.5 in the absence of a complex type might return null for example.
 
Asking it to do something illogical should be an error, not a null or pass.
 
Agree
 
"I don't know how to do that but someone else might" and "that's not even a thing, you should feel bad for trying" are very different error conditions.
 
Pretty much all of PHP's standard library is (currently) built on returning a different type to indicate an error.
 
7:13 PM
Pretty much of all of PHP's standard library is currently wrong. ;-) (Returning false on error is just... no.)
 
Pretty much of all of PHP's sensible built-in exceptions are part of the SPL
 
Oh god, I'm getting ideas. That's never a good thing. Someone stop me...
 
@Crell You won't get any argument from me on that, i'm firmly in camp Throwable. But when creating base engine features that userland will build upon, I wouldn't presume to know there weren't legitimate cases... and null is pretty arbitrary
 
Yeah, the null bothers me. In pat because it's not clear which of the above error cases it means.
 
I really dislike that constant :| Also, can someone give me a TLDR on the discussion on why no interfaces for this?
 
7:20 PM
@pmmaga no interfaces, because you'd need 1 interface per method, because there isn't a reasonable way to group them
the interface is the type including operations you invent. say Money { __add, __sub }
 
Oh god, I think I just talked myself into supporting this RFC because it would justify a __pipe later.
 
Welcome to RFC Voters Anonymous... We'll vote for an RFC but feel shame about doing so.
 
@beberlei Hmm.. yeah, and that's very limited in terms of usefulness. I really dislike magic methods on their own, but in this case I feel divided
 
@pmmaga I think you mean __div ided
 
Dividable
 
7:27 PM
@pmmaga DivideAware
 
:D
 
__magic() { /* executed when the current $rip has its eight least significant bits zero */ }
 
@Crell While that's true. In this specific case I'd rather have the constant mean false than null
 
I'd rather it be its own type unto itself, but we don't have type classes in PHP yet.
 
Or.. I understand that exceptions aren't cheap. But if you're already overloading an operator with user code would it really make that much of a difference?
 
7:32 PM
Hm, I just realized that __pipe() would create an ambiguity. It would mean you couldn't pass a __pipe-using object to a function using a pipe. Which... well, I suppose that's the whole point, since what else would you use __pipe for?
@pmmaga I'm pretty sure creating an exception is one of the most expensive things you can possibly do in PHP. Or was when I last saw benchmarks (which were, to be fair, in the 5.x days).
 
if (Z_TYPE(retval) == IS_OBJECT && Z_OBJ(retval)->ce == ce_unsupported_operator) { ... }
 
Never mind, still works.
 
@MarkR It wouldn't be that simple. If the rhs operand accepts the overload, the exception should be caught internally somehow
 
There's no difference between what I just posted and the current implementation which is if (Z_TYPE_P(result) == IS_NULL) {
 
But now that I'm thinking of that. AFAIK, you can throw inside those magic methods. Does that equate to returning null? Will the RHS be checked in that case?
 
7:38 PM
I assume a throw would really throw...
 
I guess so
 
I don' think it checks?
 
I was hoping it was on 3v4l but no luck
 
 
1 hour later…
9:03 PM
configure --enable-zip results in failure ・ Compile Warning ・ #79418
 
9:17 PM
@NikiC 👍🏻
 
@NikiC can you clarify how constructor promition properties would work with docblocks (and potentially attributes)?
 
hi guys. little help.
I need to register a number in database. it's called CE number. there's a main CE number (only one) and then there is secondary CE numbers (can be 2-3 max). What's the best way to build this?
 
@beberlei doc blocks are mentioned in the coding style section
Attributes ... don't exist yet :P
But yes, attributes should get a mention
 
9:41 PM
@Alex maybe use transations, load the existing data from the DB, update it, write it back to the DB, then close the transaction, and also write code to handle that closing the transaction may fail. e.g. if another process has updated the data in the meantime.
There are other ways of doing this.....some of which would be more appropriate for systems if the numbers are being updated quite frequently.
 
@MarkR Ok, I checked now and indeed it doesn't try the RHS. But yeah, I still feel that with a type of Exception explicitly for this purpose would be nicer than null
 
@pmmaga Exceptions are very inefficient
And also inappropriate here, because the situation is not ... exceptional :)
Well, I guess a custom exception for this purpose could suppress collection of the backtrace
Still not great
 
I think that when someone is using the overload is already not expecting efficiency :P
 
@pmmaga Inefficiency comes on a scale :P
 
:D
 
9:54 PM
@NikiC but what about doctrine annotations in docblocks? :D
 
@beberlei I have no idea, you tell me?
@beberlei There's this comment on reddit though, probably that? reddit.com/r/PHP/comments/fpblqr/constructor_promotion_rfc/…
 
i havent read reddit comments yet, alreay 60 when i looked was a bit much :D
yes thats it
 
The good news is that the current RFC doesn't really close the door to someone doing the Exception later
 
Hm. So, I'm trying to build php-src for the first time. I cloned, installed the packages, and got to .configure, but it gives me an error that libxml-2.0 is not found. But according to dpkg, I have libxml2 already. Suggestions?
 
@Crell you need the -dev version
 
10:05 PM
Ah ha.
 
@Crell Also feel free to send a PR that adds the right package manager line for your distro to github.com/php/php-src#building-php-source-code
 
/me had a feeling that was coming...
I'm following through the internals book.
And it's make-ing now. Fingers crossed.
 
cmb
phpsdk_deps -u :P
 
10:28 PM
@NikiC what should I do with github.com/php/php-src/pull/5151 namely MacOS should I just suppress the Clang compiler warning just for the sockets extension as it's the last remaining warning, and if yes can I do that and merge it or not?
 
10:40 PM
Ok, I ended up going with yes. Now I can't wait to bitwiseNot my UserController :D
 
> PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'vld.so' in Unknown on line 0
Anyone actually used VLD successfully on PHP 5.4? lol
/cc @Derick
 
@LeviMorrison Here is your regular reminder that sunk cost fallacy is a thing.
2
 
I brought it up with my manager again.
Although I think we'll only be cutting PHP 5.4.
 
Well, I guess better than nothing
IIRC 5.5 had some non trivial changes to how call frames work
 
11:14 PM
@NikiC We don't support it yet, but we're probably going to.
Ubuntu 14.04 ESM has support until April 2022, and there are more than a few existing customers wanting it.
 
i am going to drop 5 when 8 comes out
 
I don't have the numbers, but I remember we have quite a few PHP 5.6 customers.
 
11:32 PM
/me laughs in running 7.4 in production since RC4
 
@LeviMorrison They can still run old versions if they wish
 
I think it was a strategic mistake to support PHP 5. We're way behind where we should be on practically every technical goal, because we are implementing everything twice, and PHP 5 takes longer than PHP 7 every single time.
I've said as much, but that was all done before I joined.
 
It must really suck for you, is the time expenditure worth it? At some time there has to come a point where you're spending more time supporting an ancient version than you would spend developing new features to bring in new clients
 
@MarkR I'm pretty sure that's true today.
I get paid well, and the work is challenging, and overall I enjoy it. So that's all fine :)
I'm working through a memory leak on PHP 5.4 right now. Once that's done, I have to figure out a related case where somehow calling an instance method loses its this and so the engine fatals out, also PHP 5.4.
 
I just watched Episode 10 of Picard. RIP my feels.
 
11:47 PM
(gdb) p this
$1 = (zval *) 0x5a5a5a5a5a5a5a5a
Oh boy. That's obviously a special pointer... I've corrupted memory, haven't I?
 
If you convert it to ascii, it really is a 'Z' val.
 
@MátéKocsis Not sure if this has been brought up yet, but the 3rd method in 3v4l.org/fNTRa only works because the property is protected and the anonymous class is in fact extending it. While the other 2 can be considered "abuses" I think this one is legitimate and expected
 

« first day (3449 days earlier)      last day (1485 days later) »