« first day (3695 days earlier)      last day (1235 days later) » 

Wes
12:15 AM
what happened to readonly properties's rfc?
aka final properties. i can't find it
 
Wes
right. thanks
 
Aug 5 at 8:34, by Danack
tl:dr - I think cloning needs to put the new object into a state where the properties can be written to until the end of the __clone call.
 
@Wes it didn't pass :(
 
it didn't pass 👍
It needs to support cloning otherwise it would be unusable.
 
Wes
12:19 AM
i'd rather deprecate __clone, tbh :P
 
@Tiffany it's easy to get into but.....it can be a little 'unfun' to play until you know how to not get exploded really quickly.
Also, the games are played at different ship tiers, with lower tier ships being older, and higher tier newer, and it can take a while to unlock some of the fun ships.
 
Wes
so basically i have a big json originated structure i have to convert into actual php objects and classes
there was a time where i'd have created factories and injected the "direct dependency" to every class
but cba any longer to do that
public function __construct(array $jsonData){ this is what i am going to do
code is going to be infinitely more simple if i do that
am i being an idiot? :B
 
@Wes is the json shareable? packagist.org/packages/danack/params can do it (imo) nicely, and validate the data as it goes. But I am super tired and going nn....
 
Wes
you mean if i can post the json here?
anyways, i'll look at it. gn and thanks
 
12:51 AM
@PeeHaa @Ekin Among Us when?
 
Wes
how is that that every time i try to do some side project i end up doing some other side project that i need for the first side project to work
RECURSIVELY
 
1:21 AM
@Danack Man been ages I played World of Warship, but I sucked hard lol
 
I've been trying to figure out a syntax for a "changes passed into clone routine" that could quality for "init". That would allow an initonly access modifier to not get in the way of wither methods. And could even make with-er methods cleaner in the process.
If we can figure out something for that, it would make initonly and wither methods a lot more viable.
 
1:43 AM
PHP-FPM : Is there an option to suppress /ping from logs ・ *Configuration Issues ・ #80428
 
 
1 hour later…
Yorkshire Gold is tea. Everyone else is wrong.
 
I am apparently a double-purist. I know, this is surprising to everyone...
 
3:53 AM
About dynamic library lphp.so in php8, but the lphp7.so in php7 ・ Dynamic loading ・ #80429
 
Wes
i want a tea now
black english breakfast with milk
i am sorry if you are british and that offends you. that's how i drink tea :B
 
 
2 hours later…
5:51 AM
@Wes how else would you drink tea?
 
Wes
is that the right variety of tea to use with milk?
 
6:11 AM
@Wes I'm not English but i thought any "black" tea was fine with milk
its not like you're adding milk to green tee or rooibos or something.
 
6:58 AM
posted on November 27, 2020

 
7:30 AM
Hello everyone! I was checking whether extension DLLs for Windows were already built for PHP 8 and it looks like those aren't being built yet. I'm aware that this is changing from PHP 8 and was wondering where users will be able to download those in the future.
 
7:55 AM
openssl_encrypt() is not verifying that key is present or not. ・ OpenSSL related ・ #80430
 
8:06 AM
parse_url() return fragment, query while there is not. ・ URL related ・ #80431
 
8:57 AM
@cmb Is PHP 7.3 dead now?
Err, I mean in "security only" support ^^
 
9:22 AM
Unable to disable the use of the AVX command when generating JIT to generate ma ・ *Configuration Issues ・ #80433
 
9:46 AM
morns
 
cmb
10:25 AM
@NikiC I asked on RM list, and "consensus" was to ship 7.3.26 as last bug fix release
@alcaeus the mass rebuilt usually only happens a few weeks after first GA release; the DLLs will be made available as usual (pecl.php.net and windows.php.net are community machines). A snapshot build of mongodb 1.9.0 is available at windows.php.net/downloads/pecl/snaps/mongodb/1.9.0.
 
11:04 AM
Hi guys. any idea why this doesn't throw a Fatal error: Unparenthesized? 3v4l.org/6CDLv while this one does? 3v4l.org/VDb3sS
 
@Girgias I am reasonably competent at playing Fiji: youtube.com/watch?v=-waBmEX2GU8&feature=youtu.be
@Crell It seems to me that you and Máté really want 'with' rather than making clone be usable. Other than, not liking it as an aesthetic choice, what's wrong with unlocking the mutability during a clone call? I still think any 'with' support might be nice, but it's not going to be powerful enough - see code examples around chat.stackoverflow.com/transcript/11?m=50126483#50126483
@Wes so long as you put in 4 teaspoons of sugar, that's fine. We call that builders tea.
@Wes yeah.....tbh the docs for that are kind of terrible, and it's probably easier (mentally at least), to just write some code for you than try to explain it.
 
Oh, the RFC specified that not all nested should throw that fatal error, oups, my bad :D
 
11:33 AM
@cmb ok, probably going to be a rather empty release
Guess it's a good chance to fix any regressions from 7.3.25...
 
cmb
12:03 PM
yes, mostly that
 
Am I understanding right that Travis is pretty much useless now? Should we drop the travis jobs from php-src?
 
@BogdanUngureanu Because the first one doesn't have any ambiguity. There's only one way it can be understood. The second one needs parentheses to specify which ternary operator takes precedence
 
Or do we need to migrate to travis-ci.com...? Their documentation is really shit. There's a whole page on how to migrate repositories, and the one thing it doesn't actually explain is how to migrate the damn repositories
 
@NikiC docs.travis-ci.com/user/migrate/… appears to be the relevant bit.
but also....really not sure if it would be worth the time. the time limits for the free credits is almost certainly going to be nowhere near enough.
> we will upgrade you to our trial (free) plan with a 10K credit allotment (which allows around 1000 minutes in a Linux environment).
 
12:20 PM
@Danack I'll try to experiment with unlocking during __clone() as soon as I have some rest and my personal life calms down. :) And I actually started implementing the "with" stuff , although I haven't gone too far with it yet.
 
@MateKocsis cool.
 
with* methods are so badly named imo :(
 
@Dharman yeah, thanks! I was under the impression that all nested ternaries throw now that error, but I've re-read the RFC :D
 
And "wither" gives me the wrong impression, and it takes a little extra googling cause google thinks I'm talking about the other meaning
 
cmb
12:53 PM
@NikiC unless we pay, travis is close to useless; it may still be okay for 7.3, though
 
@cmb they don't even post how much extra credits cost without signing up, or 'contacting support'....which has shades of:
 
1:21 PM
lol
 
2:04 PM
@NikiC you would need to migrate from .org to .com until end of 2020 (they plan to shut .org down). travis-ci.com at least runs faster (then .org now, it sucks), however you need to ask for more credits for FLOSS projects. For php.net this should not be a prob.
And start migrating with a small first repository to go through the process.
And yes their docs currently suck for this topic.
 
Missing "s" in documentation for "opcache.jit_max_loop_unrolls" ・ PHP options/info functions ・ #80434
 
2:31 PM
I swear to Cthulhu, this week has made me question my career choices. 4 days to diagnose IP failover not working because of blocked gARPs. a crashed Galera Cluster because of ~4.7 million failed transaction logs (caused almost entirely by a single, shitty third party service relying on DDL's failing instead of actually knowing what the fuck you're doing..)...
 
Almost everything comes back to that last bit :P
 
what, an ellipsis?
:P
that's the real meaning of life: ...
 
Things being broken by people not knowing what the fuck they're doing
 
that's true. the first I dont think is so much people not knowing what they're doing, more just an inevitability when working with service providers where your particular service isn't the mainstream thing.
sure, Linode support IP failover on arbitrary VMs, but I doubt very many of their customers use IP failover on private IPs - most who want that level of redundancy probably just pay for a managed load balancer.
 
2:48 PM
@Tiffany I friend sent me that yesterday, shared it in the IC TeaSoc discord, they are all finding it hilarious :')
 
The second is definitely a case of NFI. I asked the author if they could/would support TLS connections to mysql in their 'product'. It uses mysqli, so enabling it means one (extra) call to mysqli::set_opt and one call to mysqli::ssl_set... nope. No plans to do that, even when explicitly asked to.
 
@Girgias the Kermit meme drinking Saturn tea 😂
 
Oh didin't see that one lol
 
I should say "Saturn" tea, cause... you know...
 
3:33 PM
@Danack Yeah I'm very bad haven't played it much, but those torpedo dodges :')
 
3:48 PM
@Girgias all skill, no luck. honest.
 
why in this example the openFile is inside the if?
 
4:04 PM
Incident on 2020-11-27 16:04 UTC ・ GitHub Pages has Major Outage
 
cmb
@Dharman that's basically if (is_writable($filename)) {$file = fopen($filename, 'a');}
 
Then I don't understand what isWriteable means. On Windows when I run this example no file is created unless I move the openFile outside the loop
 
> no file is created
Shouldn't the file be there to begin with?
 
Then what is means isWriteable?
 
> Returns TRUE if the filename exists and is writable.
 
4:10 PM
Does the file exist and is it writable
that
 
@PeeHaa jinx. you owe me coke.
 
:D
 
er...a coke.
quite different.
 
Too late. Ordering cocaine
 
It would be nice to document it then. Right now it only says "Returns TRUE if writable, FALSE otherwise;"
 
4:11 PM
C'est la vie.
 
4:35 PM
Incident on 2020-11-27 16:04 UTC ・ GitHub Pages has Partial Outage
 
@Dharman you may be looking for a subclass of SplFileInfo: SplFileObject
 
@Dharman it says that in the details. Move it to the top?
 
IMHO this is that abstract for the reason of being the generic interface.
 
@Danack It doesn't say on this page anywhere that the file has to exist. php.net/manual/en/splfileinfo.iswritable.php
@hakre I was actually, but that is not the point. I got confused by what it means to be writable. Apparently the file has to exist first
 
4:41 PM
@Dharman Yes, the description is pretty abstract. And then such questions can become pretty philosophical: Which properties can have something that does not exists?
^^
But for anything file I/O, creating the file is normally the way to go if it's not yet there. Otherwise you won't know if creating the file is possible or has failed.
 
@PeeHaa =D
 
> writable
A legal term meaning it's possible to serve a writ against some offence.
> writeable
Means something can be written to.
flips table
 
lol
 
> writable ; English; Alternative forms: writeable
> writeable ; English ; Alternative spelling of writable
 
5:08 PM
All issues have been resolved!
 
@Trowski I'm wondering how slow an userland implementation of io_uring in PHP would be (via FFI) The kernel API seems simple enough…
 
@bwoebi I'm not familiar with io_uring, is it similar to libuv?
 
apparently, and not a typo.
 
@Trowski well, sort of, just as kernel API, having support for async fs io as well
 
@bwoebi I wonder if speed would matter much, as the FFI layer would only be for registering watchers and marking those that are ready.
 
5:18 PM
@Trowski essentially that's what I'm expecting as well
and it seems to have even superior IOPS to synchronous disk reading/writing
(compared to a threaded approach like libuv uses, it's like 5 times faster)
essentially all the important syscalls are present since the linux 5.6 kernel
 
 
2 hours later…
7:40 PM
Best PHP tutorial for those that need it, youtube.com/watch?v=kfVsfOSbJY0
 
Can confirm! Was just looking at that
It even does php8 features
 
@mega6382 ugh, that doesn't cover the trade-offs of choosing a framework vs vanilla PHP at all.
 
Yes, you are right, maybe they will release a part 2
 
@bwoebi you saw that blog post on io_uring aswell. Wondering about its significance for PHP. Would this warrant a core APi for example
 
I'm trying to load a URL into the <iframe>
But dynamically, iframe gets style="display: none !important" when the URL is loaded
If I remove it via the inspection
It gets added again
what could be the problem?
 
@ZahidSaeed You're trying to load someone else's site and they don't want you to do that?
 
@Danack They have an online graphics editor. I implement their API and they provide the URL for the editor.
I try to load this URL in the iFrame
It does'nt work
If I open it directly in the browser, it works
 
you might need to contact their support. If it's getting added again, then it sounds like some JavaScript that is deliberately doing that.
 
Okay. Thanks mate
 
8:31 PM
@beberlei I was reminded by it today, but I've discovered it quite some months ago :-)
and no, I don't think so, as long as that is linux specific
 
8:58 PM
any idea how can I calculate this in PHP? 3v4l.org/p7qIf
I need to say parenthesis aren't for function
 
@Shafizadeh what about 3v4l.org/U0kQ1
 
Bus Error compiling phar.phar on Apple M1 ・ Compile Failure ・ #80435
 
thanks thgs
 
lol
 
9:23 PM
@Danack harsh
 
Maybe.....Rebecca is better than we deserve I guess.
 
@Danack Old or new?
 
both.
 
@Danack Oof, glad I've never had to use PHP 3 :P
 
9:41 PM
OMG congratulations @Ekin and @PeeHaa on such a beautiful kid!!! He can barely open his eyes, it's SO CUTE I CAN'T!!
 
that was close
like, super close
 
I'll take that as a win, personally
 
please do :-P
and happy friday!
 
FWIW I told her to close the tab before the thing loaded...
Such a nooby
 
9:48 PM
pfff
 
I clicked it when I saw congratz, so I'll take that
 
@PeeHaa Firefox blocks autoplay by default, Firefox saves lives.
 
rookie mistake indeed
although... I should've not noped out and let peehaa suffer
 
@IluTov You should have set up a tampermonkey script up by now to autoplay that specific one
 
9:50 PM
in all fairness, I appreciate that you were good sports and clicked on it even being the principal humans concerned
 
You failed. Deal with it!
@FélixGagnon-Grenier :P
 
10:13 PM
@IluTov Wrote my first website in high school in PHP 3. :-)
I just dated myself, didn't I…
.php3 ftw!
 
gods wow :P
 
Was so awesome, so much more powerful than .shtml
 
that is a powerful statement
 
@IluTov your change is listed as #2 in wikipedia: en.wikipedia.org/wiki/PHP#Addition_of_the_match_statement heh
 
@Tiffany Lol, I literally saw that 3 minutes ago ^^
 
10:23 PM
haha
 
nullsafe and throw expressions too.
 
> The (PHP) letters were forming the shape of an elephant if viewed in a sideways angle.
shit, now I get it!
 
Why is the reference after the comma? (feature, [ref]) That is really irritating.
 
no idea, I noticed that too
 
@IluTov that's standard style in scientific journals too, so probably linguistic reasons
 
10:26 PM
@AndrasDeak 🤯
 
same inversion can happen with quotes I think
 
quotes is American English versus British English
 
When there's a quote at the end of a "sentence." Or something like that.
 
well, quotes and punctuation
 
@AndrasDeak Yeah, (braces too.) It makes no sense to me. I kept clicking on the wrong reference :D
 
10:27 PM
punctuation generally is not included inside quotes in British English, whereas in American English, they are
 
I can see if phys. rev. style guides to see whether they specify why they do this
Are oneboxes OK here?
 
I think generally it's been "use your own judgement"
 
uh oh
 
shrug, if I paste an image and it's large, I'll edit it so onebox goes away
 
Come to think of it, I bet wikipedia has recommendations of its own
 
10:32 PM
depends on how cheeky/spunky I am feeling
 
thanks
 
11:01 PM
@bwoebi I finally tracked down the leak to this: github.com/php/php-src/blob/… Any clue why GC_ADDREF is called here? The comment says "Also add a ref to all objects, so the object can't be freed by something else later."
 
@IluTov That's just there so the leak reporting works
Any objects that are still live when freeing the object storage have leaked
The GC_ADDREF specifically makes sure that this works even if it's a cycle leak, where otherwise destroying one node in the cycle could destroy the whole cycle
 
@NikiC Do you have the source for the Amp JIT script you benchmarked posted?
 
11:19 PM
@NikiC But the objects are released in destroy_zend_class which is called after that. The object has a refcount of 2 when it reaches destroy_zend_class.
Or should be, rather. I guess until now no other object was able to survive until this stage?
 
Wes
11:46 PM
@Danack i don't actually need validation, i just use type declarations
a tool i want to make, is something that takes a json schema, a record, dto, etc, and creates actual objects out of them
so for example if i have a string primitive in a record, my "translate" rules would say wrap that string in a EmailAddress object
automatic dependency injection, using reflection and stuff, from more primitive data structures, like json data, records, dtos, to actual object aggregates, with types and stuff
maybe it exists already, like a magic hydrator or something
the problem of such a tool, is that in order to be useful, it needs to better than the alternative, which is not too bad in the first place
like it should allow for shortcuts like
 

« first day (3695 days earlier)      last day (1235 days later) »