« first day (3696 days earlier)      last day (1237 days later) » 

Wes
12:02 AM
class SalesAgent{ public function __construct($id, $name, $surname, $vehicle) }
array_to_ctor(SalesAgent::class, array_keys_to_arguments())->run([
    "id" => 398,
    "name" => "Marco",
    "surname" => "Scorsese",
    "vehicle" => "VW Golf 2018"
]);
basically this passes an array key, e.g. "vehicle" to a constructor parameter with the same name, i.e. $vehicle
 
@cmb Thanks for getting me the account. I promise to use it responsibly. On that note I couldn't find any guidance on how to deal with bug reports so I just closed one for a test: bugs.php.net/bug.php?id=66612 Am I doing it right?
 
Wes
so yeah some kind of automatic dependency injection from raw data
 
@Dharman It's a bit harder to revert stuff on SVN but still doable, there isn't really any guidelines with bug reports. But how you closed it is fine
 
thanks
 
@Girgias I was taught to revert changes in SVN is basically bulldozing over changes in the next commit
 
12:11 AM
it is
 
cmb
12:25 AM
@Dharman well done, thanks! :)
 
@cmb How relevant are these COM bugs? bugs.php.net/…
Because they all seem to point to PHP 5/Win XP for the most part :|
 
cmb
@Tiffany that's basically the same with Git if the commit has already been pushed; using --force is a last resort (and may not be allowed, and may anoy any collaborators)
@Girgias I assume that some/most of them are still valid; it's often hard to reproduce for me, because I don't have suitable COM objects available, and my knowledge of COM is pretty limited.
 
Right :/ I feel that's the issue with a lot of the old bugs, there isn't a reproducible usually with it so it's hard to figure out if it's still bogus or fixed
 
> basically bulldozing over changes in the next commit
 
cmb
for bugs that are unlikely to be reproducible, you can ask whether anybody hits that issue with any of the actively supported PHP versions, and switch to feedback (I'm assigning myself in that case, to get notification of feedback)
 
12:34 AM
Or going back in time, planting 30kg of C4 under the foundations with a remote control detonator.
Then waiting 20 years.
 
😂
@cmb yeah, I'm trying to improve my commit "hygiene" as it were, now that other people can see my commits...
 
12:49 AM
Interactive rebases save lives :) I mean on git... I've only seen svn from afar.
 
Well SVN has no staging area...
 
or reset, or revert
errr, it does have reset...
it has been several years since I used it regularly
 
@Girgias ohhh and there's only one repo? No local changes being pushed separately?
 
I mean I only use SVN because the docs are on it
But it's very much a PITA :(
 
The whole centralized thing sounds weird to me. But I'm not a software dev so this doesn't mean anything :)
 
12:54 AM
Reading php.markmail.org/message/… make me wonder if the change to a docbook revision attribute wouldn't have made moving the git a bazillion times easier
As the tooling wouldn't need to change
 
there was an experience I had with trying to remove an incorrect change in SVN several years ago, had to contact the third-party who helped set up the code base onto SVN (it was like a year into starting that job), and I was trying to reverse the change, but couldn't figure it out... I was told to just overwrite it, that it couldn't be removed, and it immediately made me think of a bulldozer
five or six years ago XD
 
1:10 AM
I still don't know why each page isnt given a custom <history> section and have git / svn reject anything which doesn't have a new one
 
@MarkR The docbook revision attribute would do that trick tbh
 
Could do, although a history section would allow adding additional metadata like the change date, author etc without having to rely on the source code management software metadata.
 
That... seems more of a hassle than anything else, why write a section when the VCS can do it for you?
 
1:26 AM
Because dealing with the data embedded in the file to which it belongs is usually significantly easier than having to access an external metadata store. Especially something archaic like SVN
 
The problem is syncing EN with translations
 
I thought it was the translations which usually lagged behind?
 
And that revision attributes takes this whole thing out of the equation as you don't need to work with a bloody SVN revision
Well it depends
Who knows
Cause a whitespace change or a typo will update the SVN revision tag
I'm imagining that one could do a pre-commit hook that would update the revision tag in the EN folder/repo except if your commit message is prefixed with [typo] or [ws] which then the translations could ignore
 
Personally, were it me, I'd have embedded the history right into the file, made it entirely self-contained, and checked against major / minor dates to allow for comparison. Have it done via a hook to save some time.
 
