« first day (4260 days earlier)      last day (913 days later) » 

02:20
Hello
'ello. For the record there are normally more people talking during the UK day, and they are normally more sober. But feel free to ask questions.
2
 
6 hours later…
08:30
@Asgrim you use zend_exexcute_ex to hook into functions and overwrite the internal handlers for internal fucntions. This is both possible without zend_extension in PHP 7. At least for tideways thats how we do it as a regular extension.
08:50
morns
09:12
Slightly off-topic, but does anyone use Gitlab CI to deploy to various different test environments?
 
2 hours later…
11:15
@kelunik I use it to deploy to run testing / staging / prod
@MarkR Do you have manual one job for each environment in each pipeline, or how is it integrated into build pipelines?
@kelunik Ours is based entirely on branch, once the pipeline runs for a particular branch it deploys based on a branch name (protected only). No manual stages in it
But I may have missunderstood the question
So you push to a staging branch and it auto-deploys the build to staging then?
Yes
 
1 hour later…
12:25
@cmb if you can check PR #8783, even if it doesn't allow creation of empry archive, if fixes the cache issue (and for empty archive, I really think this should be discussed on libzip side)
Good Morning All!
They're filming some Doctor Who about ten minutes away from me: bristol247.com/news-and-features/news/…
12:59
:O
Oooo Tenant is back, cool
cmb
cmb
@RemiCollet just approved the PR :)
@Danack As a fellow nerd I'm ashamed to say I have never watched Doctor Who.
I've not watched it much, but the books from the 80s were cool - ebay.co.uk/itm/…
13:18
(related to new libzip 1.9.0)
Wes
Wes
13:34
uh, david tennant returns as the doctor? also neil patrick harris as the doctor would be great i think, right?
nph is a baddy I assume, given his outfit.
Wes
Wes
folks any talks and progress on the matter of unifying the class symbol tables, making property accessors get/set?
13:57
I think Levi has been talking about it for years, but nothing's actually happened. It would be a 9.0 change even if it happened as that's a BC break.
cmb
cmb
14:12
I think that is not likely to happen, especially since we now have a first-class callable syntax.
14:32
@beberlei Hmmmm I'm fairly sure the way I did it it needed to be a zend_extension, but perhaps I'm wrong. I'll check into it, cheers!
14:53
@MarkR Ah, we have a dozen test environments which can be deployed with feature branches, so not sure how useful a duplicate branch and force pushes would be there.
15:20
So NPH is apparently the Toymaker, and managed to get a bit of dancing worked into the script: twitter.com/chaosplanet98/status/1537082337225330688
15:38
While authorizing a new OAuth app for my GitHub account I noticed that the 'php' organization is one of the few does not have the OAuth "allowed application list" feature enabled that requires explicit approval by an organization owner before an OAuth app is allowed to access private resources within the organization (that includes write access to the repositories). While I trust the OAuth applications I approve for my repositories, I don't necessarily trust them with the PHP organization's resources.
I can also suggest that on a list, if you consider this more appropriate. Internals would likely fit?
cmb
cmb
@TimWolla Yeah, a mail to internals seems to be in order. :)
@Danack that should be fun to watch
 
1 hour later…
17:02
@LeviMorrison since you had time to crack a joke yesterday (cough), what do you think about github.com/php/php-src/issues/8581
17:17
Would a PHP based websocket be suitable for operational transformation? I've made an attempt at it in the past (some years ago), but I noticed a LOT of lag with just 2 users. My guess is that I didn't have everything running async, but not sure about that. So just wondering if PHP would actually be suitable for the job before I make another attempt
You can build websocket based tools with React PHP or AmPHP. I've not used them myself but the stats I've seen show them being pretty damned fast.
17:56
@Crell Ye I know how to build a websocket with PHP. I was talking about performance. Assuming an average of 300 keystrokes per minute, equals 5 strokes per second. Considering small teams of up to 10 members per project. Peak stress levels would be around 50 operations per second for a single team. It wouldn't be too unrealistic to have 30 teams online at the same time on busy days, could be more. That's already 1500 operations per second
You're sending every character that's typed? That seems like it would be problematic no matter what the language is you're using. Certainly you'll run into scaling issues fairly quickly even in Go or Rust.
Yes. I've already done it with OT.js running on NodeJS :) Works perfectly fine. I just haven't been able to replicate it with PHP yet
I mean, technically you don't send every keystroke unless the document version is synced. As long as you're not synced, you just collect all operations client side, wait for the sync and then just transmit the entire package
Did there used to be a tool for managing package.xml in PECL packages?
cmb
cmb
18:27
@ramsey I'm only aware of pecl package-validate, and do the rest manually.
 
