« first day (3231 days earlier)      last day (1714 days later) » 
01:00 - 16:0016:00 - 00:00

1:05 AM
Well I've spammed PRs
And on this note night night
 
 
2 hours later…
3:12 AM
Hello, everyone
I deployed my app on heroku
it use laravel and vue
and send the messages via mailgun
it works well on mailgun sandbox domain
but i need to create a new domain for my app on mailgun
i upgraded my account as concept paln on mailgun
 
4:02 AM
\o
 
o/
 
4:15 AM
orminekin
 
mornjoe
 
@Girgias was that really necessary ?
someone is going to have to squash all of those again ... plus my inbox is full, and it feels like 10x more work ...
 
hey team, is openssl1.1.1 compatible with php7.2? (at least on the same level as openssl1.1.0)
this morning the v1.1.1 was announced as a security upgrade (in ubuntu repositories) but I found that 1.1.0 and 1.1.1 behaviour differ
stream_socket_enable_crypto($socket, true, STREAM_CRYPTO_METHOD_SSLv23_CLIENT);
this statement would incur a tls1.3 request to the remote server, not tls1.2 as before
Even though in the source code it's defined as STREAM_CRYPTO_METHOD_SSLv23_CLIENT = ((1 << 3) | (1 << 4) | (1 << 5) | 1),
Using STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT bitmask behaves the same (1.3 is used)
Code to reproduce

```
<?php

$address = 'tcp://216.58.199.46:443';
$timeout = 30;

$flags = STREAM_CLIENT_CONNECT;

$socket = stream_socket_client($address, $errno, $errstr, $timeout, $flags);
stream_set_timeout($socket, $timeout);

stream_set_blocking($socket, true);

stream_socket_enable_crypto($socket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT);
```
the IPaddress is from google.com hostname, using the address instead of hostname just so that it was easier to tcpdump it
 
4:59 AM
weird, even

```
stream_socket_enable_crypto($socket, true, STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT);
```

sets

```
Extension: supported_versions (len=3)
Type: supported_versions (43)
Length: 3
Supported Versions length: 2
Supported Version: TLS 1.3 (0x0304)
```
And STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT

sets

Extension: supported_versions (len=5)
Type: supported_versions (43)
Length: 5
Supported Versions length: 4
Supported Version: TLS 1.3 (0x0304)
Supported Version: TLS 1.2 (0x0303)
 
Good morning
 
5:35 AM
\o
 
sounds like Nikita is volunteering to review all of them ...
 
@Trowski h2spec also has a client mode, but I think it's undocumented and unreleased.
 
morns
 
7:11 AM
mornin
 
7:22 AM
 
7:36 AM
mornus
 
Morning morning
anyone with experience on htaccess perhaps?
i have 302 error too many redirects that I dont know how to fix.
 
@cmb thank you! Still think that something is wrong in the FFI with double pointer types. E.g. if you want to change pointer to collection to another one pointer with new collection, then FFI::memcpy only works, direct assignment like $this->pointer = FFI::addr($memory), where $memory was previously allocated didn't work.
 
7:54 AM
In my wordpress website, I have "anchor tag" to redirect users to other page. Somehow, that anchor tag class chages to "vglnk" and it overrides classes "btn btn-primary". Is it due to some virus? Please help how to resolve it. Thanks
 
IntlDateFormatter not parsing from given format – #78432
misnomer the misnaming of a person in a legal instrument
 
you might want to check your js
any setTimeout being used anywhere?
 
 
1 hour later…
9:12 AM
is the embed SAPI powerful enough to build a PHP "frontend" with a similar featureset than php-fpm using Go and embedding PHP into it?
 
Morgens
 
@deSousa I haven't used setTimeout anywhere in the project
 
@Trowski @kelunik is it possible to bump the dependencies of the websocket client?
 
9:46 AM
@beberlei yes
 
@JoeWatkins might be a good weekend hack project to try puts on list :-) go has support for so much fancy stuff around HTTP, I wonder if this would actually be a viable simple deployment scenario
 
I think I found myself a good project to learn Go for too: a DBGp Proxy (instead of having to use the ActiveState Python thingy)
 