I still don't get why you'd want the revision history embedded into the file, that would take most of the file after a short time, and at that point because you're already using a VCS system (arguably SVN is shait) ... why not use that?
Like that looks like reinventing the wheel for no good reason
 
1:36 AM
I wasn't suggesting it would have a full copy of every change in it, only a note for who changed what and when. Easily readable, easily modifable using the exact same tools as the file content itself. Fully self contained, no need for a hundred thousand git files.
 
Why would there be a hundred thousand git files?
You'd still want every function as it's own page
 
Yes...
 
I don't get what your system would look like
 
I assume this revision number you speak of would be included in the docbook xml?
 
hmm call_user_func_array() treats an array (2nd param) with non-zero-width, null-byte at first character array key as named parameters (resulting in a named parameter with no name). @NikiC: guess this is implementation specific?
 
1:41 AM
The issue about the SVN to git migration is that currently every SVN revision needs to be mapped to a git commit and then the question is how does one move that to with git hashes
 
Probably a long shot: Does anyone have one of the new M1 MacBooks?
 
The revision attribute would be included in the docbook XML but is completely VCS system agnostic, as you'd already need a list of some sort that maps revision to a commit
 
tdg.docbook.org/tdg/4.5/revhistory.html guess it already has what I'm suggesting.
 
Change the VCS system, update the list once, and everything works as before
 
@Girgias add svn related revs to the git repository?
 
1:43 AM
@hakre that's... no, and it doesn't solve anything tbh
 
@Girgias each svn revision can point to the each git revision (commit).
resolve svn revision to git revision then.
or vice-versa.
 
Wait… raspberry pi's have an ARM CPU. Think I have one with some dust on it around somewhere.
 
@hakre I mean we already have that technically as doc-en has a mapping svn revision to git commit hash
 
@Girgias but repo is incomplete on languages?
 
I'm not following you
maybe because it's nearly 2AM here
 
1:45 AM
early 3AM here. ;)
I try to follow you that's why I asked.
 
Do you know how the docs are structured and how it works to know if a translation is up to date?
 
not really. are you concerned about the SVN attributes (subversion properties) in the source files?
 
Does anyone have a raspberry pi where they could compile PHP 8 and ext-fiber?
 
@hakre Not at all
Okay so SVN has this handy dandy tag which will automatically write the revision number it's own in the file
 
@Trowski travis has arm containers if it helps.
 
1:49 AM
@hakre That's an even better idea, I'll do that.
 
And translations have an XML comment which goes like this:
<!-- EN-Revision: SVNREVISIONNUMBER (other stuff) -->
 
arch: arm64 # LXD container based build for OSS only
os: linux # required for arch different than amd64
dist: focal # or bionic | xenial with xenial as default
 
And then there is a cron script which will read all the files and look if the EN-Revision tags of the file corresponds to the revision written in the corresponding English version
 
@hakre Thanks!
 
The issue is how do you update all translations to work with git or a weird mixture of both
 
1:51 AM
You remove the source code manager from the equation completely ;)
 
And the point about that email thread, is that if 13y ago they would have used this DocBook attribute instead of this thing it would be relatively easy to migrate to git
 
@Girgias git can write the revision into the file on checkout (or was it export?).
 
@MarkR I don't see how that would help in any way with syncing translations with English, you still need a mechanism to know when one is out of date or not
 
@Girgias Your english files have a modified history, your translated files have a modified history. If the last updated timestamp on the translated file is less than the last major timestamp on the english, then you flag it as needing to be updated
 
@Girgias marker like: $Id: 13780f21a7778583ceded2ce1771fea1db6f337b $
 
1:54 AM
The difference is you're embedding those change dates straight into the XML meaning it being on SVN or Git is 100% irrelevant.
 
@MarkR Writing all the changes which needs to be done to a translation is just a PITA and is literally why you use a VCS system, that's why I don't see the point of embedding the changes
 
It's basically the same as manually bumping a version number, but with the option to include who did it and what, to aide people in knowing where to look
 
@hakre Should probably send that to the people working on the migration (or they might know about it already)
 
You want a SCM agnostic system, then you can't rely on the features of any one system. The one universal element of all of them is they store files.
 
1:56 AM
As I don't do it personally
 
