« first day (3455 days earlier)      last day (1484 days later) » 

12:03 AM
@Girgias TARANTULA ISLAND
 
:D
 
And the first one I tried catching stung me and sent me back to the pier, lol
 
Yeah that happens
Maintain the button to approach slowly
 
Is it my imagination or are the new __serialize/__unserialize magic methods not in the docs at all?
 
12:38 AM
@Girgias took me several tries, but my bag is now full of spiders
 
Without context this is prett funny :p
 
128,000 bells :O
 
I am so confused...
 
@Girgias when I turned 30, my previous coworkers decorated my office with a giant web made of streamers, it was pretty funny
@Crell Animal Crossing New Horizons :D
 
@Crell talking about animal crossing
 
12:42 AM
backs away slowly
In any case, serialize problem solved: github.com/php/doc-en/pull/63
 
meanwhile I'm still fighting git with my merge up for my bugfix
 
@Crell not a gamer?
 
Not Animal Crossing. :-)
(Horizon Zero Dawn, Assassin's Creed, Batman Arkham, Star Wars, Shadow of Mordor... those are my games.)
I avoid addiction-based games if I can help it.
 
I play almost everything except sports games...
@Crell that's reasonable
I would do that but I lack willpower, so I have to try to balance the two
 
I know I am susceptible to them, so I avoid them entirely.
github.com/php/doc-en/pull/64 - And a quickie for the docs.
 
12:49 AM
@Crell you spelled "in" in your commit message as "ih"
 
Argh. First or second?
 
@Crell I'm on mobile, not sure I can tell, but it's this one github.com/php/doc-en/commit/…
 
Force pushed a fix. Thanks.
 
Also pull request title
👍
 
Check.
 
1:16 AM
@salathe Well... it's not Friday... but I clicked on it in the starred list because I have been busy since Friday and missed a lot...
 
2:02 AM
@Crell I think it's good while everyone is being positive and helpful. I am quite fearful when it's used by someone who rejects other opinions to the extent that there can't be a useful conversation between them and others.
 
2:23 AM
So... every other day then?
 
2:35 AM
hello
any can body tell me the relation between custom post type to default post type
 
@raja This appears to be a word press related thing? I'd suggest googling for it....there appear to be docs that describe it.
 
am searching for that but no information
is there any wordpress developer
 
Searching for "custom post type" gives the link: smashingmagazine.com/2012/11/complete-guide-custom-post-types
 
eight years old though...
 
this page about creating custom post type
 
2:45 AM
found this by googling google.com/…
 
@raja scroll down to the bit that says "What WordPress Can Do For You Now" and tell me why that's not enough detail.
 
 
2 hours later…
5:14 AM
wiki.php.net/rfc/compact-object-property-assignment how this got 21 no votes is beyond me
I would have liked to see that actually.
 
 
1 hour later…
6:42 AM
\o
 
o/
 
So far so good with delegates:
delegate Reducer (?int $sum, int $item = 0): int;
class Foo implements Reducer {
    public function __invoke(?int $sum, int $item = 0): int {
        return ($sum ?? 0) + $item;
    }
}
function reduce(Reducer $reducer) {
    var_dump($reducer(0, 5));
}
reduce(new Foo());
This already works, now there's a time for reduce(fn(?int $sum, int $item = 0): int => 8);
 
7:30 AM
@Sherif I gotta ask, did you read any of the extensive discussion on the topic before casting that vote?
 
@NikiC what is the primary complaint? That the rhs aren't evaluated first before any of the assigns happen?
 
Nth day of month can not be set ・ Date/time related ・ #79442
 
@bwoebi I don't think what's most people are concerned about
 
@PeeHaa got it from hipchat. can find it on google image search I guess
 
My thoughts are more along the lines of this being useful essentially only for object initialization, but it does not actually solve object initialization well
 
cmb
7:52 AM
@bwoebi Is that so? RFC says: "If you replace COPA with single line assignments, you will always get the same result"
 
@cmb I mean at least Marco did comment that he does not like that specified behavior
 
Oh, It's April 1st
 
cmb
@bwoebi Ah, indeed. Misunderstood your message. Need more coffee. :)
 