Why not write it in php? :)
 
I found nowhere possibility to unpack reference expected variables to child fn – #78433
 
@PeeHaa go is like php but for system level problems IMHO. plus it has the same philosophy around deployment simplicity imho, it compiels to a single static binary with only a runtime dependency on a very old version of glibc.
youc an even cross compile the mac and windows versions from a linux machine
 
9:53 AM
@PeeHaa Because I would like to distribute a binary
(And I would like a reason to learn Go ;-) )
 
:-)
 
that's the best reason to use go ...
so that you can be one those people who says they use go ...
 
lawl :)
 
hah. Some truth in that, but in this case, I do think Go is the best fit
@beberlei I'm waiting for an answer on Slack btw ;-)
 
Jeeves v2 \o/
 
10:01 AM
Well that was clearly the wrong room :|
 
Generator yields no items after valid() call – #78434
 
o/
 
o/
 
10:17 AM
Doing this json_decode(json_encode), foreach or array_walk which would be more efficient(Perf) to convert array of object to pure array?
 
I am reluctant to answer until I know the specifics of what you are trying to do and why :)
 
to not make this an xy, Am trying to convert PDO::FETCH_CLASS to all array like you would get from PDO::FETCH_ASSOC
 
Why not use fetch assoc than? :P
then?
pick one
Too early for english
 
Teresko is out of coverage.. He is inactive.. Do anybody know why?
 
its a join, and the result look something like gist.github.com/Ghostff/2f7962b6f1658e0ebb43257ab21e57f1
 
10:37 AM
@PeeHaa maybe he wants it to work?
 
What a weird requirement
 
Wes
i just bought an ansi keyboard despite in the picture it was shown the iso one
 
What is an ansi and what is an iso keyboard layout?
 
Wes
upside down L enter key = ISO
long enter key = ANSI
@PeeHaa
 
oooooh that annoying difference in the return key
 
Wes
10:47 AM
 
I don't care which one as long as I always use the same
 
Wes
yes, what's your "same" ?
 
I am currently on ansi
 
Wes
ugh. in europe?
 
Yes
fwiw it's a laptop keyboard
 
Wes
10:48 AM
ah well that's allowed. keys are all messed up anyway most of the times
 
At least I have a numpad on this laptop
 
Wes
17''?
i used to have a 19'', it wasn't actually "portable" :B
 
errmmmm /me looks up the spec
@Wes Mine is as portable as a desktop too :D
 
Wes
it wasn't heavy, just gigantic. an hp. first gen core 2 i think
 
Display: 17.3" FHD (1920x1080)
 
Wes
10:50 AM
17' is big-ish too
 
@Wes This thing is actually super heavy
I bought it for the big screen and the possibility to carry it with me like a sherpa if I really have to
So I cannot really complain
Doesn't stop me from complaining regardless though
 
Wes
if you don't carry it around... :P
 
It's a perfectly fine desktop for a laptop :D
 
Wes
:D
 
btw isn;t there also a layout with a super tiny backspace key?
 
Wes
10:54 AM
imho big is worse than heavy
 
I think I hate those
@Wes Maybe we should meet up and carry each other's laptops for a day? :P
 
Wes
yes there are tons of mechanical keyboards with suck ass layouts. why the hell do they want to change such a thing
the problem with big laptops is that if you don't hold them properly they bend and they creak and they eventually break. the casing of this HP was so cheap that if i held it from one side rather than from the center it would bend several millimiters
 
Luckily mine doesn't have that problem. As a matter of fact I think it would be a good candidate for the hydraulic press youtube channel
 
Wes
super cheap crappy casing
not as crappy as apple's but nearly
 
I hear that from multiple people, but the macbook I had to work with seemed pretty solid
(as long as you do not take it apart to upgrade)
 
11:01 AM
yeah...single piece machined aluminium tends to be not trivially breakable.
 
Wes
it was 2 gen back. it used to break just by opening it
a 4000$ product
 