(yes, just in case if it may help)
 
The problem is not the version control system
It's HOW we reference it
And what hakre just sent could maybe solve it
But again too tired for this
 
What's wrong with good old fashioned dates?
 
The diffs
As a translator I want a diff of what LINES changed
not a general thing
So if you embed a history in the files, the lines become completely meaningless
 
french translation 2020-11-27 00:12:13 Z based on english 2020-11-15 15:16:17 Z
I wonder if translation works that way.
 
1:59 AM
@hakre that's not what Mark is saying, at least not to my understanding
 
just sandboxing.
sorry for the confusion.
 
A date/commit hash/revision number/whatever, is not the part I'm concerned tbh
 
migrated my first project to php 8 and found one flaw that was hiding deep inside ;)
 
Nice
Anyway I'm off to bed
 
It is pretty much what I'm saying. Except rather than just the one i'd probably do:

<history>
<change type="major" author="girgias" date=2020-11-26 22:00Z" >
<change type="typo" author="someoneelse" date=2020-11-28 22:05Z" >
</history>
 
2:01 AM
That still doesn't tell me what in the file changed
Like why invent a way to generate diffs, when VCS know how to do it
 
You said you needed a way to know when one is out of date, diffs are a diff..erent problem entirely :)
 
 
1 hour later…
3:25 AM
@danack ....either this page shouldn't exist or it should be less wrong: php.net/manual/en/language.pseudo-types.php
 
 
4 hours later…
7:07 AM
saturday room.
 
7:59 AM
Hello
 
8:26 AM
morns
 
@mega6382 hello
 
hello
am I remembering it wrong or did you used to be JavaFan?
 
Yeah really ha ha
I left java
 
so, you are kind of like a reverse @Gordon, lol :P
 
Gordon went to java ?
 
8:30 AM
Well, I believe that professionally he's been doing java for quite some years now.
 
PHP is really simpler and need much less time than java
 
9:01 AM
@Trowski I just used the hello world example
@hakre any string key is treated as a named param
Btw unless you are supporting PHP 5.5 code, you really shouldn't be using call_user_func_array anymore
 
9:44 AM
Unclear if user error (has been ignoring warnings) or some error condition changed on our side
 
 
1 hour later…
11:10 AM
MYSQL_ATTR_SSL_CAPATH Prevails on MYSQL_ATTR_SSL_VERIFY_SERVER_CERT ・ PDO MySQL ・ #80436
 
11:30 AM
Morngins
 
Testcases for shell creation wrong ・ *Compile Issues ・ #80437
 
hello. I know this is PHP forum, but I'm having problem with NGINX. real_ip_header is not working. I have real_ip_header ip; location / { allow ip; deny all; proxy_pass ip_of_proxy; } in sites-enabled/site.com
 
> is not working.
Does it stay home, eat doritos and play xbox?
 
it gives 403
 
Are you sure real_ip_header ip; is a valid syntax? Looking at nginx.org/en/docs/http/ngx_http_realip_module.html I don't fully understand what 'field' is in the allowed ones ....but it doesn't mention ip, which would seem to be a common thing.
oh, you're setting it?
 
11:44 AM
@NikiC yes indeed, this is code that is 5.3.3 backwards compatible.
 
yeah, I'm trying to set it. I started with real_ip_header CF-Connecting-IP; (for cloudflare) and it wasn't working (403), so I am trying to use a direct IP address. Nginx is missing some module maybe or something.
 
@good_evening er.....it turns out I have no idea - but it sounds like other people struggle with it, and maybe real_ip_recursive might work better serverfault.com/a/414166
> The parsing of the X-Forwarded-For header is indeed flawed in the nginx real_ip module.
yikes
maybe debug it by turning off the deny rule for now, and passing through the IP that nginx thinks is the real ip in a header, so you can debug it on your backend?
 
Yep, tried real_ip_header X-Forwarded-For; real_ip_recursive on;. Tried turning off deny all and checking on the backend as well, and on backend it shows proxy's IP address. I'll go insane I think.
 
@good_evening Good plan. Very popular in 2020. Ask a question on Serverfault as well though....this is likely to be something dumb in nginx that needs some specific incantation.
 
thanks, will try that, yeah
 
11:52 AM
btw - do you actually have allow ip; or is there a dollar sign in there?
 