8:35 AM
@DaveRandom 1. An empty interval doesn't a whole lot of sense I think? I guess it doesn't matter much though if we allow that. 2. is fine, and probably something that I forgot to add. Can you cook up a patch for both?
@NikiC No, March 32nd.
 
Your DateTime is broken sir.
@NikiC Admittedly, no.
 
 
1 hour later…
9:44 AM
@Sherif 😲 *revokes voting privileges*
!!rfcs
 
I'm more sad to see that wiki.php.net/rfc/userspace_operator_overloading isn't going to pass
 
i think a few small changes to the RFC might make a revote pass (exception instead of magic null, and python like reverse functions).
 
@beberlei What are python like reverse functions?
 
@bwoebi the way i understood its a potential to make $typeA + $typeB work when only rhs ($typeB) has the working __add fn
 
9:58 AM
@beberlei but the RFC supports that?
> If an object is encountered as one of the operands, it tried to call the magic function on the left object. If the left operand is not an object or its class does not overload the operator, the magic function is called on the right operand.
 
yeah, I didn't get what the advantage of having two pairs of functions is either
 
IIRC, python has something like __add(self, other) and __radd(self, other) depending on whether you object appears on the left or on the right. So you always know which of the arguments is your own class
It just avoids checking which one is yours, I guess
 
As far as I know the only reason Python does that is because they don't really have static methods, so it's basically their only option
 
ah okay
 
ah ok
thanks for clarifying, i just saw the discusson on this
 
10:01 AM
I think the big issue is that a lot of people do not want to see that feature
 
github.com/php/php-src/pull/5331 => This should be completely uncontroversial, right?
 
@Derick I hope it doesn't stifle further work on userspace operator overloading
 
@NikiC I'm ok with that, but it's technically a BC break that should go into the big "PHP 8: changes/deprecations" RFC?
 
@NikiC is it cause of 32nd of March ?
 
@Derick eh, I will create a separate rfc for that
 
10:09 AM
Yeah. I can't see people objecting to this though... well, perhaps one or two "usual suspects"
It looks like you're just removing warnings though: github.com/php/php-src/pull/5331/… ?
 
10:30 AM
Good morning o/
 
Madainn mhath, a charaid!
@NikiC I'm for, but I think it might be controversial enough :-/
 
On the topic of overloaded operators, I wonder if it would have made sense to pass an arg saying which side was which. Not all operations are position-agnostic if memory serves.
 
@MarkR wat?
$a + $b is going to call __add($a, $b)
not __add($b, $a)
Or I don't get what you mean
 
But if it doesn't support a, b it then tries b, a, or so I thought
Nevermind, if it tries it using the rhs it would still get them in the right order wouldn't it
 
@MarkR yes
 
10:51 AM
It needs 5 people to switch right now. Many in here said no...
 
Cool, I think I had some cross-talk in my head between PHP and the talk of python.
@Derick If it fails is there still time before 8.0 freeze to have the vote again?
 
Technically it needs 6 months to try again
so, no
 
That would be a shame
 
11:07 AM
@Derick Unless there are "substantial" changes :)
ugh
Turns out opcache literal compaction has bit pattern collisions between doubles and strings
 
@NikiC What is "substantial" though?
 
<?php
var_dump("\0\0\0\0\0\0\0\0");
var_dump(0.0);
// string(8) ""
// string(8) ""
@Derick Subject to interpretation, but probably anything more than a typo fix would be sufficient lip service :)
 
hehe
 
11:26 AM
@NikiC awesome improvement to the operand error message btw
 
11:39 AM
Naming things is hard part 58. I have a library that does parameter validation, and makes it easy to return complete types. They data that needs to be programmed looks like:
$fooList = [
  new Foo(
    'age',
     new GetIntOrDefault(self::LIMIT_DEFAULT),
     new MinIntValue(0),
     new MaxIntValue(150)
  ),
  new Foo(
    'name',
     new GetString(self::LIMIT_DEFAULT),
     new MinLength(2),
     new MaxLength(20)
  ),
]
Where age + name are the names of the parameter in the api, and the other things describe how the parameters are validated. So what would be a clear name for that type of data?
 
Schema Key?
Column?
 
InputName
InputParameter or something?
 