11:30 AM
@Wes 17 feet would indeed be pretty sizable
you just made the same mistake as Spinal Tap :-P
or the opposite actually
17' = 17ft
17" = 17in
and yes it's a dumb system
 
He did say his laptop was huge though
 
Wes
42 mins ago, by Wes
17''?
it was just a typo
 
I want a 17' laptop
 
what in the name of shitbuckets is that?
also screw laptops in general
 
11:42 AM
:P
 
whenever I am using one, I always very quickly want to throw it in a river and then throw the river into the sun
 
lol
 
@DaveRandom I too don't like laptops smaller than 17", but its also pretty hard to find an affordable 17" laptop, or one that is not too optimized for gaming.
 
Wes
@PeeHaa if that was cheap i would totally buy it
 
@PeeHaa as big as that is, there is still a major flaw, you can either use the touchpad or the numpad at one time, not both.
 
11:49 AM
I have had desktop cases smaller than that :P
@mega6382 wut
 
yeah, the touchpad at right end, you need to flip it to use the numpad
 
Where is the numpad even on that thing?
@mega6382 Does it mechanically switch out?
 
@PeeHaa the touchpad is also the numpad, one side is the numpad and the other is touchpad
 
owkaaay
 
@PeeHaa yeah, I believe that its magnet based, you just pick it up and flip it over
 
11:51 AM
lol
Now that face makes even more sense :D
 
lol
 
Wes
12:12 PM
i've become fairly good at making good trades on the stock market. who would've thought. managed to triple the money i invested. it's still not much money, but still...
 
@Wes You sure that you are actually good and not r/wallstreetbets kind of good :D
 
hi guys
 
Wes
don't know what that is
 
@Wes you cannot make a lot of things wrong in the stock market in the last 5-10 years though
 
Wes
i did, because trade wars
luckily i could recover from that :B
 
12:29 PM
How can I take the values ​​I have in editable table and put in the database? you guys know?
 
@Wes then you should check it, its a subreddit, I am sure you'll like it.
 
For example, I have a table with 6 columns and 5 rows with data, how do I loop to run rows one by one so I can insert into the database?
 
@DaveRandom I have a 17 inch MBP from 2009 at home.
anything less than 15" is just too small
6
 
Missing CURLOPT_COOKIELIST in doc – #78435
 
1:04 PM
Morning
 
\o
 
Morgens
 
\o
 
1:23 PM
o/
\o
o/
 
Wes
\o
o/
\o
bell time
 
SEGV in complicated recursive reference object. – #78436
 
0/
 
Ô/
 
indeed
difficult to get going today
!!blame @PeeHaa
 
> It's more of a quantum "cat state,"
Ah yes, one of the 5 states of matter; solid, liquid, gas, plasma and cat.
5
 
2:08 PM
I think it's on the other side once a solid gets very very cold it becomes a cat.
 
warnings that should be fixed in 7.4-GIT – #78437
 
2:24 PM
@kelunik Sounds like there are client tests, though from reading that I'm not really clear on how to run the server.
@PeeHaa I have branches for http-server v2 and socket v1. I'll tag v2.0 RC1 of http-server today and make the branches master.
Probably can tag RCs of those libs as well.
 
Awesome <3
I will test them out if you give me a sign and composer allows me without too much of dicking around with dep versions
 
Wow… there's 54 Amp repos.
In fairness, at least 5 10 of those are abandoned or duplicates from renames.
 
I been toying with an idea for a couple of weeks ... I can make parallel work without zts ...
 
@JoeWatkins You have my attention…
 
@Trowski but still … too many … I think we should've used an a bit more coalesced repo structure … it doesn't harm at all to bundle a bit more code together…
 
2:32 PM
@bwoebi It sure would help with version / dependency management
 
@JoeWatkins clone() with the appropriate params?
 
yeah
I just tried it ... I need to add a bunch of code, and swap out all allocators, and rewrite the zend_llist being used ... but it will work ...
 
@bwoebi Some of the http stuff could be bundled together, but it doesn't take long to update a couple more repos when it's just copy/paste.
 
@Trowski I mean I also have less overview and it doesn't really help "what repo do I need to include to have that functionality"
 