it's an ip address and it works without Cloudflare just as expected
 
k, I'd use a fake but real-ish looking IP in the question, as otherwise it's a bit hard to figure out what your config actually looks like.
 
12:15 PM
jesus christ... the problem was that Cloudflare was using ipv6, so I had to allow my_ipv6_address
 
12:27 PM
I am 21 and am already having a midlife crisis
or maybe its just this Goddamn year
 
12:44 PM
Hey Folks. Can someone help me with what the current status of git.php.net/systems.git is? Especially in regards to doc.php.net? Are the changes pushed to the servers? Or are they pulled from the servers? As the git repo on euk2.php.net (which hosts doc.php.net) has last been updated in 2015....
6
 
12:57 PM
Is there syntax that allows calling a closure assigned to a class/instance variable ? I am not sure but I think there was something with { .. } and I cannot get it right. Or is it only call_user_func ?
Oh well got it with ( .. ) :D
 
@good_evening you will almost certainly want to allow both your ipv6 and ipv4 address. We use a... somewhat more complex setup for IP blocking on certain environments, and whether the browser chooses ipv4 or ipv6 to connect seems to be at least somewhat arbitrary.
 
@thgs Yup ($this->foo)(...)
A point of perpetual confusion in PHP
 
@Stephen I agree - but cf specifically seems to prefer v6 primarily when available and only fallback to 4 once 6 fails so that's not arbitrary
 
