« first day (3827 days earlier)      last day (1121 days later) » 
00:00 - 20:0020:00 - 00:00

12:00 AM
Also, their junctions/on/offramps are terrible......
 
@Danack Never been to Normandy ngl
 
that onramp is about 80meters long, and has heavy trucks full of quarried rock, going at the speed limit.
it's fine when it's quiet. It's fine when it's a traffic jam.
 
Yeah that looks more like an express way then a motorway tbh
And they are usually a pita
 
but as you might see in the picture, at some speeds, you have about 0.7 seconds to figure out how to merge into the traffic...
 
I once met one of my mum's friend's at one of those weird little picnic bench service stations in France, drive all around Europe for a month, got rucked up in all kinds of ways, then met the same woman at another weird service station in the middle of nowhere
 
12:02 AM
I imagine the speed limit there is 110 (might be less even)?
 
where like, had not seen another car for half an hour on both occasions
 
Because I can't imagine 130 being allowed there
 
90 I think, but it's still way too dangerous...
 
what is ~92mph? because that is how fast I go places
(when on open road)
 
145kmh~
 
12:03 AM
that is how fast I am in control of my van at
it's not very fuel effient though so tbf I am usually around 78
 
krakjoe@Fiji:/opt/src/php-src$ cat partial.php
<?php
$uri = function($scheme, $host, $path = null) {
    return sprintf("%s://%s%s", $scheme, $host, $path);
};

$krakjoe = (($uri("https", ?, ?))("twitter.com", ?))("/krakjoe");

var_dump($krakjoe);
?>
krakjoe@Fiji:/opt/src/php-src$ sapi/cli/php partial.php
string(27) "https://twitter.com/krakjoe"
 
I mean... I usually don't speed in France, because there are a bazillion speed cameras and you lose points on your license even if you're just above 5km
 
ha ... it's 2am, I've had enough ...
 
@Girgias actually also realted, @MarkR just so you know most of the speed cameras in the UK are in halifax
for good reason tbf, those are not road on which ou can safely do 92 or 78mph
 
12:08 AM
I mean I don't drive fast when it's stupid, I remember when I was driving to Paris once and was at 50kmh on the motorway because there was heavy rain and you couldn't see past 50m, and there were still people driving a full 110kmh speed because duh that's the speed limit when it rains
 
man driving back down the M62 into manc from Yorkshire is insane, there is a downhill straight stretch where I have seen people go past me at 150+, even in the rain, fuck that shit
to be clear, I do not endorse driving in a manner inappropriate to the conditions :-P
going "too fast" is OK on a motorway when there is no-one else around and at no other time
 
...and that's how watermelon sauce is made
 
as I said, very easily amused.
 
I resemble that remark
 
12:21 AM
@Danack "An English ______ in the county of Worcester." What the hell does he say there?
Ok, never mind, I didn't listen far enough, lol
 
lol
 
Wow, usually seeing anything mass produced makes it unappetizing, but that takes it to an whole other level.
 
don't ever look at wine clarification then :-P
 
@Trowski ....have you heard of black pudding?
 
I.... don't think I want to.
 
12:29 AM
@Danack I have always enjoyed how "Bury Black Pudding" is so self descriptive
@Trowski it's your classic disgusting traditional English food, the kind of thing the Daphne in Frasier is into
 
@Trowski well, just in case you do, youtube.com/watch?v=5uO5EsXbV4k&ab_channel=HOWITSMAKE - in mercifully low resolution.
tragically not a comedic version.
 
> tragically not a comedic version.
 
And on a different tangent - youglish.com/pronounce/gloucester/english/us ....that appears to be an entire site run by someone going out of their way to make a site for people looking for a very specific google search.
@Trowski A lot of americans don't have exposure to the guttural vowel sound in worcester or gloucester....and it seems to be a sound that a lot of people can't hear, let alone pronounce.
 
"worcester, to rhyme with fillibuster" seems bizarrely accesible
though I am a bit northern
 
Sounds like 'ce' is effectively silent.
 
12:45 AM
worcestershire => worce-ster-shire pronounced worse-ster-sher.
gloucester => glouce-ster pronounced gloss-ster.
Leicester => Leice-ster pronounced lice-ster.
The spellings are about 800 years out of date.....we should probably fix them at some point.
 
@DaveRandom I have no idea what you are saying
 
