« first day (4108 days earlier)      last day (840 days later) » 

12:01 AM
I got 99 problems and having to go through and type all my custom exceptions with 'int' on $code is at least a good 20 of them.
 
12:22 AM
well, fvck all of this, nothing works, my wsl install is assuredly borked, let's drink rhum
 
which distro are you using?
 
ubuntu. I was defeated by this:
Setting up libc-bin (2.31-0ubuntu9.2) ...
Aborted (core dumped)
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib' given more than once
/usr/lib/x86_64-linux-gnu/libfakeroot:
        libfakeroot-0.so -> libfakeroot-tcp.so
 
I've ordered a Mj�lnir2 tshirt... it arrives in approximately a week :D
 
You've ordered a bad unicode shirt?
 
12:25 AM
Did you go off zerglings? :O
 
ohhhhh
 
I need more zergling shirts
 
imagine having only a single zergling shirt
all alone
 
I want another Starcrafts hoodie ;_; mine is all worn out
 
12:27 AM
can't even zerg rush your washmachine
 
I now always get hoodies from my parents for Christmas. I look complete emo now with a hoodie up and my hair half way down my face
 
nice :) christmas hoodies! I hope they keep you warm
 
That and the fan heater on my toes
 
 
1 hour later…
1:47 AM
BELTALOWDA! ;-)
 
2:01 AM
I need to continue watching The Expanse
but I think I want to finish DS9 before it comes off Netflix, or try to watch as much of it as possible before it's off netflix
 
2:13 AM
oshit is episode 6 (also last episode) is out already? I'm kinda scared to listen
 
2:32 AM
If I had £1 for every hour I spent fighting psalm to pick up new changes I'd made, only to realise that I had been changing identical looking code in a different file, i'd now have £1
 
2:46 AM
zdnet.com/article/… maybe PHP would qualify...
 
 
3 hours later…
5:26 AM
@DaveRandom youtube.com/watch?v=qe01GUiEGoo mood boost
omg that video is hilarious
 
 
2 hours later…
7:22 AM
@IluTov yeah, initially I used --depth 1, but then I realized that it doesn't work when you want to checkout a specific commit. Most probably --depth could still be used in AWS env when only a branch is given.
@IluTov Hmmm, #[\ReturnTypeWillChange] is a PHP 8.1 feature, and as far as I know Symfony added lots of these annotations. Are you sure that it's the problem?
 
8:18 AM
One question, is there something like "TFS" (or FTS or something similar) which points to the max capability for an API (or server) response per second?
 
8:40 AM
@MateKocsis Oh you're right, maybe I looked at the wrong message. Or maybe the benmchmark checks out an old commit? I'll check after work.
 
 
2 hours later…
10:15 AM
How can I access the variables I defined in config/session.php? I am using Laravel
I changed them and I want to check that they are what I think they are 100%
but I cannot find anywhere how to access them with PHP
all I get is how to access PHP Session variables, which is not something I need
 
@MarkR ugh sounds like a lobbyist party to claim funds for already company sponsored open source projects. I put much mor ehope in the EUs plan to appropriate money to fund open source
 
@FélixAdriyelGagnon-Grenier yeah, came out midnight UTC. It's a ... belter ;-)
 
Good morning
 
10:41 AM
Oops, readonly property loophole? 3v4l.org/RHZJm
 
haha
well one could argue that the reference is read only, not the value
@OndřejMirtes 3v4l.org/Q2YFp
so that doesn't works
 
I think my example is specifically mentioned in the RFC and that it should throw an Error: wiki.php.net/rfc/readonly_properties_v2#proposal
$test->i =& $ref;
But somehow it's allowed inside constructor?
 
Not only inside constructor 3v4l.org/f19r1
 
Oh now it's bug for sure.
 
Does anyone remember that bug in GCC that lead to PHP behaving strangely when compiled with an affected version of GCC?
 
10:50 AM
There were several GCC versions / bugs, but I can't remember details.
 
Thanks, it's not important. But if anyone remembers of the top of their head: ping me :)
 
