@Derick I want to share some profile info with one of my team so they could shove it in kcachegrind themselves, but needed to know it wouldn't be capturing any of the prod credentials first. Thanks :-)
I didn't know if it was capturing the call arguments and including them in the info
I assume by you saying only call info it's just the timing and not the params?
has there ever been an extension methods RFC? i can't seem to find one.
the context is that i was thinking about scalar objects again, and was realizing that the hardest part of such a thing may be the disagreement over method names, which methods get included, how they are implemented, etc. so i was thinking about the idea of doing scalar objects that have no methods on them at all, but allow for extension methods.
then the scalars after scalar objects would actually be the same as the scalars before. the only difference is that developers could attach runtime defined methods directly to the scalars.
right, but im also thinkign about extension methods more generally, which would allow things like attaching new functions to final classes after instantiation
@JRL General extensions, I don't think so. They could be useful for interfaces (similar to what Swift does with protocol extensions docs.swift.org/swift-book/LanguageGuide/Protocols.html#ID521) but I'm not sure there's an efficient way to implement that in PHP.
I know Brave opens a new process per tab, so you can see that on windows but to properly know which process corresponds to which tab is a bit trickier.
@ln-s I also don't know. The droplets themselves don't cause issues. Somebody had setup up some pagerduty thing but it was so flakey that it's gone again.
It's fine really. We're not making money with it... so who cares if it's down once in a while (the main website, hasn't been for a loooong time though)
Riddle me this, Batman. TypeError: Unsupported operand types: string + string when adding three numeric strings together. (Confirmed they are for-reals numeric.) Erm, since when?
It's fine really. We're not making money with it... so who cares if it's down once in a while (the main website, hasn't been for a loooong time though)
@Derick What sort of performance reduction can one expect from the xdebug profiler? Looks like it's is still using zend_execute_ex to do it's profiling?
This seems like a doc bug, but I want to verify before I try fixing it. https://www.php.net/manual/en/function.is-a
is_a says "Checks if the object is of this class or has this class as one of its parents". But it also takes a class string instead of an object. In which case... passing the same class/interface name for both the first and second param gives false, not true. Which is... confusing.
is_subclass_of() has the same issue.
https://3v4l.org/I67ld
Is this a bug in is_a, or a bug in the docs?
(Or has it been there so long that the bug is now expected behavior...)
I would certainly expect is_a to include the === case.
Ok, so in PHP 8, it doesn't return false. Prior to PHP 8, it could return false when called without parameters outside of class scope, and this was the defined behaviour?
I had two-three hours to "make it all work", being on-site at some place where remote login insn't a possibility for now, and considering the late discourse on breaking change, I count myself as rather unimpressed by all the things y'all BC broke with php :D
@ramsey we changed it after discussion on RM list to not have releases over the holidays: wiki.php.net/internals/2021-end-of-year-releases. It's important to keep the GA releases in sync because of security fixes.