@Danack that looks redundant, what about new IntRange(0, 150)? Same for lengths
(In particular it typically is more friendly to say value must be between 0 and 150 than greater than 0 and lower than 150
 
@bwoebi yes, can have both types. Was just the easier example to copy.
@beberlei Thanks, yeah that's pretty good.
 
 
1 hour later…
12:52 PM
@Danack Constraint or ConstraintList
Oh I think I didn't get it
 
@brzuchal thanks. I'm probably going to go with InputParameter as that indicates that the info is affected by how the thing is passed in..
 
Sure thing
I feel tired recently since it's almost 3rd week with the whole family working and learning from the home cause of the coronavirus :/
 
@Derick can do yeh, might be a day or two before I get to it but I'll do this week
 
yeah....it's a bit weird...
 
you're a bit weird
moin
 
1:08 PM
@DaveRandom yeah, but not enough. I've ordered a white lab coat to complete the look: twitter.com/MrDanack/status/1245046499450531840
 
@Danack you should get a pipe too, and maybe one of those pairs of glasses with a high magnification monocle that you can flip down
pipe is the most important bit though
 
@DaveRandom no you
 
true story
 
@Danack hah that will be art if you make a third piece of this
i did like your cyberpunk image with glasses and mask the other day
 
@Tiffany @PeeHaa ^^
also cryptic but she seems to have dropped off the pingable list
bloody part timers
 
1:17 PM
@DaveRandom he visited r11 last night very briefly
 
ah sweet
 
16 hours ago, by Wes
\o
 
@DaveRandom i'll get one for the next time I give a talk...
 
1:45 PM
I am still not sure how I want to vote on operator overloading.
@NikiC Probably not totally uncontroversial. I haven't thought seriously about it, but at first glance I'm supportive.
 
Now I need to wait until tomorrow to submit it :)
 
why?
It's after noon
 
@Danack ideally if you are at a conf doing multiple talks, come out in the lab coat with the pipe for the first talk and then for the second one do it in a straitjacket and then have two people frog-march you off at the end
 
2:02 PM
@NikiC ... but my script written in PHP 4 days relies on array % array returning 0 !!!
 
@salathe it's broken then, the RFC clearly states that it can return 1
 
@DaveRandom the RFC is a lie :P
 
The RFC is cake.
 
Request For Cake
2
 
2:17 PM
git.php.net still doesn't support ed25519, perhaps?
 
Haven't tried again since last time
But I'd imagine no-one looked into it
 
It's probably sorely outdated, which is probably bad from security...
 
I can't check, no access
debug2: KEX algorithms: curve25519-sha256,curve25519-sha2
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,ssh-dss...
I do think it supports it though
 
Maybe I don't have perms anymore then?
I'm fine with opening PRs off my own fork if needed, just a bit slower dev cycle for some things.
 
3:01 PM
Does php-src have Windows builds in CI? I'm not sure I got the Windows parts right here: github.com/php/php-src/pull/5335.
 
@LeviMorrison Appveyor is Windows
It's just slow
 
hm, how do i check weather zend_execute_data is currently in a silencing error mode? i tried to follow ZEND_LIVE_SILENCE, but i can only find the code resetting, not the one setting error_reporting to 0
xdebug uses an opcode handler overwrite to detect it, is there no easier way? :D
 
@beberlei Depends on why you want to detect it
I would say: Don't. You should not care whether it's @ or error_reporting($foo)
 
@NikiC in my custom internal error handler to discard recording a notice/warning
 
@beberlei Well, why not just check EG(error_reporting) & E_NOTICE?
 
3:07 PM
because fopen
ah wait it resets that
click
 
@LeviMorrison I'm reasonably certain that's correct (it certainly tallies with this) but it should have a trailing semi-colon, it's JS not m4
I mean it's JScript and it will be executed it ancient mode so it will tolerate bare lines, but it's probably best avoided
 
@beberlei Xdebug detects it in another place I think
maybe not
 
cmb
@DaveRandom ASI is a wonderful feature! ;)
 
on the other hand... it isn't...
:-P
if you are going to take a "do what you like" approach to language design, let's just make a compiler to turn natural language into asm
 
cmb
3:22 PM
"wonderful":
```
(function () {
return
[]
}())
undefined
```
 
nope, sorry :-P chat markdown is stupid
nothing gets rendered in multi-line, or at least you can't intermingle code with not-code in multiline messages
You can
do this (reply)
but I think that's about it
 