@SebastianBergmann "git log | less" in the php-src tree and do /gcc
and you will find several
 
@OndřejMirtes In my opinion the implementation is not far off, you are assigning an address to the property as readonly, when I tried to change the address of it it didn't let me
Not a bug man, just a feature (?
 
PHP does not have the concept of "addresses" like C, and this does look like a bug.
 
zval ref
still a reference to a place, not a value, no ?
 
10:54 AM
Gonna report it on GitHub, thanks!
 
zval refs (user land) aren't pointers... so not in the strictest meaning of that word
 
Ok I'll use ref next time
 
@SebastianBergmann There were plenty of over optimisation bugs for example
 
@Derick IIRC it was one of those. Grepping the history now (should have thought of that myself).
 
The issue for anyone interested: github.com/php/php-src/issues/7942
 
10:59 AM
@OndřejMirtes Added the other example were ref is readonly
 
11:39 AM
guys, any idea why the first one is a bit faster? 3v4l.org/thr3B
 
 
1 hour later…
1:00 PM
If you don't divide the result by 60 the difference shows a few "thousandth" of a second difference, does this matter?
 
1:25 PM
@cmb thanks
 
@Shafizadeh stackoverflow.com/q/9936132/1320374 This one too (it's linked in the one Christoph posted).
 
:pray:
 
2:18 PM
Happy Fraidai all
 
@PeeHaa \o
 
Heya Statik o/
You're awake early (or I woke up late) :)
 
My normal time. =)
 
Guess I managed to sleep long :D
 
=D
Getting ready for snow this weekend here.
Supposedly up to 8"... which we have not had that much snow in over 20 years.
 
2:26 PM
Hi Guys,
I am running PHP 5.3 version on my local. So openssl version it has is 0.9.8 and I want to upgrade it to 1.0.2. Mere replacing higher php_openssl.dll is not working. Is there anything I am missing?
 
@StatikStasis Nice!
All my US colleagues have been seeing snow already too
I might go find the snow next month \o/
Where we are now we only get cold and rain which is the worst
 
I prefer 21 degrees year round.
 
Well yes I tend to agree :D
 
Bahamas is like that most of the year. Median temp.
 
I could do around 30ish too perfectly fine though
 
2:30 PM
@Exception I'm not a Windows user, but php_openssl.dll likely refers to the OpenSSL PHP extension and not the OpenSSL library itself. php.net/manual/en/openssl.installation.php talks about DLLs for OpenSSL system libraries, which are expected to be found in your path. FYI the builds on windows.php.net tend to include the necessary OpenSSL system libs and extension.
 
That's pretty warm.
 
@Exception any particular reason you are still using 5.3?
 
legacy project
 
I see. have fun with the migration :)
 
cmb
@Exception why would you want to upgrade to OpenSSL 1.0.2. That version is EOL for more than two years. Upgrading PHP 5.3 to use OpenSSL 1.1 certainly won't work; that's only supported as of PHP 7.2.
 
2:40 PM
I have one server which runs on PHP 5.3.29 and having openssl 1.0.1. So not sure how is installed..
 
@PeeHaa oh that's kinda warm
 
I do better in the summer (with a cold beer) :-)
 
HI

anyone can answer this or guide me how to handle this?

https://stackoverflow.com/questions/70668766/get-members-who-did-not-place-order-in-join-query-and-count-their-commission
 
cmb
2:59 PM
@Exception I guess that is a Linux machine. If so, and you really need to match that, I suggest to install that in a VM running on Windows.
 
3:21 PM
Folks, I'm working on a very early stage documentation piece that maps userland php code into "core/internal" php code, such as declaring a class property "private string $name;" into a few lines of C code, and then linking each macro, function, flags etc to their declarations in the appropriate header files. Thoughts?
 
cmb
Isn't that what gen_stub.php already does?
 
@FlávioHeleno That sounds an awful lot like - github.com/ThomasWeinert/php-extension-sample, which I have a note of on phpopendocs.com/internals
Those examples do need updating for PHP 8, as well as having enums and the other new features added.
 
