« first day (3784 days earlier)      last day (1146 days later) » 

3:58 AM
highlight_string ・ Unknown/Other Function ・ #80793
 
 
6 hours later…
9:54 AM
@Girgias Regarding wiki.php.net/rfc/…, this ini setting is used by symfony to throw on unknown class, instead of creating an incomplete class
@Girgias For wiki.php.net/rfc/…, main problem I see is that while we have alternatives, they're pretty unergonomic and don't cover all cases
E.g. I don't think it's possible to get the headers if the request failed
 
morns
 
 
1 hour later…
11:03 AM
@NikiC Ah right, well that can be dropped then I suppose, as like I only had a brief look when I discovered this
@NikiC I thought it was possible to replace it completely using get_headers(), which i would expect to also returning the headers if the request failed
 
@Girgias get_headers only gives you the headers though
Not headers and response
 
I mean the variable also provided only the headers, but you do get the content in the same request, maybe curl with CURLOPT_HEADER, CURLOPT_WRITEHEADER, or CURLOPT_HEADERFUNCTION can do the trick from what I see
Also bloody hell is curl_setop a function straight from hell
 
12:03 PM
--enable-bcmath documentation incomplete ・ Documentation problem ・ #80794
 
 
1 hour later…
cmb
1:08 PM
@Devflow yw; actually, this is even documented in the PHP manual :)
 
first time logging into VPS in months, and I think I broke it ...
almost tempted to rebuild it, haven't rebuilt it in two years at least, need the practice
 
1:32 PM
Incorrect arguments signature for LimitIterator ・ Documentation problem ・ #80795
 
1:48 PM
o/
 
 
2 hours later…
cmb
3:44 PM
PHP 8.1: deprecate assert_options and related INI settings?
 
Y THO?
 
4:02 PM
@MarkR Btw thanks for sponsoring <3
 
@Sara They are honestly terrible.
 
cmb
4:15 PM
It is already documented that this shouldn't be used as of PHP 7.0.0, and it's a mess.
 
At least I fixed this bit for PHP 8.0: Default assert.exception to 1.
 
@LeviMorrison fyi I'm writing a namespacing rfc ... people are gonna hate it
 
@NikiC ... are you sure you want to do that? Everyone is so divided on this point and it's been discussed recently, so I don't think it'll sway anyone (in any direction).
 
/me pushes the [Popcorn] button on the microwave
 
@LeviMorrison I got the impression that the namespace issue is starting to adversely affect any stdlib additions, so it seems worth a shot
 
4:28 PM
@NikiC Yes, it is.
 
4:38 PM
decbin errors out on 32-bit PHP installs with "negative" numbres ・ Math related ・ #80796
 
@LeviMorrison Like I mentioned before, the problem is the 2/3rds issue. In this case it causes paralysis as 40% of the people think namespaces are the manifestation of evil, and 40% think that adding more stuff without them is just digging an even deeper hole for down the line. It doesn't leave much wiggle room to pass RFCs.
 
I see your point, but I still stand by 2/3rd being needed.
We don't want tyranny of the majority nor tyranny of the minority. Co-operation and true compromise seems the best way forward in this case.
If we are still having this conversation 3 years from now, then maybe it's time to force simple majority.
 
Hasn't this conversation being going on for years already? wiki.php.net/rfc/namespaces-in-core is 2017
 
That way the majority gets their way, but only after a sincere and long effort to appease the minority.
@MarkR Yes, but I still don't think there's even a namespacing leader. There may be 2/3 of voters who support namespacing, but they don't agree on how to namespace. That's important.
 
4:54 PM
Valid point
 
No proposal is even close to achieving majority.
 
I think Crell and I made some miss-steps in our last one about restricting what kind of symbols could be used, I'd hoped to pre-empt and avoid people doing things the "old" way but in a NS, spamming constants (JSON style) rather than attaching them as class constants (ZipArchive style)
But I've since been won over to the idea of being able to polyfill individual namespaced functions
 
user15248833
anyone one here a little familiar with mod rewrite php parameters?
 
> Don't ask to ask, just ask.
 
user15248833
5:23 PM
need to add ? at end of first parameter mod rewrite ` RewriteRule ^user/password-reset/([^/]+)$ user/password-reset.php?reset_token=$1&token=$2 [L,NC]` but it only works with no? between
 
user15248833
it should look like user/password-rest/212331?token=123242
 
5:47 PM
something like RewriteRule ^user/password-reset/([^/]+)$ user/password-reset.php?reset_token=$1 [QSA,L,NC] probably
 
@cmb You've been on a cleanup mission haven't you
 
@Girgias 😆
 
I mean I was catching up on the week of doc commits for doc-fr
And then they kept piling up in the last hour D:
 
x_x I really wish I was fluent in another language to help out with that.
 
cmb
6:06 PM
@Girgias yep, couldn't resist ;)
 
I totally get it, I did go through the whole docs for removing mentions of PHP 4
But gosh so many times editing the ini.list.xml one x)
 
6:29 PM
Does Ocramius vote yes on anything? :-) He seems to have voted no on most things lately.
 
