« first day (4149 days earlier)      last day (799 days later) » 

12:03 AM
Any idea what ini config is used during that step? It's not the default file, as pcre.jit=0 was already defined there.
Seems there isn't one being loaded. I can "fix" it by setting it with ini_set in phar.php, but that's a bit hacky.
 
12:19 AM
right: swoole
left: psl ( revolt + uv driver )
not bad so far :D
 
Seems about right :D
Swoole's primary advantages are in request parsing. If we had an extension doing that, Amp could keep up.
 
code for reference
this is just TCP
@Trowski didn't compare with swoole http server for that reason :)
 
try it :-)
 
@SaifEddinGmati Right, the HTTP numbers will not compare too favorably. String parsing in PHP is slow as hell.
 
@SaifEddinGmati swoole is left, psl is right 🤦‍♂️
 
12:26 AM
Didn't notice you mixed them up, I looked at the script name.
 
still need to optimize PSL TCP stuff more, just fixed a memory leak in the socket read/write queues :D
 
$server->incoming() returns an iterator?
 
public function incoming(): Generator
{
try {
while (true) {
// set null as key to prevent PHP from used incremental integer keys.
yield null => $this->nextConnection();
}
} catch (Network\Exception\AlreadyStoppedException) {
return;
}
}
a generator that yields connections until $server->close() is called.
Iter\apply($x, $y) is foreach($x as $v) { $y($v); }
 
Nice. A similar thing can be done with Pipelines in Amp.
 
inspired by rust TCP Listener :D docs.rs/async-tcp/latest/async_tcp/… ( but finite )
what's up with MacOS recently github.com/azjezz/psl/runs/…
 
12:41 AM
Comparing floats is always trouble, though I would expect that to work.
Does it only sometimes fail?
 
it used to work, but started failing earlier today, only on MacOS ( another instance but a different Psl\Math function with PHP 7.4: github.com/azjezz/psl/pull/337#issuecomment-1048681028 )
 
 
2 hours later…
2:35 AM
Ugh, forgot about the top-posting on ML. Shame on me :-D
@Trowski This sounds somewhat like a W^X security model like on the M1 getting into your way? But I believe that one is generated with -n or such
 
@bwoebi Yep, got a new M1 mac.
Is there some way to control pcre.jit during that step?
 
 
4 hours later…
6:49 AM
I have recently moved project from PHP 5.3 to PHP7. Is is really necessary to change the way constructor called in older style to newer way?
 
 
2 hours later…
8:33 AM
@Danack @JoeWatkins Can we have an official php-memcached release for PHP8, pretty please?
https://github.com/php-memcached-dev/php-memcached/issues/495#issuecomment-996006997
 
8:50 AM
OMG what a news this morning
I mean on the east on Ukraine
this is very sad
 
I have this latent patch in my sources:
https://gist.github.com/m6w6/8decef356231e2cc0ffdedcfb9dcfb9b
IIRC it's already fixed upstream
 
@brzuchal tension will rise if any other country involve in it.. Markets are already falling globally.
 
9:18 AM
yeah, but someone has to
no other country should let Russia just invade Ukraine
 
IIRC pronskiy at jetbrains and the phpfoundation is a Ukrainian
I hope he and others are safe...
 
9:34 AM
@brzuchal agree..
 
@Exception Yes, the PHP4 style of constructor is removed at PHP8
 
@sj-i what problems do you think will arise if we keep then even in PHP7?
I don't see any error so far
 
@Exception If you keep in PHP7, there isn't the problem.
Then the problem would be the fact that PHP7 will be EOL in this year...
 
10:29 AM
@m6w6 it's worth noting that even if that extension gets a release, it's based on a library last updated in 2014; you might be better off migrating to pecl.php.net/package/memcache
see also this mailing list thread: externals.io/message/102375
 
IMSoP You gave me a great idea. I'm going to change the warning message to include the first 6 chapters of war and peace, as well as the AACS encryption key, because we're apparently idiots spelling things out in a way they've never needed to be before :-) cmon man, the text to include is literally in the post you're replying to
 
10:46 AM
it's the "maybe" that I'm more concerned about
what will change between now and 8.2 to turn that maybe into a will or won't?
I think it's an important decisions, that could affect how people vote, and I don't see any advantage in not making a decision as part of the RFC
and yes, I think RFCs should spell out exactly what they're proposing so people don't feel like the implementation doesn't match what they voted for
 
I changed it to will, but the implication we can't be trusted (I, and whoever approves it / merges it) to come up with an entirely obvious 5 word change is bonkers, and is bikeshedding
 
indeed, in this case there's not a lot to decide, but arguably "will be changed in a future version" is different from "will be changed in 9.0", for instance
I feel like you could have just added it in the time it took you to write me a sarcastic note, though
 
The RFC says: "alter the existing warning message to indicate the warning will become an error in 9.0"
 
fine, then
not really sure why it needed to be such a big deal
 
I was expressing my dissatisfaction with your "am I writing a blank cheque for anyone to change the message to anything?" comment :-)
 