@JoeWatkins That would be awesome. zts frequently is the barrier.
 
2:34 PM
in nix anyway ... I don't think I can make it work on windows and am not planning to try ... but threads without zts is cool ...
yeah ... I think I'll do it in a branch, it will take a while ...
 
@bwoebi Right, but I can improve that with some documentation. I'll try to do that soon.
 
@JoeWatkins what args did you pass to clone(2)?
 
@beberlei and @JoeWatkins: I added zend_execute + zend_execute_internal to ddtrace for PHP 5.3 and 5.4; wow that is sooooo much easier.
(than opcode handlers)
 
@LeviMorrison hah, i guess if someone complains about php 5.3 and 4 stack depth, then even without zend_execute_ex overwrite it might break anyways, so whatever ;)
 
@PeeHaa github.com/amphp/http-server/releases/tag/… Any of this confusing or not make sense?
 
2:38 PM
Only issue is segmentation faults when running out of process stack space. I think it can be mitigated on POSIX platforms using an alternate stack for signal handlers and running sigsegv on that stack, printing an error to try increasing stack size via ulimit. Not sure what impact that will have on other signal handlers, though.
 
@Trowski I got a 404 which is really confusing :D
 
@LeviMorrison doesn't php alone segfault exactly the same way in 5 anyways when the same happens?
 
I've only hit it with zend_execute enabled.
 
@PeeHaa Ah, apparently it won't let you look at release drafts. I thought the direct url would allow it.
 
Out of the box, it looks like 1k function call depth is okay; somewhere between there and 10k it fails. Without zend_execute, all 10k work.
 
2:39 PM
@LeviMorrison because you effectively double the stack depth by overwriting the callback
 
But, that's pretty insane to need over 1k stack depth...
 
@bwoebi none yet actually (except settid), I think we want it to behave exactly like fork, that gives us the same share nothing process ...
 
Reading
 
@LeviMorrison it tneds to happen with parsers (template engines for example), but honestly like yo umentioned it customers hitting th elimit because of the APM extension, we never had anyone report that to us, i feel its a unicorn problem
 
2:41 PM
@LeviMorrison this is the reason, there is no working around that ...
 
@JoeWatkins well, not quite, things like handling of fds etc. should need to be different (?)
 
I'm also unsure, I'll find out in testing ... I thought IO/FS might be needed ...
 
@JoeWatkins Yep, but we potentially can print a diagnostic to try increasing the stack size via ulimit.
If a customer hits a sigsegv, they will be unhappy, but if it gives them a message to try something it's much better.
 
a message is doable
guard pages, do reading ...
 
@JoeWatkins Planning to use CLONE_THREAD? Ah, you cannot. CLONE_VM would be required...
 
2:46 PM
Haven't looked at guard pages; currently testing sigaction + sigaltstack. But again, need to investigate how that affects other things.
 
here is a ze patch that's incomplete, I got sidetracked while working reading about the size of guard pages and so never finished the patch ... but with a bit of research, it's generally a good solution ...
 
You probably want to include the fact that the request setters don't return self anymore in the breaking changes @Trowski
or a clone of self
 
@PeeHaa They didn't in 1.x.
 
@bwoebi yeah, that ...
 
You're thinking of Artax
 
2:48 PM
ah right
 
@JoeWatkins I assume you've seen libsigsegv?
 
I am
 
We were debating if the mutable request makes sense in http-client/artax.
 
@PeeHaa do you have some recommended settings for opcache?
 
@LeviMorrison no, that idea was borrowed from rust ...
 
2:49 PM
other than 'on'.
 
@Danack If I need to tweak it I always do it based on the thing that it needs to support and in specific directives like:
disable validate_timestamps on prod (you have to manually restart the cache in this cache)
And the max files + memory based on the application(s) needs
 
@LeviMorrison of course you only need to care about guard page if you want to give a reason for the fault, if you just want a pretty message for any segv, that's doable within the confines of a signal handler ...
 
Those are pretty much the only ones I touch @Danack
 
What are the compatibility issues with 7.4 that is requiring PHP for Windows to use VS2017?
 