gen_stub.php gets a stub file and outputs the arginfo.h with declarations and types, and indeed @Danack, it is a lot like that project (which I take a lot of inspiration of), but what I'm trying here is to be more explicit about what you can do and where to find things inside php src
 
@FlávioHeleno Then let me know when you have anything, and I'll add it onto that page.
 
3:27 PM
@MarkR I am very pessimistic about that effort. One of the 'stable' end-games for opensource is for any successful project to be forked by AWS (or any collection of large companies with sufficient cash) who will provide a managed version that other companies can use. For any security problem, the forked version will have many more resource thrown at fixing it, while the original open source project will remain unfunded.
@FlávioHeleno If you're going to do it as a doc, instead of as branches as THW has done, then you're going to need many more words to explain what is going on, I think.
 
ideally I want the doc to be sourced from the source code (ie. I'll have a bunch of folders with code samples for each section - functions, classes etc) and then extract a piece of the code and put it in the doc. So that way the code can have extra return types/argument types/etc and the doc itself is used as a general reference
when I was working on a few extensions I caught myself searching for declarations in Zend/*.h all the time, thus the idea of having it somewhat organized in this way
 
@FlávioHeleno seems well organized, would add example section
or reference to part of code where that is used as an example
 
3:46 PM
any of you expensive computer chair haver also have the type of chair with a movable thing in the lower back? that sometimes hits just the perfect spot then there's a 10 minutes period of literal epiphany of no pain then it moves ever so slightly and back for 45 minutes of tweaking around? or is that just me
 
@ln-s the idea is to reference to the code examples, so that the user can go more in depth into the possibilities
 
@FélixAdriyelGagnon-Grenier have you ever used a chair with a tiltable seat? Because I personally believe those lower back rest thingies are mostly used by people who really ought to be using a chair with a tiltable seat....
 
4:13 PM
@FlávioHeleno nice
 
JRL
4:51 PM
did anyone ever update wiki.php.net/rfc/array_column_results_grouping after voting ended? that was supposed to be 10 days ago
it seems the original proposer has disappeared
 
cmb
5:11 PM
@JRL thanks! I've just closed the vote.
that should be automated, though
 
@Danack hmm don't think so? I realized after receiving my chair, in a truly phenomenal systems irony, that tiltable back was the only option I didn't choose. insofar as tilting means changing the angle between my back and my legs?
I still haven't completely recovered so never contacted the vendor to see if they could somehow add it for a fee or something
 
The correct way to sit while programming is with your feet at or above waist height.
 
Feet, not stomach above head. That sounds like a good opportunity for stomach ache.
 
6:09 PM
@FélixAdriyelGagnon-Grenier apparently it might be called forward tilt - youtube.com/watch?v=MNNqTY_EfGo&ab_channel=BTOD.com
 
6:44 PM
I'm getting an error that's a result of me not having the CURL extension installed locally, but there isn't an apt package for php8.1-curl yet... would I run into 'issues' if I use php8.0-curl? I'm assuming so but I'm not sure what else to do
 
@Tiffany there would be problems.....in particular php should refuse to load that extension.
 
joy
 
it's slightly surprising that the curl extension isn't available - it's part of php core, and distributors who split it to be external, usually make it available the same time.
i.e. maybe double-check you didn't miss it, or maybe it might have been renamed?
 
apt search php8.1-curl
Sorting... Done
Full Text Search... Done
apt search php8.0-curl
Sorting... Done
Full Text Search... Done
php8.0-curl/impish-security,impish-updates 8.0.8-1ubuntu0.1 amd64
  CURL module for PHP
appears it's my end, coworker found it
 
"apt search curl" - would be more likely to show a name change. But possibly 'apt-get dist-upgrade' ?
/ftr, I am not a linux person.
 
JRL
6:54 PM
well that's interesting
 
I may be missing a ppa
 
JRL
reddit is giving a 403 on all requests right now for me
 
@JRL seems fine, if a little slow.
 
JRL
oh hmm
if i log out it doesn't give 403
and if i log into a different account it doesn't either
did reddit ban my account? lol
 
they were afraid of the Math
 
JRL
6:57 PM
oh hmm
if i open it in firefox it gives a 403
regardless
even if i use a private browsing window
 
I may have followed an outdated tutorial for adding the ppa cause a coworker who sees the curl extension has the ppa set up differently and appears under apt policy, mine doesn't have the ppa
 
7:15 PM
o/
morning room
 
8:02 PM
@JRL they have/had network wide issues with their IP range blocking
 
JRL
yeah it resolved after some time
 
8:41 PM
Hmm. Anyone know why sometimes (often?) we have func at the top of the stack which has no function name but does have a scope? This is at the point a VM interrupt occurs. The line number points at the class start or ending }.
Maybe scope field isn't always updated, but is only valid if func is there?
 
9:29 PM
@LeviMorrison what do you mean with top of stack? current_execute_data or like the current EX(call)?
 
9:41 PM
Can someone explain to my limited brain why this function (pipe()) seems to be so slow? According to Xdebug's profiler/kcachegrind this is the most expensive function in terms of "self" in my whole application, but it is barely doing anything itself. 3v4l.org/Bg2F1
Or is it really just an artifact of being called many times?
 
JRL
in kcachegrind wouldn't essentially the whole application be within pipe()?
that is, wouldn't it at minimum be the sum of the other function calls?
 
@JRL he's talking about Self, i.e. the runtime cost minus the calees
 
JRL
oh hmmm
 
Well, my app isn't that code specifically. It's a larger lib, which uses pipe(). I just put that in here to show what the function is doing. And yeah, it's the Self time that is high.
It is called more than any other specific function in here, so that is a factor, but I wouldn't expect it to add up THAT much.
There are other things called around the same amount that are nowhere near as self-expensive.
 
JRL
it there something about this syntax in a foreach that is being optimized incorrectly perhaps?
 
9:46 PM
you have to consider that with xdebug profiling function calls are particularly expensive
 
@JRL That's what I was hoping someone else would know. ;-)
 
@bwoebi I haven't managed to get Blackfire to work in these containers, so xdebug's all I got. :-) I do have the debugger turned off in this version.
 
@Crell I recommend using a sampling profiler to measure the true overhead
i.e. xhprof or such
 
Is xhprof even still maintained?
 
9:49 PM
iirc tideways maintains a fork
 
If I could figure out how to get Blackfire to play nicely inside a container, I'd use that.
 
cmb
@Crell pecl.php.net/package/xhprof is maintained again (never tried it, though)
 
Hm.
 
@Linus hey Linus. been a while. I hope your part of the universe is not in complete unhinged craziness these past years
 
10:19 PM
I think it's against the law for a Docker-based tutorial to actually describe all of the various assumptions it makes.
 
JRL
most docker tutorials i've seen follow a pretty consistent formula:

"Step 1: Install Docker
Step 2: The rest"
 
This is more "here's the files I used to get X, I won't actually tell you what the 50 different properties do, or mention that they rely on paths that I happen to have on my system/project that are not relevant to you."
Like: grandrr.medium.com/… - WTF is "fridge"?
Screw it, this is further down the rabbit hole than I want to go today.
So is xdebug's profiler not useful then?
 
@Crell not actively using it but once beberlei and perhaps others at Tideways did a fork and maintain(ed) it: github.com/tideways/php-xhprof-extension - this is perhaps related (?!) to what @cmb wrote, have to take a look.
 
Yeah, that's what @bwoebi mentioned. Unless they have way easier setup instructions, though...
 
once the setup is done, you're normally fine with good software.... ^^
 
10:30 PM
There's a lot hiding in that first clause... :-)
 
the more correct wording is "(to) set-up" IIRC
but the noun is "setup"
so yeah, this is similar to bootstrapping. how many levels?
 
10:45 PM
@Crell Their company name apparently.
 
Ah, of course. Because why would you even think of mentioning that in your tutorial?
 
@Crell It's useful, but adds a fair bit of overhead to your code, so you wouldn't want to even consider running it in production.
 
indeed, why. to them it's obvious....
@Crell But that /var/foo is slightly standard as the name of the thing you're deploying.
 
@Trowski Sure, but I'm not in production at the moment. I'm just trying to identify hotspots locally in a library.
 
It can be alright for that then, but I have noted that opcode heavy code (i.e., code that is purely PHP, doesn't call out to any extension, syscalls, etc.) are a bit unfairly represented in the profile because of the additional overhead xdebug adds to executing PHP code.
 
10:49 PM
Yeah, this is very PHP heavy code. I don't think it does any IO at all.
So... I guess the fact that my results are nonsensical means I shouldn't bother with xdebug for profiling. :-( (Especially since it is a very function-call-heavy design.)
 
But is there a xhprof viewer that doesn't suck?
 
/me wishes he could coax Blackfire into behaving itself.
 
@Crell Blackfire worked inside Docker for me with no issues. They even have documentation on it. blackfire.io/docs/up-and-running/docker#documentation
Although I used it with Lando, not Docker directly.
 
I got part way through that a few months back; I don't recall what was breaking.
Ah, possibly because the docs all assumed a web request? Hm.
 
blackfire.io/docs/php/integrations/php-docker Actually probably the better page
@Crell Blackfire also works for cli
 
10:55 PM
@IluTov Can you start and stop profiling programmatically, or does it have to run for the entire script?
 
I know it does in concept. I've used it before, but it's been a while.
 
@Trowski I think it does have to run for the entire script. E.g. I don't think you're able to use it with something like amp/phppm/roadrunner/etc
We were actually having performance issues in one of our applications using roadrunner just today and ended up using xhprof, but the viewers are just terrible.
 
11:09 PM
Hrm. Well, OK, I can get blackfire to run IFF I set the client id/token manually inside a running container. But not if I try to set them via env vars.
That's... what?
hm, and blackfire is also showing pipe() to be surprisingly expensive.
 
11:27 PM
@LeviMorrison your PR about atomics is w.r.t to these kind of use cases github.com/beberlei/interrupt-sampler-poc i assume?
y'all should buy my product istead of tinkering with other profilers ;-)
 
cmb
:D
 
@beberlei Can Tideways be used for long-standing processes? E.g. Roadrunner?
 
@IluTov yes, though it needs a bit of manual code, we have a middleware for laravel octane that sits on top of roadrunner for example: github.com/tideways/laravel-octane-middleware/blob/master/src/…
are you using a framework on top of roadrunner or how are you handling the request/response cycle there?
 
@beberlei Cool, I'll mention it then. Unfortunately my company tends to be a bit greedy when it comes to this kind of stuff.
 
at 89€ / month i assume starting to think about setting up an xhprof viewer is already more expensive time wise ^^
but yeah i know the feeling
i will tinker with a direct roadrunner integration the next days and make a setup guide
 
11:33 PM
@beberlei Yeah it's custom but we have request/response abstractions
 
so do you have a psr 7 middleware layer there?
 
@beberlei Yes roadrunner requires psr-7, we actually use symfony's abstractions but we convert them back and forth.
@beberlei Yeah no question, I'm not saying it makes sense :D
I think the main concern is the monthly fee, a one time payment probably wouldn't be as much of a problem. What's worse is that we already have a blackfire license, we just can't use it for this website where it actually matters.
 
hm are you sure? if you control the probe manually it should be possible even with BF (coning myself here ;)
 
Hm, it's been a while since I've used it, maybe it was added in 2.x?
But yeah, that looks exactly like what we need -.-
blog.blackfire.io/profiling-react-php-requests.html Actually no, this post is from 2015, which makes it even worse.
Anyway, @beberlei thanks for letting me know. And I'll try to think of an excuse to use Tideways in the future :P
 

« first day (4108 days earlier)      last day (840 days later) »