« first day (3971 days earlier)      last day (974 days later) » 

2:16 AM
@Tiffany The url contains html encoded chars: &LT and &curren, I fixed it using htmlspecialchars().
 
 
2 hours later…
4:33 AM
@Girgias Indeed I was working on something which can export wiki to md but I was not paying attention to the history of rfc docs rather on close to the original HTML representation done by Hugo static site generator which converts MD > HTML
@ramsey I love your work on this. Maybe I could contribute so we can find an effective way to replace wiki functionalities when it goes to view and search for the history etc. and then start a debate on superseding wiki?!
When it goes to rfc voting plugin AFAIR @Danack was making an implementation but I don't remember the specifics.
Additional thing I though could be nice regarding the rfc's was numbering them and AFAIR there were opinions here on chat that it could be ok and there were no voices against it. Given that it could make referring RFC's easier when you ref by number instead of using name which sometimes meet difficulties when there is a couple of rfc's with postfices like _v1, _v2, or name related to original but changing something with it, then it's really hard to find specific rfc by it's name
AFAIR the idea was to number the accepted ones historically and assign next incremental numbers to each new one no matter if it's accepted or not, but we could open a discussion about that.
 
 
5 hours later…
9:33 AM
No RFC for package functionality?
 
9:44 AM
Package functionality by itself isn't super useful unless the engine is heavily modified to support things like multi-module compilation.
 
Also visibility.
And declares, it seems.
 
 
2 hours later…
11:41 AM
@OlleHärstedt This was meant to be discussed in an IRL meeting of core devs in May 2020
Obviously cancelled because of COVID
 
Oh? Shame. But there will be more opportunities. :)
 
12:20 PM
@Girgias How would they meet IRL if they're all over the world, tho?
Do internals have regular meetups?
 
@OlleHärstedt It was going to be sponsored by JetBrains
 
Cool
@Girgias Does this mean there's like an "internals internal" list of things in process or under discussion that are not yet written out as RFCs?
 
@OlleHärstedt ... It's this chat
 
Hm
@Girgias This also means there's no point writing anything about it until the internals discuss it again? Like, if I wanted to write an RFC about adding namespace to runtime, it wouldn't really matter because most of it is already in the heads of the internals.
 
12:37 PM
@OlleHärstedt I mean you could but I think it was mainly going to be focused on: github.com/php/php-rfcs/pull/2
 
@Girgias Oh thanks, didn't see that before. :)
 
1:12 PM
Are there any blog posts about how to add a new opcode to PHP? I found this: npopov.com/2017/04/14/PHP-7-Virtual-machine.html
" PHP 7 Virtual Machine 14. April 2017 "
 
@OlleHärstedt Still the same
VM didn't change that much between 8 and 7
 
Makes sense.
Maybe I should ask on stackoverflow... ^^
 
1:36 PM
Or are there any commits that cleanly adds a new opcode? Nothing else.
 
1:50 PM
integer overflow in zend_list_insert ・ Reproducible crash ・ #81399
 
2:09 PM
Unterminated string in dns_get_record() results on Windows ・ Network related ・ #81400
 
Morngins roombas o/
 
In Amp's socket connector we were using this hack to detect if a connection was refused, but this is failing for me, specifically when reconnecting to a docker container that is restarted where the connection was successful prior.
Anyone know why stream_socket_get_name might be returning false there? Something that could be done differently?
 
2:46 PM
I mean, that was inevitable, but it makes me chuckle
 
:-þ
 
Figured out why it was failing… I thought an object was reconnecting and creating a new socket object, but it was reusing a cached object, bah. Removing that block allowed the connection to "succeed," and by the time I used it the connection was actually established to the restarting container.
 
3:46 PM
From an oparray, which represents a trait method, is it possible to get the name of the trait it was defined in? The oparray->scope only mentions the class which imported the trait. /cc @JoeWatkins @NikiC @bwoebi
The oparray's filename, and line_start/line_end still point to the trait's file name and line numbers.
 
Traits can be implemented in multiple places at the same time, so there must still be an original implementation somewhere... oparray->prototype->scope maybe?
 
nope, there is no prototype
 