nice to distinguish though ...
 
2:55 PM
@PeeHaa cool. Thanks. tbh....I only just noticed that it's not even enabled on a server i'm looking at....
 
@Danack hehehehe
Well that would be the first setting :D
 
@JoeWatkins I read that but I did not see any specific compatibility mentions.
 
@JoeWatkins Yes, definitely would be nice. libsigsegv has some tricks to distinguish. Not sure I'd be confident in guards and such.
 
Looks fine @Trowski
 
2:58 PM
well rust source is available, you could base it on that ... that's what I was going to do ... it's a deployed solution, but while I was reading I found it seems to make incorrect assumptions, but I don't know that it affects anything in the real world ...
a lib is good anyway, let it be someone else's problem ...
that's really odd, I'm sure that had more information in it earlier @StatikStasis
I've read, somewhere, I thought there, that the problem lies in the linker format for vs2019 being unstable and causing problems with dependencies and generally fucking up the build ...
I don't know where I read it, I'm sure it was on that page ...
can anyone find where I read that ? did I imagine it ?
 
I'm googling now. Just thought you guys might know off hand.
 
no I read it on an email or php website, or something from php, I'm totally sure of it, did someone change that news entry maybe ?
@cmb what's going on ?
 
@JoeWatkins I remember Cmb linking to some details...
 
oh oh ... good good, it's not in my head ... sleepy day ...
 
it was on a github repo, I think.
 
cmb
3:07 PM
I had originally posted some more details, but Anatol found that too detailed for typical PHP users.
The problems were related to the build system; many VS updates, often requiring to rebuild dependency packages;
also reports from others that the couldn't build because the deps have been build with later VS versions than they used.
 
so is that bugs in vs2019, or they actually changed the linker format on purpose ?
 
So does it have something to do with the second part of this link ?
VS 2019 builds?
 
cmb
Well, the problems affected mostly PGO builds which do full program analysis.
Also you can't build PHP with 14.20, if you're using 14.22 build deps.
 
ah ok. Thanks for the info- it doesn't affect me but I was just curious.
 
cmb
And no, it's not related to Apache.
Furthermore, VS 2017 is pretty good, and supported for many years.
 
3:11 PM
windows is a strange, dark place
2
 
You misspelled wonderful @JoeWatkins =P
and bright...
 
and handsome
 
cmb
Oh yeah, and one particular issue: you cannot install arbitrary older releases.
 
@PeeHaa not everything is about you ...
 
I think he thought I was describing myself and just wanted to join in.
=D
Thanks @PeeHaa
 
3:14 PM
If I do AST modifications, how do I make it work with opcache? Are there hooks I should look at?
 