11:00 AM
OK, that's fair, I apologise for that being a bit over the top
I'm just aware that we have had RFCs in the past pass voting and then run into edge cases that should have been specified during refinement
I don't think this is going to be one of those, but being specific as a principle guards against it
 
In the absence of a pressing need I thought it best to leave a little wiggle room, it may be that in 8.4 we changed it to "the next version of PHP" or something like that and didn't want to tie us into formality of changing language that had been explicitly approved.
 
11:20 AM
I guess that's fair enough
 
@m6w6 sorry - I was going to look at it.....but my chronic pain problem got suddenly worse again, and has been since then. And now I'm a little distracted by 'events'.
So PHP Russia boycott seems appropriate.
 
Pretty shit day for the world
 
For those that don't know, Pronskiy lives in Kharkiv in eastern Ukraine.....so maybe don't give PHPstorm twitter any crap if they don't respond that quickly to questions for the foreseeable.
8
 
News is reporting air assault hitting Kyiv, and NATO activating its contingency plans
 
11:47 AM
@Danack That's super scary :(
 
@Exception Yes it is, except if you want to make it more annoying to migrate to PHP 8 (which you should as PHP 7.4 is in security release mode)
 
12:03 PM
did we actually get any advantage in the engine or language from retiring old-style constructors, or is it just enforced coding style?
 
cmb
@IMSoP that was only for developer's sanity (to avoid confusion with inadvertent constructors); see wiki.php.net/rfc/remove_php4_constructors
 
ah, I'd forgotten it was its own RFC
I guess it does make things clearer
 
12:51 PM
Cyberpunk is now 50% off I see. Is it worth buying even at that?
 
Wes
@MarkR i heard patch 1.5 has improved the game significantly
 
I shall give it a go then
 
1:13 PM
Hey ho o/
 
Wes
1:24 PM
Let's go o/
 
Blitzkrieg bop
 
1:50 PM
sounds like the end of a Mastodon song
 
that hair tho
 
@ln-s youtube.com/watch?v=8CmPXRfRXGY is what I was thinking of
(the end in paritcular)
 
 
2 hours later…
Wes
3:29 PM
why === has precedence over ?? though?
$a ?? NULL === NULL
 
cmb
@Wes because it has been decided this way ;)
 
Wes
it's my fault for trying to omit parentheses
 
Apr 8, 2020 at 17:20, by Danack
@DaveRandom how would "require parentheses around everything below + - . when chaining operators" sound?
@Wes yeah....unless it's super obvious, parenthesesissisis all the way.
 
3:49 PM
.
as long as people don't start going overboard and add parentheses around [] and ->, like if ( (($foo->bar) === ($baz['quux'])) && (isset($something['else'])) )
 
cmb
if ( ((($a))) === ((($b))) )
 
that if statement is looking at me funny
 
yeah, the ?? precedence is a funny thing… I get it wrong all the time :-/
 
Imagine being a family or a child having to go through something like this youtube.com/watch?v=jireAofKUZU
 
IGP
4:25 PM
Is 'data-enabled challenge' jargon for analytics?
 
@IGP I have never heard that phrase before, and given that it has a single result on google, I'd suspect it's a way of tracking individual people who search for it.
 
IGP
4:45 PM
Hmm.. Analytics it is.
 
5:30 PM
Any opinion about github.com/php/php-src/pull/8151 (New function memory_reset_peak_usage()) ?
 
5:48 PM
@Danack I didn't know that. I should send him a "thinking of you" message.
 
 
1 hour later…
7:10 PM
@Danack "remove redundant parens" is the single most useless static analysis inspection, yet every tool under the sun provides it out of the box. weird.
sod off with your bodmas
 
7:22 PM
@PatrickAllaert +1
 
@kelunik thx
 
 
2 hours later…
Wes
9:08 PM
is there a way to pass everything through index.php in php's embedded web server?
like in apache's RewriteRule $ index.php$0 [L]
 
9:21 PM
> If a PHP file is given on the command line when the web server is started it is treated as a "router" script.
in other words, php -S /path/to/bootstrap.php should work I think
@Wes
also ftr, and I realise this is very much not the point, but 99.9% of the time use [END] instead of [L] for apache mod_rewrite :-P
 
Wes
i just copypasta'd it from somewhere. i thought [L] meant LEGENDARY
thats my best guess
how the hell is that apache can't afford to use javascript xml or any other decent programming language/markup syntax for its configuration
 