3 hours later…
21:02
Wow, OK, someone explain this to me. I'm benchmarking the performance of serialize/unserialize vs var_export/require. And... var_export/require is losing, significantly, on both export and read. That is not what I expected, at all.
testing on cli without opcache actually running?
CLI. Opcache... I guess not running because it's off by default.
Hm, wait, let me make sure xdebug is off...
Huh, no, xdebug off, same results.
I probably do want opcache running....
Yeah, even with opcache, require is losing to unserialize() by like 5 times.
21:20
Does that feel wrong to anyone else?
 
1 hour later…
22:26
Do you test it on CLI?
What would make var_export/require faster is opcache.
Yes, CLI. I'm trying to get the opcache to enable in CLI mode, but so far I have been unsuccessful. Which confuses me.
And in the NTS setup basically opcache SHM are shared among processes having the same parent on fork(2).
Right, that's what I was counting on.
I'm trying to figure out a better way to test this, but right now it's mainly a phpbench script, which is all CLI.
why not startup php-cgi for this and run rquests against it?
Oh, I mistaked
No, I wasn't wrong.
Another instance of the CLI process doesn't share SHM with other CLI processes. So maybe phpbench isn't an appropriate way of measuring it?
I assumed you were trying to confirm that var_export/require is faster because opcache caches immutable data like array literals and reads them directly from SHM, but if you weren't, then opcache is irrelevant.
22:46
I expected var_export/require to be faster and more memory efficient, because 1) Opcache of the code itself and 2) Recreating the objects is just one method call per object, rather than whatever parsing unserialize() has to do internally.
But... so far I'm seeing the exact opposite.
Enabling opcache in a CLI setup increases the overhead of storing compiled results in SHM on require, which may slow it down if used as a simple cache of immutable data with little or no code optimization benefit.
I haven't been able to get the opcache to turn on at all for the CLI, which I don't understand. It should be just an ini directive, but phpbench keeps saying it's not on.
Hmm?
That's what I said. :-)
Without opcache, it is possible that serialize()/unserialize() would work faster since the structure is more restricted than the PHP code itself, but the exact details should be profiled.
22:59
I'm not setup to profile php itself.
Given the favorable situation for var_export/require, perhaps a benchmark sending HTTP requests with commands like apache ab or so to mod_php or fpm setup with opcache enabled might be better.
Yeah, if I can figure out how to make Apache work through Docker... :-)
I personally think it's easier than the nginx+fpm setup :)
I just hate Docker.
Docker: "What have I done to you?"
23:09
Wasted hours of my life!
Docker: "Sorry about that! And keep up the good work!"
I don't understand Docker
Me either
Docker-compose
makes it easier
you just declare some config file of the resources u want
Like right now... I am trying to start a single bloody container, USING THE DOCUMENTATION FROM THE OFFICIAL PHP IMAGE, and I can't, because there's already an old copy defined. But not running. How do I get rid of it, because I never want it lying around? It's not delete, or destroy, or kill, or stop. So how the bloody hell do I GET RID OF THIS DAMNED CONTAINER!!!!
I am using docker compose. That's.. not starting the web server for some reason.
23:17
lol
I know what you mean
Seriously, every time I try to do anything with Docker, it's this kind of shit.
docker-compose ps
i believe
gives u a list of running containers
it usually has some kinda id 234323432
docker kill #containerId
That only works for the container started through docker-compose.
something like docker-compose build
That approach didn't connect the server ports or something, so I tried the direct docker command from hub.docker.com/_/php . Guess what, no idea how to clean up after itself.
23:20
rebuilds your containers
... Yes, which I have done. There's some other setup missing in there, which is not listed on the damned page.
one thing that messed me up when i was staring is you have to forward your ports to outside the container
The blocking container was not started with compose, so I can't remove it with compose.
I just want to kill this container...
@Crell docker ps
then probably docker kill $CONTAINER_ID with the info from the first command.
... Why is there a container here from a test setup I was using 2 months ago, that apparently restarted itself the last time I rebooted?
And of course, you can start a container by giving it a nice name, but have to go look in ps to get a random ID in order to stop it.
I repeat: I hate Docker.
23:31
docker has a habit of switching container images to autostart/autorestart even if you didn't say that.
POS...
So now I have ports mapped in docker-compose.yml, and ... my browser is giving me an ssl error.
Ah, because the browser snuck an s into the URL, even though I specifically did not put an s in there.
/me gives up on technology to go become a blacksmith.
Nope, that was a DIFFERENT container lying around. New port. And it's still not connecting.
you should probably not have containers from multiple projects running at once, unless you're doing that deliberately. I'd make sure all containers are dead before starting something running.
They're from ddev, for TYPO3 itself. Still, moved it to a new port and it's just not mapping.
Fuck it, tomorrow.

« first day (4260 days earlier)      last day (913 days later) »