@Sjon we are using cf. we have no ipv6 routing from cf to our backend, and I will arbitrarily report my ipv4 or my ipv6 address depending on the hostname I connect to (they're all cnames in cf dns, and all set to cf proxy)
i.e. two hostnames (subdomains of the same 2LD, i.e. test.foo.com and dev.foo.com); when queried via DNS both names return the same 6 addresses: 3 ipv4, 3 ipv6, in the same order. browser connects via ipv4 for one, ipv6 for the other.
 
@Stephen Probably because they all correctly implement Happy Eyeballs
I was talking about cf<>backend but I realize it wasn't really related
 
1:09 PM
@Sjon that may actually be the cause, but I'd still suggest that "use whichever connection responds first" counts as "arbitrary".
yeah this is about browser <> cf; from CF it's all ipv4 to us, but the client address is read from CF.
 
sure
 
@heiglandreas Hi Andreas! :D
 
1:41 PM
hi
 
1:52 PM
hi
 
2:31 PM
Hey @Tiffany 👋
 
2:45 PM
\o
 
3:30 PM
IMAP has broken in PHP 8 when it worked in 7.4.x and earlier. ・ IMAP related ・ #80438
 
3:58 PM
hi guys how do i stop access to a apache server with a ip address, i only want users to access via the domain name
 
Maybe put a redirect on the IP address to redirect to the domain
Not sure if that's the right way to go about it though, might cause a loopback problem
 
i have tried a few options but no luck so far
 
@n4zg setup a default server entry, that either just returns a 404, or redirect to the proper domain.
@heiglandreas is it okay to remove "experimental" from github.com/php/doc-en now?
 
@Danack what file do i put that in
 
@n4zg It has been over ten years since I last touched apache config..... but searching for "apache default server" appears to give relevant results.
 
4:09 PM
How do I send a message to internals?
 
4:20 PM
Are you subscribed to the list?
 
yes
 
@Danack I would say so! Feel free to either provide me access so I can do it or do it yourself...
 
@Dharman Then just send an email to internals@lists.php.net
 
4:34 PM
What is this new syntax for the manual pages that displays so strange? php.net/manual/en/control-structures.for.php
 
4:48 PM
@Dharman btw, your email may be better sent to the docs list than internals
 
@Tiffany Do you mean phpdoc@lists.php.net ?
 
Yes
 
Is there a way to forward my email to the right list?
 
@Dharman your email client has the capability of forwarding emails presumably?
@heiglandreas for mental health reasons, I do not have, and should not have, access to php repos.
 
Do you mean that I just should send it to both lists at the same time?
 
cmb
5:00 PM
IMO that "experimental" is fine, as long as SVN is the source of truth
 
@cmb experimental implies it might be going away. "WIP progress" would be more likely to get people to using it. Also, who should Andreas talk to about being added to that repo?
@Dharman probably not, that would be cross-posting. If you've sent an email to the wrong list, just forward it to the right place, with a 'I probably should have sent this here'...
 
5:28 PM
@Danack Work in progress progress?
 
The department of redundancy department
 
Isn't there a ministry for that?
 
cmb
6:30 PM
Is there anybody who could review the Turkish or Italian translation of the PHP 8.0 release page?
 
Is it "Returns the number of parameter for the given statement" or "Returns the number of parameters for the given statement"
 
the latter
number implies an inclusive plural (1 or more)
 
@cmb @Ekin might be able to do TR if she reaaaally has to
But fuck Turkish :P
 
Can't we ping Marco for italian?
 
or @Wes
 
6:41 PM
Once I hit save in the online editor what happens?
 
though, not sure how @Wes feels about translating :P
 
I mean it's just reviewing
@Dharman Nothing really, it gets put into your W.I.P. section
You need to commit them from there
But the Online Doc sometimes just doesn't want to push changes for some reasons as of recently
 
Wes
the italian author is trustworthy, php-fig etc
 
Is that a valid sentence? :P
 
Wes
FU
 
6:47 PM
Wut?
Was pointing at trustworthy and fig
 
Wes
ah lol
i mean, he's known i would trust him
he's alessandro something
 
but can you review the translation to see if it's accurate? :P
like proofread
 
@cmb I'll review Emir's PR for TR
need to do this tomorrow though as it'll take some time
 
Also fuck Turkish :P
 
let's say... it's hard :P
 
7:04 PM
@Girgias Something something volunteering other people angry eyes
 
yes
But I think reviewing a translation/implementation is less annoying than asking them to write it :p
 
it'd be better to ask an Italian user group to get involved.
 
Alessandro organizes one 😁🙈
 
Wes
8:03 PM
@Tiffany i can, but i don't see how i am more trustworthy than someone that is well known in the community :B
 
pandas are known to be reliable animals
 
right? we all love pandas
be like panda
 
8:20 PM
just to compensate for my presence here: if anyone ends up thinking that a Hungarian version of the announcement is necessary and writes one, I can take a look (at least for grammar and typos)
 
@Wes Whatever you are in the community should be unrelated to reading through some text in your native language
If that is what is stopping you
 
Wes
i am reading, i don't like it much... sounds a bit too literal for my taste... but nobody's gonna read that :B
also you can't translate programming terms
nullsafe operator...... no idea how to translate that......
reead it all. yeah it's good. should i do something now?
 
@AndrasDeak What does a Python programmer do in PHP room?
 
Hi guys, if I wanted to help in some features, bug fixing, others of php what is the way?
 
8:35 PM
@Dharman I came for a flag, stayed for the shitposting, then stayed for the PHP core dev atmosphere. And the shitposting.
 
Oct 31 at 18:59, by Tiffany
THINGS I POST is an anagram of SHITPOSTING
 
@BruceStackOverFlow php.net/get-involved
Figure out how you want to help first
Specifically
 
8:52 PM
@Tiffany I think to start with bugfixing to take confidence with the codebase
 
@BruceStackOverFlow but there are many parts of the code base
what, exactly, do you want to work on within the code base?
there's also phpinternalsbook.com
 
@Wes Same things Ekin is bitching about
It should just be English
At the very least the terms
But screw translations in general
 
Wes
sounds nonsense lol
 
@BruceStackOverFlow also, I'm not trying to discourage you from helping, I'm trying to help you narrow your focus so that you have some idea on where to start
 
@Tiffany Ok I think to start from one of this bugs.php.net and to select something that I can solve. Technically I don’t think I have problems, I was worried about process
 
8:58 PM
because there is so much and it can be overwhelming
 
@BruceStackOverFlow What do you have experience with?
 
Wes
how does it sound in german/dutch?
programming stuff in italian sounds hella weird
 
@Wes loud?
@BruceStackOverFlow if you fix something, or even just have a partial fix, and need more help on getting it finished, opening a PR on github is a good place to get feedback on specific bugs. Or here.
 
Wes
lol
 
One problem is that most of the things that are easy to solve, are likely to have been solved already. Which leaves mostly nasty bugs that are difficult to solve...
 
9:08 PM
or...documentation :D
 
Not true. I found plenty of easy things to fix
 
@Wes all the same in turkish
 
@PeeHaa I thought it was just me... localized programming jargon is creepy
 
certain wording you cannot even 'fully' translate
 
@Wes God fucking awful
@AndrasDeak Nope it sucks
 
9:10 PM
I prefer everything in English because I have no idea what things are called in my native language
 
I'm aware of a few terms... like "heap" and "stack"... and they both sound weird
 
I don't even want to know what it is in Dutch :P
 
like, "pile" and "smaller pile", respectively
 
@AndrasDeak <insert joking insult regarding python>
 
my native language is not to blame for python :P
 
9:13 PM
oooh
 
although "my hovercraft is full of eels" might make a connection...
yeah, sorry, I meant the translated terms
 
I thought you were making a joke about the concepts of heaps and stacks being weird, and I can't remember if python has data structures for either of those
 
Well not when it comes to heap vs stack as in where variables live. There are heap queues in the standard library. And yeah, I have no idea what those things really are :D
 
Wes
i worked on an italian mixed with english codebase once. hilarious
 
@Wes 0/10, would not recommend?
 
9:15 PM
/* 🤌 */
 
Wes
was like getModuloPagamentoIsChecked()
you can't change get/set not even in italian :B
probably because the IDE generated them automatically :B
 
There are sometimes questions on SO where all the variables and comments are non-English. It's really jarring to read.
 
it's jarring for a native English speaker :(
but that's my problem :S
 
And I'm aware that it's inclusionary to want people to be able to use their respective native languages for coding, it's just not what my brain is trained to read
 
I have worked for many years in c / c++ now only PHP.
But I think if I can find the time, I can update my knowledge and try to give support ... In this beautiful language. I have already compiled the PHP for my personal experiments to understand some PHP behaviors.
sorry for my English.
I might waste some time but I would like to try. Sorry for the English I'm italian.
 
9:19 PM
at least Italian uses Latin characters :)
@BruceStackOverFlow your English is fine, don't worry about it
 