3:42 PM
round with precision is not rounding ・ *General Issues ・ #79443
 
@Wes Hey, brother how are you? i hope you are doing good.
 
"I think we can all agree that this is not reasonable behavior." - ah, the optimism of youth.
3
 
4:27 PM
@pmmaga but I want a cookie
 
4:42 PM
@Jeeves would PHP version be irrelevant in this case? I didn't pay attention to PHP version on the bug when I tested on my machine, I'm running 7.4.0
 
cmb
5:27 PM
@Tiffany I don't think that it's related to the PHP version; likely it's just a different (non-standard) precision INI setting.
Anyhow, if you need exact values, don't use floats.
 
@NikiC do you plan to move forward with the new editions concept or similar solution for PHP soon? I'm wondering if there's anything in your mind before we meet next feature freeze.
 
Not sure I've changed anything in my php.ini file, maybe a file path for logging, but that should be it.
¯\_(ツ)_/¯
 
6:26 PM
@NikiC What happens if __serialize() doesn't return an array? (For docs purposes.)
 
6:41 PM
@beberlei Do you do any shenanigans with php_curl.h? Obviously don't have to tell me, or you can email if you'd rather not say anything publicly. I'm thinking of copying the curl header for every version into ddtrace so we can better integrate with curl, but there are certain cases that worry me, so I'm wondering if you've ever hit them. For instance, has an OS vendor patched the header for any reason and broke your code? That sort of thing.
Also working at making the header available in PHP 8, or maybe just exposing a reduced surface for PHP 8 to minimize ABI issues that Nikita mentioned.
 
@Tiffany frickin stoners
 
Never mind, tested it to find out. :-) Serialize Doc PR updated.
 
Oof, conditionally defined members based on the underlying libcurl version: github.com/php/php-src/commit/….
That kind of thing makes ABI stability for what I'm trying to do a bit tenuous.
 
@DaveRandom semi-related, I plan to bake a cake today
 
I thought you wanted cookies? :-P
 
6:55 PM
I want all the sugary baked things
 
McDs burger buns, gotcha
 
those are sugary?
 
@salathe I have voting privileges? 🤔
I thought that was a take out menu.
 
7:32 PM
Morngins
 
It is 21:36, what are you talkin' about?
 
thanks @Tiffany, didn't know about UGT yet
 
8:16 PM
bakin' a cake, bakin' a cake, bakin' a cake
I hope it isn't terrible
 
8:41 PM
@Crell Sometime in the evening should work for me. I'm really open on the weekends as well. :)
 
Cool. How about 5pm tonight, Central Time??
 
cmb
9:09 PM
@LeviMorrison sorry for that, but the alternative was super messy (see github.com/php/php-src/pull/5045/commits/…)
 
9:58 PM
@LeviMorrison no i don't think i ever imported curl, always hooking into it from the php api side only. especially the multi curl api is painful to instrument, we only approximate it
 
10:19 PM
o/
 
cmb
\o
 
o/
Btw @cmb what shoud I do for: github.com/php/php-src/pull/5323?
Is it "just" deleting the php_* variants or?
 
cmb
10:34 PM
@Girgias not quite. Where these are included, you'd instead have to include php_inttypes.h and php_stdint.h, respectively (and may some further minor refactoring wrt. Linux/Windows unification). Also github.com/php/php-src/blob/… has to be taken care of; don't know why that's there; __int8 should be available as of VS 2015.
 
Okay, will maybe try to have a look into it tmr or later
While i've got my head in the mbstring extension i want to finish that one
Cause it's kinda a PITA :|
 
cmb
10:59 PM
yeah, sure, take your time :)
Regarding that __int8: brainfart; it's actually about `u_char`. Still looks fishy.
 
11:35 PM
Where's @Jeeves?
 
Good question
!!xkcd
> Mar 31 22:05:48 pieterhordijk.com jeeves.php[4327]: [2020-03-31 22:05:48] amp-bot.ERROR: Exception {"exception":"[object] (AsyncBot\\Core\\Http\\Exception\\NetworkError(code: 0): Network error when requesting w...meoutException(c
That's a first with the new bot I think
 

« first day (3455 days earlier)      last day (1484 days later) »