what?
 
and to complete the "I am easily amused" circle, moar pronounciation ridiculousness:
 
@DaveRandom huh?
 
I just don't have time for this, @Jeeves deal with him.
 
12:51 AM
@DaveRandom @PeeHaa do you understand the "words" coming out of that?
 
@Jeeves No buddy. Are you sure they be words?
 
@PeeHaa Who knows...
 
words and fists are pretty similar
 
@Jeeves <3
 
@StatikStasis you should flag messages next time....
 
12:53 AM
@DaveRandom Sure if you are a northern Brit they are when uttered out loud!
 
Only the offensive ones- LOL!
 
slaps @PeeHaa in the face with the trunk of @Jeeves so he hears two more pings
 
Your mother has no problems with @Jeeves' trunk either
 
@PeeHaa @Jeeves I am fully prepared to change my handle/avatar and set some shit on fire
@PeeHaaBeingViolatedByJeeves ohai
 
@PeeHaa So how did you finally recover account?
 
12:56 AM
because I went and involved at least 4 mods, which cause @PeeHaa to fix it by himself
 
heheheh basically that :D
So TL;DR Chris fixed it :P
 
so... how did you fix it yourself?
No mod help needed?
 
@PeeHaa that's my take-away definitely
 
Glad you were able to get it fixed.
 
tbf a more accurate account would be: @PeeHaa is so infamous that once I bothered to alert the mods to his predicament they all turned up to take the piss, and that triggered him to get off his ass and try
:-P <3
 
1:07 AM
All diamonds were just here to make sure I wouldn't come back
You cannot stop mei @TimPost
<sub>Please do not kick me</sub>
This was a lesson to all of us really
SO needs me
 
YES!
Just like my three to five subscribers on YouTube need me.
 
So we need each other!
 
<3
You, @Ekin, and one other person out there somewhere.
Actually I did get a small surge after the cowboy hat, 4 new subs. (That's a surge for me.)
 
I expected the cowboy hat to get at least 6 news subs honestly
 
1:59 AM
btw we do talk about PHP in here usually.....
 
2:29 AM
Incident with GitHub Actions ・ GitHub Pages has Partial Outage
 
 
3 hours later…
5:03 AM
@Danack haven't watched the entire video but this is the impression I get with Korean pronunciation in some cases, which has led me to believe there are similarities - Korean syllables that have conjoined consonant sounds get smooshed together to where 감사합니다 sounds like 감사니다. The first would appear to sound like "gam-sa-hab-ni-da" but is actually pronounced like "gam-sa-ni-da"
By similarities, I mean, pronouncing words in British English, it seems like syllables are skipped or smooshed together, similar to how syllables are smooshed together in Korean
I find it curious
 
5:26 AM
hey @PeeHaa, long time, heard about your situation, glad they managed to sort it out for ya
 
5:55 AM
@JoeWatkins Cool :) @Crell FYI
 
 
2 hours later…
8:12 AM
o/
@IluTov yeah there are things wrong with it, it's not totally fleshed out or finished ... but an approach maybe ...
 
All issues have been resolved!
 
8:55 AM
@JoeWatkins When I last thought about that I'd have added the args into the static vars array of a Closure instead of an extra partial class - then you can flatten the array trivially instead of nesting partials (multiple partial application), rebind as you wish etc.
 
Will there be a party at the 123456 commits mark?
 
no, there will be an integer overflow and the whole repo will disappear in a puff of svn
 
soo.. no cake?
 
byoc
 
9:12 AM
@DaveRandom ok.. but don't expect to share it
 
