« first day (3072 days earlier)      last day (2100 days later) » 

00:47
@LeviMorrison @NikiC Random data.. I think I'll leave this alone for now and find sanity again. ^^
 
1 hour later…
01:56
For some reason shell_exec isn't working on my new server and I can't figure out why
I'm just trying to do echo shell_exec('ls'); and nothing :/
It's not in disabled_functions, and PHP isn't in safe mode.
Anyone have any tips on what to check?
I've even tried shell_exec('ls 2>&1'); as I saw in one answer, but still it's returning NULL
Wes
Wes
check exec() also... i always confuse the two
That wasn't working either :/
 
1 hour later…
03:21
Night all
03:40
\o
Did we make some change for mbstring?
checking whether to enable multibyte string support... yes
checking whether to enable multibyte regex support (requires oniguruma)... yes
checking for oniguruma... no
configure: error: Package requirements (oniguruma) were not met
This is after I rebased on to PHP-7.4, so maybe a change there?
@rtheunissen I've been catching up on immutable collections. I might give a whirl at plumbing up the C++ immer library to PHP.
04:22
Hmm... seems my mb_ereg function is missing?
Doh, I keep forgetting we have that document.
Thanks.
05:16
o/
05:26
@LeviMorrison I think using zend gc would work well wrapping the mutables because clone wouldnt always copy.
 
1 hour later…
06:44
Morngins
Yo Yoe
yohaa
two and a half hours sleep last night, every muscle is aching, feel like utter crap ... not going to do anything today, if I can help it ...
07:00
It comes with the age joe :P
probably true ... I'm not loving it ... I can't recall having painful eyelids before ...
lol
Me neither :D
07:32
hello
anyone here knows about wkhtmltopdf?
!!docs wkhtmltox
[ wkhtmltox ] wkhtmltox book
are those two the same?
whktmltox and wkhtmltopdf?
One is a binary and the other is a wrapper (I assume)
my problem is I cannot write or generate a file in my directory folder
but there is no error showing
07:36
How do you know there is an error?
Are you sure you are not just confusing paths
I checked it many times Im sure the path is corret
if its not correct it will show an error incorrect path or somethign like that
lol
07:49
@JoeWatkins must have been working with @Jimbo
08:00
two-bit cheap or trivial of its kind : petty, small-time
08:13
mga pashnea
@rtheunissen Is sortedset something btree based?
09:03
@JoeWatkins Just to confirm: use function count; count(); instead of \count() generates the same, shorter, list of opcodes. Right?
@edorian yes
Cool. Quite sure it was from what I checked last, but thought I ask anyways :) Cheers
Hi
09:26
goat moanings
hallows
I kind of love that so many people have so many opinions on arrow functions, but I also have a sore face from all of the facepalms. <3 Open Source
I am choosing to ignore the entire discussion on any medium, but here to prevent getting even more stupid :P
@bwoebi This one should really be simpler than doing it in the parser directly. And bison already does the right thing. I wonder why there's no way to tell it that.
Well apparently there is a way, in very new versions of bison you can add per-rule %expect to specify that this specific shift-reduce conflict is expected and resolved correctly
I wouldn't want to keep this kind of stuff without that feature, especially as doing the same for arrays brings conflicts up to 10 or so
09:59
@PeeHaa So far I've made stupid "I took an arrow function to the knee" jokes the couple times I had someone with a really strong opinion. \Dunno, \PHP \syntax \is \an \art \of \the \possible. :)
mrnn
@edorian :P
@Paul yo paul o/
morns
OSU o/
10:30
posted on March 15, 2019

There are just over two weeks left for you to enter “Help You Help Me: The Sweepstakes”. If you want me to draw you, get to it! In fact, I’m feeling a bit generous/devious today. In case you don’t want to leave the drawing up to chance, I will add a bonus contest this week: All of the text in the first panel comes from direct quotes of Netflix previews. If you can name the four Netflix.