@BruceStackOverFlow something worth keeping in mind chat.stackoverflow.com/transcript/message/50934206#50934206
having knowledge of C helps, certainly, but php-src is... ..... not what you would expect :D
 
Hmmm, how does github identify that "proprietary macro language"?
or is it technically C
seems to be the latter
 
technically C
 
@AndrasDeak Programming itself is trying to sublime some sort of problem into general idea (called solution) or to say abstracting all characteristics of problem into one general truth, or analysing and dividing problem until each division becomes problems that can be sublimed into solution. Following that one, writing code in multiple languages is not step forward. #justsayin'
 
@Tiffany Ok not problem :-) I try to organize myself and solve some problems, in case I go back to chat and ask for support, to proceed with the right modalities
 
9:25 PM
I've even seen C files where some comments had broken character encoding
 
@BruceStackOverFlow phpinternalsbook.com will probably be the most help for you
Nov 24 at 18:23, by cmb
I'm still waiting on PHP 5.1: https://github.com/php/php-src/blob/php-8.0.0/ext/com_dotnet/com_persist.c#L20
 
oh yeah, I saw that one :D
 
@Tiffany ok!
 
@BruceStackOverFlow you should change your handle to @BruceOverflow
moin
 
omin
 
9:38 PM
nmio
 
moomin
 
Wes
@Ekin @PeeHaa gta 5 60% discount on steam. new heist coming 15 december
also @StatikStasis
this game is a phenomenon. 7 years old, and the best is yet to come
 
@DaveRandom hehe ok
 
9:53 PM
moon
 
Is this a bug? This works. This does not.
 
I remember long discussions about the nature of that problem in here, I'm guessing mostly involving @NikiC and @LeviMorrison, I don't remember the exact nature of it
 
cmb
@Wes thanks, that good enough for me. :)
 
10:10 PM
@IluTov here is a tiny tiny tiny fraction of that conversation, you'd probably do better talking to them direct though chat.stackoverflow.com/transcript/11?m=40511159#40511159
the summary answer is that yes it is a bug, but not one that can be easily fixed
 
@DaveRandom You guys have great memory :D Ok cool, thanks!
 
s/have great memory/spend too much time in here/
 
10:28 PM
s/spend too much time in here/do too much drugs/
 