So have I. :p
No... no, it's the RFCs that are wrong.
 
I was curious why you voted no on Enums, btw. :-) You hadn't commented on it that I saw.
Were you also in the "new zval type, not objects" camp?
 
That's the TLDR version, yeah.
 
Got it.
 
I also qualified in a few places that, were the vote closer, I could have been convinced to at least abstain because at the end of the day having enums is better than not, even if I don't like the how of it.
 
6:36 PM
We were curious, since that was the only structurally negative feedback we got but a lot of people were voting no without having specified why.
(And that's a fair criticism, and not one we could do much about without a crapton more work than either of us was up for.)
 
6:48 PM
@Sara Would have done the same tbh
It's more there to signal, there are some concerns with the chosen implem, but it's not totally bonkers
I think Ocramius said the same thing on Reddit
 
@Crell And that's a big part of it. If I'm not willing to step up and do the work, then my 'no' softens pretty quickly. :D
 
7:20 PM
what license is the php8 release page logo under?
 
> please provide an interesting fact about yourself
T_T I dunno.
 
Incident on 2021-02-24 19:25 UTC
Incident on 2021-02-24 19:25 UTC ・ Git Operations has Partial Outage
 
@beberlei That's a good question it's from Vincent Pontier and it just says FREE: twitter.com/Elroubio/status/1300843481829703681?s=20
:|
 
@Girgias thank you
 
You're welcome :D
 
7:38 PM
I'm trying to better at unit testing. Any resources would be greatly appreciated. I have already looked at the PHPUnit documentation and I purchased the grumpy programmer books.
 
7:49 PM
get^
 
8:01 PM
All issues have been resolved!
 
should fsync also be on the streamWrapper class?
 
8:45 PM
please don't try to add stuff to that uber-broken API :-/
I'm all for making user streams more useful, but that is not The Way imho
 
just saying, CONSISTENCY :P
 
that API badly needs to be shown the "I" in SOLID
(i.e. it should be several small interfaces)
 
@SalOrozco Grumpy's books are a solid place to start. Experience will teach you more. If you're greenfield/practicing, then I would point you toward: https://peakd.com/php/@crell/don-t-use-mocking-libraries

Basically, if it's hard to test then there's a good chance the problem is your code, not your understanding of testing. :-)
 
@DaveRandom just saying we already have this thing, and now something new is added that should be on there
of course stream wrappers need some work, but combining two things that could be tackled seperately is just bad management :p
 
@beberlei I see it as an opportunity to make people do it "the right way" :-P
though actually the two concepts are not incompatible
 
8:58 PM
> And it's done after internal frame clean-up on purpose.
> Interrupts occurs in specific VM states that allow transfer control between coroutines.
> Simpler, interrupt handler doesn't have to return back into the same place where it was called from.
> Your patch doesn't take this into account.
@NikiC This is what Dmitry said.
PHP doesn't have coroutines, so I'm not sure how to respond.
 
heh :)
 
If this is to support some specific extension that adds coroutines, then I have problems with that. We shouldn't hobble the core because of the need of one (apparently not even public?) extension. VM interrupt handler is definitely an extension point, and many interrupt handlers would want that top of the stack, not top-less-the-internal-call-that-I-just-made.
I know how to respond to the rest of the email, but this piece... no idea.
 
Supporting this does seem pretty useful for preemptive schedulers
 
The rest of his email seems to suggest that he thinks PHP is interrupt safe. Is that how you read it too, @NikiC?
 
@Crell thanks, I will check out your article, blog.
I have watched a PHP conference where a speaker talks about using PHP with swoole with no server, very interesting.
 
9:12 PM
@LeviMorrison i'd assume he has ptrace in mind
 
@NikiC That still uses signals, which implies interrupt safety.
@NikiC ptrace from another thread will not work; see stackoverflow.com/a/30405504/538216.
 
@LeviMorrison iirc under ptrace even system calls that are not usually restartable get restarted
 
This limits it to the CLI SAPI, where you could do such wrappers.
 
9:30 PM
@LeviMorrison couldnt you just store the previous executed function name somewhere and update that in observer end handler?
 
Using observers is too expensive for an always-on profiler.
I measured using zend_execute_internal (which is really what I need, internal calls). It adds 2% :/
 
define "a profiler", one that runs in 100% of the requests if that is too expensive :D
2% is nothing imho
our competition seems to be happy about 10% overhead being "reasonable" :)
 
Well, to be clear I'm talking about a true profiler, not the tracing stuff that dd-trace-php is doing today.
But yeah, if my budget is 10% overhead and I lose 2% just to intercept internal calls... ouch.
 
9:44 PM
i don't mind our callgraph profiler doing 20-30% overhead, its only triggered by developers or via tracepoints for limited amount of time
(and that is already magento 2 that does so many user function calls that you are going nuts)
its not a sampling profiler though (obviously)
 
user4717133
hello guys exist a way in php to convert hex color like #2B8029 to near ansi color???
 
@beberlei Right, exactly.
 

« first day (3784 days earlier)      last day (1146 days later) »