11:12
\o
I fell asleep at my desk again ... did I miss anything ?
11:37
@MadaraUchiha You around?
@mega6382 As it happens
I wanted to ask, what is the difference between Record<string, T> and {[key: string]: T}
curl_setopt crashes PHP when passing object instead of array as third argument. – #77746
@MadaraUchiha ^^
@mega6382 Record provides a unified interface between [key: string] and [key in something]
The two you posted are equivalent, but you can't do {[key: 'foo' | 'bar']: T} (you need {[key in 'foo' | 'bar']: T}, and Record works with both.
11:46
hmm, interesting
Huh - apparently I live on the street where the font Gill Sans was first used - drojkent.wordpress.com/2018/06/28/…
11:57
@MadaraUchiha did I miss a proposal?
@ircmaxell No, TypeScript.
@Jeeves not like that it doesn't/can't ...
I bet one pound that the person is only testing against php 5.x.....and has assumed it crashes on 7.
@Danack can you make a Euro instead? I mean, a pound will barely be worth anything in a few weeks
2
12:13
lol
@MadaraUchiha why are there even two different syntaxes for that purpose? I.e. any reason why they chose to have in for string unions and disallow it for the type of a key?
12:38
@bwoebi I vaguely recall the discussion on that, something about a syntax collision
But I don't remember the exact reasoning.
12:55
Guys, do you know any in-depth resources on JIT behaviors and de factos?
@revo ...wat?
ahh, the good old "run ./configure --with-a-bunch-of-stuff, wait for it to fail because of a missing dependency, install said dependency, and retry" loop
@NikiC I wanna know about technical aspects of JIT compilers i.e. their implementation. I recently came to this and got a general grasp.
13:13
@revo Any particular JIT compiler?
I was pointed to v8.dev/docs/turbofan this morning as something to read through
13:31
Hi.
Add migration script in https://wiki.php.net/rfc/deprecate_curly_braces_array_access
@NikiC Nothing particular. That seems solid. Thank you.
@PeeHaa @Wes From back in the day. I actually opened for AK1200 one time. Drum and Bass is an interesting genre- people either love it or hate it. youtube.com/watch?v=6SrehZGnh-4
^No Rebecca btw.
@ircmaxell I never understood how we (as in the tech community) didn't manage to change this pipeline so that it can report on all errors, at least on all of one stage. (Not that I put a lot of effort into finding out..)
how do I install onigurama ?
ahhh libonig-dev
sigh
How about leaving the argument list outside of the braces:
$foo = ($x) => {($y) => { $x * $y; }};
$bar = ($x){ ($y) { $x* $y; } };
... and skipping an new keyword
13:42
@edorian I can understand it sometimes, since one error may cause other errors, so bailing on the first is reliable
@m6w6 $x = "0"; echo ($x){$x*$x}; is valid syntax for now
returns 0
oh
wtf is it supposed to do?
ah well, you miss a semi-colon
@m6w6 and I think it will be common error. If we do not deprecate curly braces array access :D
:P
well, then $bar = ($x){ ($y) { $x* $y; } };
13:57
@NikiC I'm not sure what to call it. It's two red-black trees.
Outer tree which keeps track of min/max where each node is a subtree of size 2^n. Using n=10 for now but 9 or 8 are options too.
No temporary array in get_gc, per-subtree structural sharing, subtree nodes are contiguous zvals with p, l, r, flags squished into u2. References are 10 bits unsigned because we only need 1 flag (color).
14:46
Subtrees are partitioned when full, into two perfectly balanced all-black subtrees. So all subtrees are at least half full.
@Gordon Srs question, I need to transfer about 5k to my UK bank account from an EUR account... is now the best time, because the exchange rate will really plummet?
Brexit assholes
@Jimbo IDK. If you want to believe the doomsayers UK economy will tank hard. if you wanna know for sure, ask the Laravel folks. They know everything.
Not an expert on the subject, but if the pound will devaluate relatively to the euro, you should keep the euros. (they are worth 4k pounds today, and may be worth 6k pounds if it really goes down a lot)
So I got it the wrong way round... it's in my best interests for it to all fuck up then :D
14:56
@rtheunissen we're probably going to solve that pesky get_gc problem in php 8
it's quite annoying that you're forked to pack everything in u2 to be gc compatible in an efficient way...
@Jimbo I haven't been keeping up. Last time I checked it looked like an impending no deal YOLO Brexit. Still that?
15:19
what about magic var?
$x = {$_ * $_};
$x(10); //100
[1,2,3]{$_[0] + $_[1]} //3
$somevar = 10; $somevar{$_ * $_} //100
@NikiC the packing isn't entirely due to gc, more to avoid pointers.
Have a csv file I have been uploading everyday into a database for several years. Just stops working yesterday. Says it was successful but says 0 rows affected. Cannot figure it out.
15:36
Segmentation fault with curl – #77747
> How to reproduce (You will need composer) :
1- Fork the Symfony repository at
php-curl http2 support is pretty brittle
it was actually merged without a single test
and the smallest deviation from the provided examples typically result in segfaults :x
@pmmaga fixit :P
any examples of crashers?
Oh lol, missed context
I tried to look into a couple of issues but I also don't know a lot in that area :P But it's on my list
Ugh.. I lost my conversation with a guy that was trying to implement some stuff on top of it. I think he actually opened a couple bug reports after the original one. Have to look for it
15:52
@pmmaga I remember bugs.php.net/bug.php?id=77535
And looking at the code right now, it looks like there's a super obvious bug here
Yeah, that's one of them at least. Basically CURLOPT_HEADERFUNCTION arg can't be inline
ok, so maybe saying that they typically end up in segfaults was an exaggeration :P but there be dragons
@pmmaga Unfortunately my curl is not recent enough to test
It segfaults
ah yeah, up to a certain curl version there was also something fishy between curl and nghttp2, we mentioned it in github.com/php/php-src/pull/3744#issuecomment-455112867
16:09
@pmmaga Would be great if you can test github.com/php/php-src/commit/…
This is a blind fix
I will in a bit. Still finishing up some work related stuff
16:38
@NikiC were you a Github admin for the php organization?
@Kalle yes
I'm doing a POC on the brace construction syntax. At the moment I am getting a reduce conflict on... the closing curly brace. Definitely not what I expected, ha.
@NikiC Any way you can disable non project members approving PRs so I don't get emails from such? Like that guy that was randomly approving a brunch of random ones of old
@Kalle I don't think the option exists
At least I don't see it
@NikiC Meh =(
I'll ask some of the DevOps at work if such a thing exists, we run Enterprise but there is a lot of differences (like Draft PRs are not available on Enterprise for some reason)
16:45
!!dad
I keep pressing my F1 key repeatedly, I can't stop Don't worry, I'm trying to get help
@NikiC Yup, it seems to have fixed both 77535 and 77747
$ git diff
diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y
index af5ce87fa2..f56867add2 100644
--- a/Zend/zend_language_parser.y
+++ b/Zend/zend_language_parser.y
@@ -251,6 +251,7 @@ static YYSIZE_T zend_yytnamerr(char*, const char*);
 %type <ast> array_pair non_empty_array_pair_list array_pair_list possible_array_pair
 %type <ast> isset_variable type return_type type_expr
 %type <ast> identifier
+%type <ast> brace_construction_members brace_construction_member_initializer
@NikiC I mean, tell me what I've done wrong, because I don't get conflicts.
It's been a while since I did grammar things, but seems fine to me aside from the fact the actions don't do anything.
They share the same prefix, and there is a fixed lookahead (I don't know what it is, but it's fixed).
Oh, I guess the compiler does need to check that the derefencable makes sense for the op, maybe. I know we don't like pushing work to compiler if we can help it but it works.
Oh, maybe it's fine to just do name '{' brace_construction_members '}. I didn't get a conflict.
./configure fails to make – #77748
@pmmaga would you like to commit a test?
16:59
yup, will do
@LeviMorrison This is what I classify as "hack" ;)
I am confused. What do you mean?
You are pretending that you take an arbitrary dereferencable before the {
Turns out it isn't necessary; I'll email you the updated patch.
Which is okay, it's a small hack :)
17:05
posted on March 15, 2019 by CommitStrip

@LeviMorrison ooooh
this is a super lucky break
@LeviMorrison It turns out we don't actually support the CONSTANT{$x} syntax
Oh, nice.
My memory was correct that it wasn't difficult, lucky me :)
Let me see if I can get it to compile to an array, so it doesn't spew so many warnings.
Well, it compiled. It's not the semantics I want but hey!
class Point2d {
        public float $x;
        public float $y;
}

$origin = Point2d { 'x': 0, 'y': 0 };
var_dump($origin);
array(2) {
  ["x"]=>
  int(0)
  ["y"]=>
  int(0)
}
Hmm, is there a reliable way to create a cycle that isn't GC'd until gc_collect_cycles() is called? I can't seem to find anything in the test suite. Maybe references?
17:20
@Ocramius $obj = new stdClass; $obj->foo = $obj doesn't do it?
Oh, lemme check
yes there is for ($i = 0; $i < 100000; $i++) { $a = new stdClass; $b = new stdClass; $a->b = $b; $b->a = $a; }
we have this in tideways gc profiling testsuite, it works very reliably
hell yeah
thanks folks, you write the worst! :P
i like nikis even more ;)
i just had a full day of tests and experiments with various customer sites, no tideways, only monitoring tideways or 100% tracing tideways is apparently not measurable on real customer traffic w.r.t. cpu load or latency.
i am a bit confused by the result, but I take it :o
Well, that seems to break memory_get_usage() too
Fatal error: Uncaught TypeError: Argument 2 passed to Roave\NoLeaks\PHPUnit\MeasuredTestRunMemoryLeak::fromTestMemoryUsages() must be of the type array, null given in /home/ocramius/Documents/roave/phpunit-memory-leak-detector/src/MeasuredTestRunMemoryLeak.php:38
17:26
@Ocramius do you know about php.net/gc_status btw? thats my first few lines of code in php-src i contributed through dmitry ;)
now I know :P
it wasnt mentioned in 7.3 release notes
groan
pls tell me I didn't find another engine bug...
@Ocramius To be honest, I'm really disappointed in you Marco
I'm getting way too few bug reports from you.
Yeah, I'm trying hard here
I lost my edge
18:03
@Paul I don’t know if I’d call that victory. But their lack of support for a pile of repeatedly requested features makes that unsurprising.
Sorry to ask a regex question, but why does this not satisfy a pattern for a string that must contain upper case, lower case, numbers, min 8 characters, and no other character (such as _ or * etc)
^([A-Za-z0-9]{8,})$
@MyDaftQuestions It can contain any combination of upper/lower/digit characters.
So aaaaaaaa is valid
@MyDaftQuestions regex101.com/r/WIRzGj/1
II missed the dot
^.([A-Za-z0-9]{8,})$
OpenSSL and alert protocol version – #77749
actually, I think the site I used was not working...
https://regexr.com/