that is my single biggest gripe with it, that bloody config file
it really does not need to be like that, it would be trivially possible to add another format for the same data without removing support for the old one
 
Wes
of course
have you ever heard of autohotkey?
if yes, you probably know where i am going with it
 
and just ftr, L means "last", meaning "last instruction processed during the current iteration", whereas END means "stop rewriting shit and do what I told you already"
essentially it's like continue vs break
 
Wes
i see
autohotkey is a tool that allows you to define keyboard macros
 
9:32 PM
yeh it's pretty cool, it's technically turing complete...
 
Wes
you use a custom language for that
which is nothing like the other programming languages
 
it's horrible to work with but easier than cmd...
@Wes I thought you could use lua or something?
 
Wes
you can?
 
I remember it had a very BASIC-esque internal language
it's years since I messed with it
@Wes 99% but I may have misremembered
 
Wes
anyway my point is, by the time i learn that language, i've learned all the windows api, the python bindings on top of that, and calculated the age of the universe with an abacus
what's wrong with using existing languages
 
9:35 PM
oh also if all you want are keyboard macros I have some much thinner tools for that, depends what you are actually trying to do though
 
Wes
eh idk, i'd rather do it with an actual programming language, if i ever need it again
 
@Wes typedef existing_language_t NOTINHOUSE LPNOTINHOUSE*;
 
Wes
surely doing these things should be trivial these days
or not?
 
if you are asking "what's wrong with X" and MS are involved, the answer is always "X was not built by MS" :-P
@Wes what, configuring a web server? it is indeed trivial, just apt install nginx and you're done in like 3 mins :-P
 
Wes
no i mean sending keystrokes like a macro in windows
 
9:39 PM
I don't server webs from windoze unless I am forced to in a professional capacity
@Wes well, it is and it isn't. there are security issues associated with it so the OS deliberately prevents it in a lot of scenarios
if you are literally just emulating keystroke dispatches I'm pretty sure Nir Sofer has a simple CLI exe for that though nirsoft.net
 
Wes
damn i remember that site
[L]egendary
 
.net TLD, that really dates it :-P
 
Wes
from that site i've downloaded one of the first useful things as teenager (unless you consider porn useful)
that's like 15 years ago
and the site didn't change at all all this time lol
 
nircmd is still one of my must-have basic tools included in everything I ever do
he has some really neat "dig around in the inner workings of windows" tools as well, a lot of shit that is worthy of mark russinovic
there's a handle explorer tool in particular that's really cool, often you can printf("%i", (int)handle) and find the exact value in the tool against the relevant handle, it's black magic of epic proportions
 
10:39 PM
checking whether to enable XML support... yes
checking whether to build with expat support... no
configure: error: XML extension requires LIBXML extension, add --with-libxml
Yeah... --with-xml is not an option, and I already have --enable-xml...
CFLAGS='-g3 -Os -Wall -Wextra -Werror=enum-compare -Wno-unused-parameter -Wno-unused-function -Wno-sign-compare' \
'/usr/local/src/php/8.1/configure' \
'--enable-option-checking=fatal' \
'--prefix=/opt/php/8.1' \
'--with-config-file-scan-dir=/opt/php/8.1/etc/conf.d' \
'--with-layout=GNU' \
'--with-pear' \
'--with-pic' \
'--disable-all' \
'--disable-debug' \
'--disable-zts' \
'--enable-embed=static' \
'--enable-fpm' \
'--enable-opcache' \
'--enable-xml' \
'YACC=/usr/local/opt/bison/bin/bison' \
'PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig' \
Anyone know what I'm missing?
 
@LeviMorrison the letters "lib" 😜 it's asking for --with-libxml not --with-xml
 
Oct 19, 2021 at 23:55, by Danack
Nov 23 '20 at 20:44, by Danack
It's a trick. They're trying to get you to look at m4 files. Get an axe.
 
@Wes I'm pretty sure there used to be an Apache module that pre-processed the entire config file as a Perl script
 
@IMSoP Doh. Thanks.
 
my good deed for the day ;)
 
11:02 PM
@IMSoP Are you employed doing php-src or extension work yet? Or put in a request for the PHP Foundation?
 
11:36 PM
I poked around FastRoute but didn't see anything; is there way generate the "templated" version of the URL? If I have a route like /user/{id:\d+} and look up GET /user/1234, can I some how get that route thing that matched?
 
@m6w6 I dropped in the upstream file and that seems to have fixed it as well. Looks like they fixed it in a different way, but it works.
Similar I guess. The call to mprotect is now only made on FreeBSD.
 

« first day (4149 days earlier)      last day (799 days later) »