oh hi
 
 
1 hour later…
10:17 AM
@NikiC Since you encountered a little bit of resistance with wiki.php.net/rfc/object_keys_in_arrays, have you thought about just allowing enums as array keys? That should avoid most of
@JoeWatkins Thanks! I'll check it out soon.
@Danack github.com/iluuu1994/php-typealias-rfc/issues/1 I've compiled a list of places where class names can be used. For each there are three scenarios (I think): Typealiases work for all types (param/return types), they work only if the typealias references a single class/interface/trait (new, extends, implements, static method call, etc), or they don't work at all (::class, we don't autoload classes, ::class is just sugar for a string).
I called it typealias because I think it's the most accurate. We don't create a new type, as the type alias will be replaced at runtime with the actual type. This means with typealias Integer = int; the two types Integer` and int are equivalent (or should be as much as possible). typedef and type imply defining a new type. My thought process, but I don't really mind either way.
 
10:40 AM
@bwoebi I think I was moving in the direction of separating the implementation from closures completely, using a closure was a quick way to test/develop ...
still I hadn't got very far, it just about works ... there's probably problems I don't see yet ...
 
11:28 AM
@JoeWatkins I'm curious about why you think Closures aren't the way to go; what is concrete advantage you are imagining?
 
@IluTov @Danack I'm working on the function/symbol autoloading thing again, might be useful for a more generalized autoloader with types
 
i think `typealias` is better than `type`.

for example, in hack lang, there's two ways to declare new "types":

`type foo = string;` and `newtype foo = string;`

`type` creates a type alias, `newtype` create a type.

however, creating a new type in hack means that it is different that the actual type ( i.e a function that accepts foo, will not accept string where `newtype foo = string;` ), so you have to create a function that is able to construct the new type, in hack it's usual like this:

```
 
@JoeWatkins are refs properly passed? can partials be called with named args? (doesn't seem so to me right now)
 
hm, hack docs refers to both as type alias ( docs.hhvm.com/hack/types/type-aliases ) the first is transparent type alias, and the second opaque type alias.
 
probably not, but named args look supportable ... there's some overlap between closure and partial, but are we ever going to want to fromCallable ? do we need the get_method from closure ?
closures are pretty hard to work with outside of zend_closure.c ...
(if you want to do something new anyway)
there's no tests, I'm not super confident in it, I was just seeing if I could find a way without the trampoline stuff, the trampoline stuff made it really complicated and it only supported one kind of application (internal)
this way supports partial application of anything, but probably quite badly :D
 
12:31 PM
@Girgias cool.....btw I realised that one bit of it is trying to be clever, and actually ending up being dumb. long story short, using a single function to register loaders, is bad as it means that all of the callbacks need to have the same function signature, or might have the information parameters vary depending on what type of thing (function/class/typealias) is being loaded.
 
Yeah I kinda agree on that, but let me see if I can get it working as if first lol
It compiles currently, doesn't work at all, but it's something
 
@IluTov cool. will look at in a moment, just need to braindump out some debugging info....then go reset my head outside....
 
@Danack For BC yes, but for a new API not necessarily, passing a single argument with a base LoadInterface with a getSymbolType would allow the same signature with multiple behaviours, more beneficially it could be open to expanding in future without changing the signature as new properties could just be added. How that would place from a performance perspective is less clear, but probably worse
 
@NikiC are you going to add assert.bail to the deprecation RFC? (just saw your comment on a PR)
 
12:50 PM
Wiki.PHP.net appears to be down
 
Heh, did someone try to update it? ^^
 
yeah, this is not handy...
About to talk to Matt and Ondrej!
it looks like @kelunik is on the box though, so that might as well be happening.
 
Host is up, just the web server is down
 
I know, I have root.
 
was for @MatthewBrown sorry
 
12:53 PM
@Derick Yes, I'm upgrading.
 
OK - done in 5 mins though? :-D
 
Yes.
 
excellent
good work
 
Just consider in closing 111 if it's not being used
 
Just editing the few merge conflicts I didn't expect. ^^
 
12:55 PM
<<<<<<< Updated upstream
DokuWiki is available at https://download.dokuwiki.org/
=======
DokuWiki is available at http://www.splitbrain.org/go/dokuwiki
>>>>>>> Stashed changes
I see :D
 
cmb
@Danack, re bug #80931: I think we're doing it wrong, see stackoverflow.com/questions/11125463/… (that's exactly what's happening here; we ignore Content-Length etc.) Might not have been the best idea to switch to HTTP/1.1 by default. cc @IMSoP
 
@cmb I just updated it. I think there may be a bug in that the content length is set, and php (probably) has read that much data. PHP then initiates the connection close, but then sits there with the socket in a TIME-WAIT state.
and now my headache is back.
 
PHP Fatal error:  Class 'dokuwiki\\plugin\\config\\core\\Setting\\Setting' not found
Hm, didn't have that locally.
 
@cmb can you point me to where the code for this is?
 
cmb
@Danack the problem is that PHP has read the full response, but than waits for more, but the server won't send anything, so timeout happens.
 
1:02 PM
yeah.
 
oh look, streams.
Aug 10 '20 at 20:34, by Danack
self-defenestration intensifies.
 
cmb
heh :)
 
I sort of wish you hadn't upgraded the wiki ...
I mean we're all grateful, of course ..
 
Getting rid of the five messages about upgrading is nice though
 
1:11 PM
but are you going to be here in 6 months or a year, are you going to keep maintaining and securing the installation, and was there really nothing better you could have done with your time that doesn't just improve life for 30 internals devs but rather for the millions that use php ...
it doesn't make sense to spend our time on this stuff, is what I'm saying ...
because we have access, for free, to better tools, that we don't have to secure or maintain or spend any time on beyond initial setup (if that)
I actually saw the other guy get taken away from ru translations to work on the wiki (from github activity), and I'm sure there is stuff you could be doing, like documenting fibers for example ...
urm @kelunik
 
github has a wiki right
 
(I've forgotten how to chat)
 
@cmb So, the content length when read notifies the stream here heap.space/xref/PHP-8.0/ext/standard/… - so I guess the next step would be to figure out what that does..... but as PHP_STREAM_NOTIFY_FILE_SIZE_IS apparently isn't used anywhere else in the code, that seems weird.
 
@JoeWatkins Well, documenting stuff is something I need to work on as well. I've been slacking. :S can't document fibers because I would need to invest enough time to understand it, but there are a slew of things I do need to work on
I need to complete a RL goal that I've also been slacking on
 
cmb
@Danack the stream notifications are for userland (php.net/manual/en/function.stream-notification-callback.php)
the headers can be access here: heap.space/xref/PHP-8.0/ext/standard/…
but I wouldn't know how to add these to stream (or associate with) without breaking BC
and still, only Content-Length isn't sufficient
 
1:23 PM
streams take the idea of macros and make it something perverse ... it's such a headache to navigate
I guess the PHPAPI _ then #define pattern is left over from TSRMLS_*, but it's still with us a few years later ...
no actually, I'm not sure why it does that ... except everything has to be a macro because streams ...
 
cmb
@JoeWatkins I think this is for debugging: heap.space/xref/PHP-8.0/main/php_streams.h?r=24a19cc2#36
 
@Derick Does the login work for you? It doesn't work for me.
 
cmb
add filename and line numbers
@kelunik I can't login either.
 
@cmb my guess is that there is something peculiar to this server that is causing this problem, even if the underlying implementation in PHP also has a bug....otherwise everyone who uses file_get_contents would be complaining, rather than 1 person months after release.
 
I can't login either
 
1:30 PM
@kelunik Ooops, that was my fault
 
cmb
I think that server doesn't close the connection, while others do it. Setting Connection:keep-alive makes that reproducible.
 
it's also very slow to render
 
@NikiC Just got the message from Sergey. I'll turn the wiki on again then?
 
@kelunik I sent you a mail
 
@cmb just seeing that out of context - could this be relevant: github.com/php/php-src/pull/5899
"Connection: close" / "Connection: keep-alive" is an HTTP/1.1 feature
 
cmb
1:32 PM
@IMSoP yep, it's a problem with HTTP/1.1.
 
ah, just saw you already pinged me
 
cmb
the switch to HTTP/1.1 was long overdue, but our streams implementation has issues with it
 
@kelunik github.com/php/web-master/commit/… => The old token was supposed to still be accepted, but I missed a return ;)
 
cmb
it occurs to me that we should replace it with cURL (if possible); but then it wouldn't be available without cURL :(
 
well, HTTP/1.1 support has been there a while, so it's presumably an edge case with some servers
it's been default on SoapClient for years, although that does some of its own HTTP handling for some reason
actually, I'm pretty sure we send Connection:Close on the request
 
1:36 PM
@kelunik Looks like it works now
 
so is it even valid for the server to respond with Connection:Keep-Alive ?
 
@NikiC Yes, thanks!
 
yep, we always ask for "Connection: Close" in the request, regardless of protocol
why the server isn't honouring that, I have no idea
 
@kelunik let me check
@kelunik works for me
 
so according to the comments on the bug, the server responds with "connection: close" for HTTP/1.0 (where that header didn't exist) but not for HTTP/1.1 (where it does)
that's... broken
whether we need to deal with that brokenness depends how common it is; the headers claim to be IIS 10, which if true would make it extremely common
 
1:49 PM
@BoltClock Yeap \o/
 
@cmb I think there used to be an alternative implementation that backed onto libcurl, but it was removed because maintaining both was a pain
 
cmb
@IMSoP I think with HTTP/1.1 the client sending Connection:close means that the client will close the connection.
and, OTOH, if I force curl to send Connection:close, it processes the request just fine.
it seems stackoverflow.com/questions/11125463/… sums it up nicely
 
that answer's about keep-alive, which is what put me off
but your right, the RFC says this:
> A client that sends a "close" connection option MUST NOT send further
requests on that connection (after the one containing "close") and
MUST close the connection after reading the final response message
corresponding to this request.
 
cmb
@IMSoP oh, indeed: heap.space/…
if the server closes the connection, all should be fine, but if it doesn't there select(2) will hang
 
@cmb I believe it means that the server should close the connection once it has send the last payload byte
however I could be wrong about that
 
> A server that receives a "close" connection option MUST initiate a close of the connection (see below) after it sends the final response to the request that contained "close".
(that's the next sentence in the RFC)
the behaviour of the client is actually immaterial in terms of closing the connection, Connection: close is the client saying "I am not going to pipeline any more requests after this one"
 
seems like there's some complication with how the close process works further down that section
I haven't got time to look further right now, but will do some more digging later
it does seem like it should be safe for PHP to close the connection, anyway, so that would be a reasonable fix ... I think
 
if I remember rightly it's related to BC with HTTP<1, where the response body did not state its length in the headers
so it's to do with how the client knows that it has reached the end of the response
 
no, there's a whole section further down about two-stage closes
 
it's a very very long time since I was doing any of this though
@IMSoP ...and also most of what I know about 1.1 comes from RFC 2616, I haven't read every square inch of the newer ones like I had with that
 
2:03 PM
I'll have a look this evening
 
I wish I was going to but realistically it's not going to happen :-/
 
well, I guess it's technically my fault :P
 
:-P
 
2:38 PM
@Derick Nikita broke main.php.net :P
@JoeWatkins I agree, see externals.io/message/113991#113998
@Derick @NikiC I had core in my global gitignore to prevent pushing core dumps by accident, but that also ignored this :P
 
2:55 PM
ARGH why does Edge suck >_<
What works with Div floats in IE has them all over the damn place in Edge
 
I would rather blame whoever is supporting IE
UX Karen the ace of technology, strikes again
Make it compatible with encarta 98
 
function __construct() don't pass $var to context GLOBAL ・ Output Control ・ #80941
 
@IMSoP I have tcpdumps of the packets using http 1.0 and 1.1. I'll put them online after eating....but I think there's not much to see there. The packets all look correct, it's just the behaviour after the last one is sent.
 
@Danack Windows or Linux?
 
linux
 
3:55 PM
wsl2 is awesome.....until it breaks.
 
Did you copy them over from windows? It might have added them as root and you'll need to chown' them
 
..............it's been working fine for a week. it just stopped working suddenly.
 
chown -R the .git and it should work again.
 
Chown -r? I 'ardly even know 'er.
raw captures:
https://phpimagick.com/supersecret/php8_with_protocol.pcap
https://phpimagick.com/supersecret/php8_without_protocol.pcap

Filtered to the relevant bits:
https://phpimagick.com/supersecret/php8_without_protocol_filtered.pcap
https://phpimagick.com/supersecret/php8_with_http_10_protocol_filtered.pcap
@IMSoP @kelunik if interested.
 
Last night I managed to sudo rm -rf my WSL root directory by typoing =\
 
4:10 PM
 
4:22 PM
morns
 
@MarkR I bricked a mac once doing that. Was up way too late and should have stopped. Specified the root directory and just autopiloted my password
Was pretty brutal
 
I'd meant ./* and instead did /* and my life flashed before my eyes when it started throwing errors it couldn't delete device folders. Fortunately I killed it before it got to /mnt
Thanks to working with docker and WSL I had my dev environment back up within 20 minutes
 
I had no way to recover my system... I had lost the recovery disk and it was the only computer that could connect to the net to download a new one. Had to take it in to get serviced
Was pretty embarrassing actually
 
Whoopsie
I remember being the only one in my neighborhood with internet access back in the day, but I also had a massive pile of disks and would have had at least half a dozen boot/root disks lest anything go horribly wrong.
I mean, I also had a collection of viruses, so that could have gone horribly wrong too.
 
Nowadays you keep spare copies of PHP around?
 
4:34 PM
I was just learning how to program and had, for the first time, ran a script that connected to a database and wrote and read data from it. I stayed up waaay too late that first night
 
I can think of at least a dozen clones of the repo within arms reach right now
Althought I suddenly want to put a copy on my light switch.
Not a running binary, just a clone of the repo.
Because I can.
 
Not long after our website exploded into popularity, we hired a guy who had some programming knowledge but had never worked with web software. He accidentally wiped a whole MySQL table because he forgot a WHERE clause. That was fun to rebuild
Not too long after, we got hit by the original cryptolocker. Laughed it off because of the stronger backup policy after that debacle
 
Everything about principle of least privileges says you shouldn't give that level of access to a new hire, but everything about empowering engineers to move fast and break things says "fuck it".
 
At the time we were in the YOLO camp (we didn't even have version control back then). Now, not so much
 
My cat jumping on top of my desk / keyboard while I was working almost cost me a production DB on more than one occasion.
and yes, it would have been a cat-astrophe
 
4:42 PM
@MarkR boooo
 
4:55 PM
I used to blow away my local machine every few months anyway. Everything important was online.
Now... I have private keys. That's it, the only thing of value.
 
I always knew math would be my only friend.
 
@Danack What's the difference in behavior?
 
Example for object implementing Iterator is incorrect / misleading ・ Documentation problem ・ #80942
 
5:14 PM
@kelunik bugs.php.net/bug.php?id=80931 - tl:dr with http 1.0 the server initiates the closing of the connection, and everything works as expected. with http 1.1 the client initiates the closing of the connection, the server responds appropriately, and then PHP sits there doing thing.
the connection times out after 2 * 60 seconds.
which is also appropriate.
and can be repro'd on other sites:
$context = stream_context_create(array(
    "http" => array(
    //    "protocol_version" => "1.0"
        'header'  => 'Connection:keep-alive',
    )
));

$response = file_get_contents("http://eu.httpbin.org/", 0, $context);
 
5:38 PM
well, I just pinged my husband's local install of IIS, and it works correctly, so that's reassuring
as does that URL, if you don't force Connection:keep-alive
I notice the headers on the broken server include "x-aspnet-version: 4.0.30319"; that was released in 2010 and superseded in 2012 en.wikipedia.org/wiki/ASP.NET#Versions
 
I've seen someone do a PHP test with php code for the sources, don't remembre who it was
But basically they were some tests for fn()
And I've seen that there were some dashes at the bottom stating EXPECT something
Is this dash format part of a testing suite for the core ?
 
<?php

//code here

-------------------------------
EXPECT:

something something
Yes exactly
is there something else which checks for that validity and it reports failure ?
I'm interested
or are these just some convention which is only validated by a human looking at the output
 
make test
 
I'm interested in using this very same format for my own tests / examples
 
5:51 PM
@Danack @kelunik the server on the bug report responds differently if you send "Connection: Close" vs "Connection: close"
PHP sends it lower case, and the server doesn't acknowledge it in the response headers
 
What does the RFC say
 
if you send the same response with "Close" (upper-case C) it acknowledges with a "connection: close" (in lower-case, ironically)
 
Close or close or that the casing should not matter
 
indeed, that's the next thing to check :)
 
@ln-s Are you ready to be disgusted? github.com/php/php-src/blob/master/run-tests.php
 
5:54 PM
> Connection options are case-insensitive.
 
@PeeHaa Hm
 
Then it's not a bug on PHP side
but a bug from the server
which server, Apache ?
 
an old version of IIS by the looks of it
 
Well then it's an IIS problem \o/
 
5:55 PM
not reproducible on an up to date local IIS, and the server in question advertises a truly ancient version of ASP
 
Probably injection prone
don't know how wise was to post pcap files with data right here
 
but they're on a "supersecret" URL 😆
 
ws.correio.com.br or something
yeah no
 
> I just want to point that Correios (correios.com.br), whose API I am using and which is the one that makes file_get_contents dont work as expected, is the largest shipping organization in Brazil
people are probably aware of the api endpoint.
 
Same here
 
6:02 PM
1 message moved to friendly bin
that's not helping.
 
Won't even ask what was wrong with that sentence
because I'm really really really not interested in jumping into that kind of discussion
Just don't paste things that can cause harm on others
 
@IMSoP not sure that's relevant. file_get_contents() should get the file and then return the data. Not have to worry about what the reponse headers of the server are.
 
@Danack it's not the response headers that matter, it's the response behaviour
 
> it's the response behaviour
 
PHP asks for "Connection: Close" behaviour because we know we haven't implemented Connection: Keep-Alive
 
6:06 PM
PHP initiates the connection closure.
 
the server ignores that request header, and leaves the connection open
as you demonstrated, if you set "Connection: Keep-Alive", the connection hangs to any server
 
I don't believe so. The server responds correctly to PHP initiating the connection closure.
 
give me 5 minutes, and I'll test a build with that "C" in upper-case
not because I think that's the solution, but because it will prove the problem
 
1 min ago, by Danack
PHP initiates the connection closure.
2 hours ago, by Danack
everthing seems fine according to - https://gitlab.com/wireshark/wireshark/-/wikis/TCP-4-times-close
 
@IMSoP Is PHP not closing the connection after sending the response?
 
6:08 PM
the title of that page should probably be "what is the process when the client initiates the connecito closure."
@Trowski PHP closes the connection.....then attempts to read from it apparently. i.e. finack sent by PHP, server acks and then php.....sits there.
 
as far as I can make out, PHP's network behaviour is sufficient for any server that implements "Connection: Close" correctly, which is presumably equivalent to HTTP/1.0 behaviour
what PHP's implementation does not handle is "Connection: Keep-Alive" behaviour, which is the default in HTTP/1.1
 
Oh, so PHP is sending Connection: close, but the server still replies with Connection: Keep-Alive?
 
yes
it doesn't expressly give that header, but it doesn't respond with "connection: close" either, and keep-alive is the default
 
Right, then you're forced to just close the connection yourself.
That's how we handle it in amphp/http-client.
 
yeah, that's definitely the correct fix
it's just good to know that it only matters for talking to broken servers
 
6:15 PM
..............................................................
7 mins ago, by Danack
1 min ago, by Danack
PHP initiates the connection closure.
> phpt initiates the closing of the connection, the server responds appropriately, and then PHP sits there doing nothing.
the connection times out after 2 * 60 seconds.
 
@Danack no, the server is running keep-alive
this is enough to fix it for that server:
 
Is PHP actually closing the socket, or waiting for it to be closed?
 
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c
index da822d9160..7fdfa9448c 100644
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@ -574,7 +574,7 @@ finish:
         * HTTP/1.0 to avoid issues when the server respond with a HTTP/1.1
         * keep-alive response, which is the preferred response type. */
        if ((have_header & HTTP_HEADER_CONNECTION) == 0) {
-               smart_str_appends(&req_buf, "Connection: close\r\n");
 
@Trowski I don't know. I don't actually know where to look to check, but PHP is definitely initiating the socket closure.
 
I absolutely agree that PHP should be able to handle the server leaving the connection open
 
6:18 PM
 
fopen still uses HTTP/1.0?
 
but the server is 100% doing the wrong thing here
 
172 is the local php.
@Trowski no. 1.1 is default for http contexts.
 
@Danack Ok, good… was wondering what year it was for a bit.
Nice to know it's at least 1998.
 
@Trowski I changed it in 8.0; that's why this has surfaced now
I need to go make dinner now, but I'll see if I can find where we'd need to force the connection closed if the server leaves it open
I'm happy to know that it's only relevant to a buggy old version of IIS though
 
6:58 PM
Hi, I'm trying to understand Event Sourcing and CQRS and applying it with php. I understand that there has to be an event store where all the truth will persist forever and events will trigger services based on events.
On the read side, I'll have a read model derived from those events, so when an update is made a denormalized form of the db is updated for optimized reading and there will be a separate db on the write side. What is typically stored on the write side? The event store? Or something like an updated consistent state?
 
7:30 PM
What do I do if I can't reproduce an old bug? Put it as waiting for feedback?
 
7:59 PM
@ln-s afaik phpunit supports .phpt files
 
00:00 - 20:0020:00 - 00:00

« first day (3827 days earlier)      last day (1121 days later) »