I put the same regex and it doesn't match
18:11
@MyDaftQuestions Well, now that is any character followed by 8 or more of any combination of upper/lower/digit
oh....
Right, I'm going to research this a little more then as I thought I was there
Thank you @DanLugg
@MyDaftQuestions You want to guarantee that the string contains at least 1 of each upper/lower/digit, correct?
oh scratch that, we didn't start 7.4 yet, my mistake ...
Yes
Oh I see what you mean. With . it means I can start with # which isn't what I want to allow
291
A: RegEx to make sure that the string contains at least one lower case char, upper case char, digit and symbol

Bart KiersIf you need one single regex, try: (?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*\W) A short explanation: (?=.*[a-z]) // use positive look ahead to see if at least one lower case letter exists (?=.*[A-Z]) // use positive look ahead to see if at least one upper case letter exists (?=.*\d) ...

You'll want to use preg_* to assert that the string matches the pattern for content, not length, and then separately do a strlen($s) >= 8 to validate length
18:16
Oh, so don't use the regex to make sure the length is valid? Cool
@MyDaftQuestions You can, but it's complicated to do that with the lookahead method described in that answer
Provided your requirements aren't "just regex", then I'd go with regex for content, strlen for length.
@NikiC, I've pushed the test and will close the reports
If you're working in a team, split it up into separate checks or write a good comment
18:31
@pmmaga thanks
I really need a new disk for data, I can tell how fast torrents are going without looking, just by the noise coming from the disk ...
@rtheunissen I don't know anything about zend_gc. I need to learn at some point, because immutable, persistent data structures do better with garbage collection than they do with reference counting.
18:51
Which one?
- CEO of Lamtakam
- CEO at Lamtakam
Validation for uploading patches should be stricter – #77750
@Shafizadeh either is good, but first one is better.
ah thx
> make: *** No rule to make target '/home/fractal/projects/php/php-src/ext/mbstring/oniguruma/src/ascii.c'
what er.. does that mean?
@FélixGagnon-Grenier ./buildconf && ./config.nice
Which will likely error, in which case you need sudo apt install libonig-dev
19:02
thx :)
it does indeed error
Writing to SplFileObject in ob_start gives segfault – #77751
@LeviMorrison Of course, because they can share with more granularity and each "node" does not require a zend_object. However, given that we have the mutable structures implemented such that clone simply increases the refcount of the internal structure, my feeling is that we can provide decent immutable implementations already. Far, far better than anything you can achieve in userland anyway.
Heh I want to match the array performance so badly ><
Turns out subtrees of 127 is actually the fastest and uses the least amount of memory (on my comp anyway..)
Each subtree is a zend_object so is refcountable / shareable.
19:21
Cursor position erroneously offset when handling user input – #77752
> PHP 8.0.0-dev (cli) (built: Mar 15 2019 15:28:30) ( NTS )
\o/
evenin
19:59
@Ocramius Not sure if that's the right way to pester you, but it seems orm:schema-tool:drop --force fails silently when using pdo_mysql driver if user does not have drop privileges on the database
@FélixGagnon-Grenier should be reported to doctrine/dbal
also check how you are connecting: DBAL sets PDO into "loud" mode
does anyone knw what can cause behat selenium not to find text in page, regardless of how long i spin or delay? goutte works fine.
Wes
Wes
20:27
hellow
@StatikStasis not my thing :D
in fact i normally dislike electronic music... i can only listen to break beat, some techno and rarely house
i think it's called prog house the subgenre i like
20:50
php-trace identifying hot functions and lines ... I just wish I was better at ui ... I'm not good at ui at all ...
^ traces number of function calls?
Ohh and lines per function?
it traces the executor of target process (4544), it's showing hits in functions in order, and hits in lines in those functions, in order ...
this is just a demo, I'll publish it as demo, but someone else should do ui stuff, I'm so crap at things you look at ...
I can help maybe. o/
Unrelated.. if a .c file uses something defined in its corresponding .h file, but its actually something internal to that module, should it still be in the .h? Or is it more like class/interface where only the public interaction is declared in the header?
what do you mean by module ? compilation unit (c file) ?
internal to the library/executable - just don't export it, doesn't matter what header it's in ... if it's only used in that compilation unit, then probably don't forward decl in header to begin with
21:05
Only used in the .c
Cool thanks.
then forward decl at top of c is most you need to do, and may not need to do that ... you may also want to consider inlining it ...
as mentioned in that readme, use as inspiration, not a complete thing, I suck very hard at ui stuff and am not really interested in getting any better, but should give you a good idea of how to put such a thing together for yourself, it was just an interesting demo ;)
Yep is working nicely. I'd consider paying $ for a review of this stuff. You'd think there's some reputable code-review as a service thing..
Cool I'll take a closer look
Wes
Wes
21:36
got myself into a crazy argument with a client today. so basically he wanted to use some particular blue hue, i was insisting for another blue that looked way better. eventually i gave up and agreed using his blue. that was like a month ago. today calls me super angry claiming i changed the blue without his permission to the blue i wanted to use
...... turns out he was just using a different computer with a different monitor that displayed the blue differently
21:49
Ha, I've had something like that happen with a white and yellow. Fortunately it was with a friend, not a client, though.
@Wes ugh that sounds tense. was the issue resolved peacefully?
Wes
Wes
i could explain myself before he realized it was just the computer, still... it was a trippy discussion
the discussion spanned other topics obviously... i had a glimpse on what they think about me...
whatever.
22:11
@Wes wow.. that's hopefully not too disheartening
@JoeWatkins inice
Wes
Wes
22:44
@FélixGagnon-Grenier a bit, but wasn't actually news
ThW
ThW
23:01
concepters have really interesting ideas for charts ... headdesk
Hey all. Who is still using PHP 5.6?
ThW
ThW
@TylerCarter that is not environment friendly - you should use PHP 7
@ThW Sorry - Not so much of a troubleshooting question as it was curiousity.
Wes
Wes
23:39

« first day (3072 days earlier)      last day (2100 days later) »