so is the tl;dr that we jumped to vs2019 too early (it's not widely supported up or down stream) or that there are bugs in vs2019 ?
@LeviMorrison it will work
 
@LeviMorrison it just works (tm) because the ast is processed before opcache sees it
 
Good, good.
 
cmb
no bugs in vs2019 that I'm aware of; we were simply too fast.
 
opcaches works on opcodes, which don't exist until after the ast ...
 
cmb
3:15 PM
AppVeyor is also not fully prepared for VS 2019 (MySQL support missing).
 
@cmb gotcha
 
cmb
btw, isn't 3v4l.org/PGCMI a bug?
 
yes
introduced with heredoc changes in 7.3
should behave like that I assume
 
Am I good to replace internal function pointers in RINIT?
 
@JoeWatkins @cmb For some reason the link to this Reddit isn't working (CDN cannot contact servers) so I just uploaded an image. imgur.com/a/URlSS7C
The post was titled "What's new in PHP 7.4"
 
3:19 PM
@LeviMorrison for now, yes, but in the long term, no ...
 
Really? Why?
 
In the webdev subreddit.
 
We can't do it reliably in MINIT because of module initialization order; where else would we do it?
 
well ... you're not supposed to do it ... so it's no surprise that you can't find a good time to do it :)
 
@JoeWatkins Nikita asked me to split them, so I did, and I'll be merging the ones approved myself
 
3:22 PM
but actually, depending on how you do it, you might be able to make it work in the long term ...
opcache has a pass that will populate the rtc with internal function addresses, so what you can't do is change the address of the function (del/add bucket), but you could change the memory at that address so the caches are not invalidated, I think ...
 
Oh wait cmb already answered you
 
(becomes a problem long term only because of preloading, so the code is preloaded with the normal address, then your rinit deletes that bucket and when the preloaded code is executed, fault)
@Girgias yeah, it's cool, turns out I was totally wrong about that :)
 
Brace yourself I'm going to need to do that for the string one too
 
if that's what's been asked for ...
 
@JoeWatkins Oh, I was under the impression that was totally kosher.
 
3:27 PM
I promise it will be the last time
@Nikic can I merge the ones approved by Sjon ?
 
@Girgias congrats on withstanding the abuse your RFC got. Seriously, although I voted no the first time around, it is a bit ridiculous what happened after that with Z trying (and managing?) to overrule the entire rfc process and with people feeling they need to add names to the counterargument section.. What a mess.
 
Thanks
It was indeed a shit show
 
@pmmaga seconded
 
@JoeWatkins That seems even more of a hack ^_^
 
@Girgias welcome to internals
 
3:29 PM
I've had a nice introduction to it at least and people will remember my name I suppose
So that's a benefit ?!
 
@cmb appveyor told me they fix it with their next "image" update
 
cmb
@StatikStasis, it's by far not that's bad. And no issues with VS 2017.
 
cmb
@Stricted, thanks for the info. We could upgrade master branch then.
 
@LeviMorrison that's what would happen if you override in rinit
 
3:31 PM
Data corruption when using __serialize and __unserialize in nested structures – #78438
 
@JoeWatkins Changing the memory in that section would almost certainly be modifying static memory?
I also don't see a way to then "call the original" in the new one.
 
no because of how internal functions are registered
 
Guess I need to learn more about the internal function registration then.
 
well, it creates a zend_internal_function from a zend_function_entry, and they (zend_internal_function) are on the heap ... is the tl;dr
 
So basically I'd copy the existing one somewhere, then overwrite, and call the copy when I need to forward?
 
3:34 PM
yes
 
cmb
@JoeWatkins, re heredoc issue: I think there shouldn't be any error message (FOO4 isn't the closing identifier, but just part of the string)
If it was FOOL instead of FOO4, it behaved like I expect it: 3v4l.org/t8o0U
 
yeah weird parser bug
@LeviMorrison for forward compatiblity, you might try setting function_handler, rather than updating the pointer in the function table directly, that way any occurrences of the original address (in preloaded, possible machine code) are still valid ...
 
@JoeWatkins I've seen this from time to time; what handler is that, exactly?
Like, what could i search for to find docs on it?
 
_zend_internal_function.handler
that's the pointer to the actual c function (PHP_FUNCTION) ...
is this making sense or do you want more words ?
or code, shall I just do it ?
 
I'm getting there. I see closures have a different handler, but what's the native handler?
 
3:43 PM
for internal functions, which is what we're talking about, the handler is the PHP_FUNCTION
 
Ah, I see.
Yeah, that seems like a good insertion point.
Looks stable across PHP 7 and master, which is good.
 
zend_internal_function *function =
    (zend_internal_function*)
        zend_hash_str_find_ptr
            EG(function_table), "date", sizeof("date")-1);

if (!function) {
    return;
}

/* do create backup of function->handler as "date", sizeof("date")-1 */

function->handler = ZEND_FN(my_date_function);

/* glory */
 
And this is fine to do in RINIT, yes?
 
yes (I was just checking zts)
also, this general idea is stable back to ancient times ... it would work unmodified (except ht calls) as far back as I remember (early 4) ...
 
it will not work anymore in RINIT at some point? i hope not
 
3:56 PM
changing the handler will, changing the zend_internal_function address in the table won't
it will still work, but is not compatible with preloading
 
ah good that we overwrite the handler :) i do need to checkout 7.4 with preloading and tideways i guess
 
01:00 - 16:0016:00 - 00:00

« first day (3231 days earlier)      last day (1714 days later) »