:~(
 
or there is, but it's NULL
 
yeah, sus'd that one out :)
 
3:58 PM
From the scope I can get a list of traits that that class implements.
Which might just do the job for me, tbh, but it's a hack.
 
Yeah, supa hack, I don't love that idea
 
I don't think I can see from an oparray whether it comes from a trait
oh, I can
ZEND_ACC_TRAIT_CLONE in fn_flags
hmm, i guess I could store a mapping from trait name to filename, start_line, and end_line, and re-resolve it that way.
 
/me vomits into her mouth
 
Yeah :-D
although this can be fixed for 8.1, I do still need to support 7.2 and up
 
FWIW, might be easier to map fn->op_array to trait. Then you've got a single key element. Still gross though.
 
4:08 PM
i'd have formatted the three elements into a string
I already do this for closures, it seems... so let me see if I can repurpose this
 
Sure, just saying you can skip the hash (sort of what it is, kinda) and the compare becomes quicker
But /shrug
 
Q for the opcache geeks: if a file is preloaded, only class (etc) and function declarations are considered and persisted, but the files are not considered cached in an "opcache sense", right?
or asked the other way: there's no benefit in "preloading" a script which just contains executing code, i.e. no declarations of classes/functions
 
right
 
@Derick probably this is simplest, if you only need to log something or whatever ... you could in your op array ctor store cg.active_class_entry in a reserved slot (or as part of your data in existing reserved slot), but you'd have to come up with a way to resolve that if you wanted to access it because the zend_class_entry* will move to shm after any hooks you can install are executed and the address will become invalid ...
anyway, cg.active_class_entry is the declaring class in op array ctor
 
I need it during run time...
(as well as compile time)
compile time ain't the problem
 
4:23 PM
well after compile time the scope which declared the method is lost, so probably just use class name and do the lookup when you need to access the class
 
but the classname isn't the name of the trait, but that of the runtime class. I need the name of the trait :-)
 
no, at compile time, in op array ctor, if CG(active_class_entry) & ZEND_ACC_TRAIT, then a method is being compiled in a trait declaration
 
yes
 
(ie, the trait itself is being compiled, and couldn't possibly have been copied, so cg.ace is the trait ce itself)
 
oh, i see what you're staying
I could stick that into a reserved slot at that time
 
4:27 PM
yeah, the name only, not the ce ptr because shm/opcache/php
 
tbh, for code coverage I don't care about opcache/shm much
i'm wondering whether that's a worse hack than the one I've just come up with (which works)
 
"if it works it's good" ... copyright PHP 2021, tm, all rights reserved
 
JRL
4:52 PM
@OlleHärstedt I'm still stumbling my way through learning the opcode handling, so any more stuff you use in your own work, please share. if not here, then in a direct email. :)
 
"PHP is a ball of nails, you throw it at something and it sticks." --Terry Chay, like.... mid 2000s somewhere....
 
JRL
I'm fairly certain I won't need to change any of the VM gen for other opcodes besides ZEND_IS_EQUAL, ZEND_IS_NOT_EQUAL, ZEND_IS_SMALLER, and ZEND_IS_SMALLER_OR_EQUAL
but... im still not entirely sure
 
5:07 PM
@Sara you could also start that sentence "PHP is a pile of shit"
 
I've always felt better after having just done one.
 
5:22 PM
@JRL I was thinking of checking the commits of the last opcode added to the VM
But: public learning - blog all the things!
 
@JoeWatkins You throw it against the wall and the stain never comes out.
 
5:49 PM
@OlleHärstedt it's unlikely to be related to the thing you are doing ... you're better off looking for similar compiler code and then looking at how it generates opcodes and what those opcodes are ... if there is no similar code, you're best off asking someone for help
the last opcode was callable conversion
 
The (...) operator?
 
@JoeWatkins Nice, thanks. :)
@JoeWatkins Looks like the same code is added twice? Once in vm def, once in vm execute?
Also, no documentation for the functions? :(
 
no vm def is generator input for zend_vm_gen.php, vm execute is output
 
Oh
Looks like parts of the commit were autogenerated?
 
6:01 PM
@Derick no
You'd have to process the use list and trait adaptations
 
 
1 hour later…
7:02 PM
@Danack No collaborators on pipes v2, although Joe and Levi both provided handholding at various times. What are you doing?
 
pinupcasinoooo ・ *General Issues ・ #81401
 
@OlleHärstedt Yes, zend_execute is a generated file, the blog entry from Nikita should tell you that
 
JRL
I'm actually getting an issue when i'm adding a new opcode where it says the opcode is out of range, although I updated the last opcode define
 
@JRL Did you regenerate the VM?
 
JRL
is that not part of make?
i didn't do that specifically no
 
7:21 PM
Not it isn't as far as I'm aware
 
Not unless something has changed, no.
VM is generated by php, so you need a php binary before you can generate the VM to compile into a PHP binary.
 
JRL
right, zend_vm_gen.php, right?
 
Yup
 
That's the one
 
Man I need to look back into github.com/Girgias/php-src/pull/9, I left the branch in a mess lol
 
JRL
7:24 PM
yeah, i need to update that anyway since I'll need to update several of the generated helpers
 
@Danack Ah, I didn't realize you were including declined/failed RFCs. I guess I should also be listed on PFA then as well. (Joe did all the code, but that's also true of Ilija on Enums.)
 
JRL
i can see why the last operator overload RFC just decided not to do equality and comparisons
ah, but the file that actually gets changed is zend_vm_def.h
 
@Crell sure. tbh, exactly which RFCs to include is going to be a capricious choice. Some of them are worthy efforts that didn't quite make it (but might in future versions), others are submitted in the face of a clear 'this is a crap idea' response.
 
@Danack Indeed. And even if that's subjective, I do appreciate your efforts to direct more attention to supporting OSS directly.
 
8:05 PM
@Girgias Great, thanks, will read
 
 
2 hours later…
9:42 PM
@Sara yo dawg.meme
 
10:11 PM
poor code style choice confirmed - github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5785
 
bruh
 
Because having to scan across more characters to read the type keeps your eyes moving, which helps them get exercise.
 
11:06 PM
@Danack if you're not living on the edge you take up too much room
 
... We should put that style on the chopping block for 9 or 10
... because it's stupid
 
JRL
hmmm
anything that gets library authors to stop using null as a control value is probably good
you can't do float $var = "stuff" and have it automatically convert to float|string
 
I don't mind using null. I mind = null being some bizarre alternative way of modifying a type declaration that's the other side of a symbol.
 
JRL
we probably would need a deprecation notice like... now, in order for that to actually happen though
 
11:27 PM
 
quoi?
 
were it not for covid I should have seeing them ^^ this weekend, one of the best live bands I have ever seen, do it if you ever get the opportunity
also go see the courteeners, but only whern covid is over which is not even slightly yet :-/
 
no :-/
I was looking through my Flickr set names today - so very much missing the travel
 
so many of my friends have ben to raves without a vaccine. I went on a date this weekend with someone who doesn't want a vaccine. they are among us
 
No second date, I suppose?
 
11:33 PM
I have no confidence in the vaccine actually working at this point, uptake is just too low :-(
 
It's really high in the UK... which I think is where you are?
 
@Derick ...tbd
 
I don't get what you're trying to say now.
 
@Derick yeh, in >20 age group, which is only like 75% of the pop, even if those eligibile for for it had all had it we are nowhere near herd immunity yet. very annoyingly.
the trajectory looks like we won't reach that level before something resistant emerges, rendering the whole exercice pointless
yay social media :-P
 
Herd immunity for the Delta variant is 95%+ or so, so yeah... not close to that.
At least it's not the US, or France.
 
11:37 PM
frustratingly making it optional means the end result is it probably isn;t going to work
 
First dose in the UK for >16yr is now 89%, I think.
 
...he said, very pessimistically :-P
@Derick yeh but population age bias plus sending kids to school in 7 days...
I own a 10 year old and am very concerned about this
but feel quite powerless
 
Yeah, I think they're fucking that up too, again.
I solve those issues by not having any of them.
 
JRL
@DaveRandom a 10 year old human?
 
yes, going into last year of primary school on thurs
 
11:39 PM
@DaveRandom I feel very powerless with nearly everything right now. They're fucking up so many things.
Covid's been masking the Brexit impact
There'll be literal food shortages. Can't produce it. Can't import it. Can't transport it.
 
...on a more cheerful note, shall we just get hammered? :-P
 
I'm on the way already... but I need to be careful as I'm doing work for people that read this channel tomorrow :-þ
 
that's some high quality booze diplomacy there
 
Sold some MDB shares... treated myself.
 
my clients mostly aren't sure what google is
 
JRL
11:42 PM
the county i live in is over 80% vaccinated now
 
lol
@JRL Country though...
 
(largely conveyancing solicitors are what I am working on atm)
 
JRL
but our hospitals are fucked because the rural shits who dont care about anyone else are being flown in to fill up our hospitals
 
Parts of the US seem to be full of selfish pricks.
 
JRL
im very quickly approaching the point of thinking that if they don't trust medicine enough to get vaxed, then we can just not offer them any care
ah well, just another thing that makes me upset with the society i live in
but im an actual socialist that lives in the US, so im always like that
 
11:46 PM
I wonder how a US socialist compares to a UK one. No idea how they overlap, or not.
I probably wouldn't call myself a socialist in the UK, but "classical liberal" is also a tricky one to explain.
 
JRL
yeah, most people in the US mean something like "moderate" when they say socialist
or "centrist"
i dunno. i think immigration law is fundamentally unethical and immoral, for instance.
like that governments have no moral authority to regular immigration at all
 
Is that part of socialism? I don't think it is... I do know that I agree with you there.
 
JRL
no, that isn't part of socialism
that was more an example of how... outside i am for the US' normal spectrum
 
Fair enough :-)
amazon.co.uk/dp/B086BP6WXZ/… pretty much is a guide into my thinking (and quite a cracking book on the history of liberalism too)
I'm off to get a kip. Natta.
 

« first day (3971 days earlier)      last day (974 days later) »