cheers!
wondering what triggers this additional output next to a warning:
+
+Call Stack:
+    0.0001     413712   1. {main}() Standard input code:0
+    0.0042     940824   2. require('/home/travis/build/ktomk/pipelines/tests/unit/PharBuild/phpt/error_handling_diverse.php') Standard input code:41
+    0.0053    1077424   3. Ktomk\Pipelines\PharBuild\Builder->stubfile() /home/travis/build/ktomk/pipelines/tests/unit/PharBuild/phpt/error_handling_diverse.php:11
+    0.0053    1077424   4. file_get_contents() /home/travis/build/ktomk/pipelines/src/PharBuild/Builder.php:97
 
Probably @DaveRandom's mother
 
(think away the +'s in front) - could it be this is an xdebug setting?
 
@PeeHaa no her stack traces are much deeper than that, she loves to go deep
@hakre it has to be either xdebug or phpdbg
I don't recognise the format, and the frames are backwards
 
@DaveRandom I hear that a lot around here
 
10:33 PM
maybe the new xdebug though, are you using PHP 8/xdebug 3? @hakre
 
this migration from travis-ci.org to travis-ci.com is of so many surprises.... and all need fixes. maybe xdebug should be disabled when building phar files in ci then.
 
more likely ini settings to control its behaviour, otherwise you won't get code coverage etc I think
 
@DaveRandom I do, but with that combo no problems. This is PHPUnit 8.5.11; PHP 7.4.12; Xdebug 2.9.8 on travis-ci.com
 
idk, @Derick is your man if he's floating about
 
@DaveRandom yes, the coverage.
I think your hint is good. this is in a phpt test that runs within phpunit, so xdebug is enabled for sure. as it's xdebug 2 most likely more settings are enabled than original coded for.
I can look that up in the xdebug docs and should be able to add the ini settings to the test.
 
10:37 PM
I think in order to manipulate stack trace output like that your would have to be loaded as a zend ext
although not 100% on that
 
xdebug is loaded, yes. that's it.
 
cool :-)
 
the xdebug online docs are looking so much better these days (also liked the old ones)
 
yeh I was just looking at it and thinking the same thing
not been there for a while
 
last week I polished my pecl skills and introduced xdebug 3 to all php versions 7.2+.
apart from me being kind of a noob w/ pecl, this merely worked out of the box.
it's only now on travis with 8.0.1-dev I get a higher number of segfaults, no idea it's xdebug or php.
 
10:50 PM
it's a nightly build so probably the latter
 
locally some php versions had pecl xdebug install with a segfault at the end, but step debugging worked flawlessly anyway. no complaints.
 
@IluTov I say "yes", but do not volunteer to fix it.
But, putting them in the correct order should work.
 
@LeviMorrison Yep, I only discovered it when generating the enum code. I'll have to flip the declarations.
 
@IluTov are you using a linter in your projects already? (just asking - a linter should not catch these)
 
@hakre This is php-src, so no :P
I wish we would though.
 
10:53 PM
@IluTov ah okay, I thought this is related to PHP userland code.
like the order how define within the same class.
 
@IluTov is responsible for match and nullsafe operator in 8 :)
 
oh. thanks a lot for these contributions sir!
:)
 
Lol, thanks xD
 
@IluTov match I still have to exploit, (but) nullsafe is nice sugar to the max.
 
Great, switching the declarations fixes this case but breaks all the others :D Sometimes I hate programming.
 
11:04 PM
@IluTov you need a topological sort on the declarations :)
 
11:15 PM
is_callable() does not call autoloader function ・ *General Issues ・ #80439
base_convert doesn't take named arguments ・ *Math Functions ・ #80440
 
Wes
lol
that's where i still live. in the past
 
11:33 PM
@DaveRandom comments remind me I want to watch Blake's 7 sometime
 
If you have access to BBC iPlayer somehow, I recommend Bitter Lake which is back on there atm, it's an Adam Curtis documentary and not exactly light viewing but a great watch
 
11:50 PM
@AndrasDeak The order is probably correct. But it triggers some other issue which breaks tests that have previously worked which just feels like going backwards -.-
 
Well, I added a small feature to a changeset. 2 test failures, 136 errors :|
 
I just remembered the existence of these things and how much I wanted one when I was like 9. I am such a loser. thumbs.worthpoint.com/zoom/images4/1/0516/04/…
 

« first day (3696 days earlier)      last day (1237 days later) »