« first day (3740 days earlier)      last day (1199 days later) » 

12:00 AM
@Girgias there's a function for that: find_live_range(op_array, throwing_op_num, ZEND_LIVE_SILENCE)
 
Oh that's what this function does
 
@Girgias not sure how you mean that (i.e. code example?)
 
@bwoebi About the find_live_range, I though I didn't need to do that and I could iterate directly from the op_array
 
@Girgias yeah, best use that live range finding function
 
well let's keep it DRY
 
12:05 AM
/me pours water
 
drowns
 
When the experienced devs try to forewarn of the pain by waterboarding the juniors...
 
@bwoebi so are zend_live_range.start/end the start and end opcodes?
 
@Girgias yes, start is inclusive, end is exclusive
 
12:28 AM
 
<?php

function test1() {
throw new Exception();
return true;
}

$var = @test1();
Shouldn't this produce a live range? because find_live_range(&EX(func)->op_array, throw_op_num, ZEND_LIVE_SILENCE); is returning me a NULL pointer :|
in ZEND_VM_HANDLER(149, ZEND_HANDLE_EXCEPTION, ANY, ANY)
 
1:12 AM
@Girgias which is expected, as with function calls you land in the subsequent opcode
throw_op_num should be pointing to the assign op
 
Ah okay, and how do I figure out that? traverse the op_array?
 
Ah no… confused with generators
 
I mean currently I copied the code from cleanup_live_vars into the HANDLE_EXCEPTION handler removing everything which is not related to ZEND_SILENCE, it compiles and doesn't segfault... it just stops at the assignment and leaks memory :D
 
don't know then, … inspect the live ranges state etc. and draw your conclusions, … bedtime for me now
 
Okay I got something working
Nigh night
 
 
1 hour later…
2:52 AM
Is it possible to pass new data from one VM handler to another one? Ideally by initialising op2
 
 
3 hours later…
5:56 AM
Sooooo, I suppose '@' expr ':' expr is going to be a no-go for a parsing rule?
 
Wes
morning
 
Moin moin
 
6:27 AM
Good morning.
 
6:58 AM
morns
 
Wes
7:17 AM
is "second to last" in your native language inclusive of the last or exclusive of the last? can you say "first to last" in your language? i just found out "second to last" means what "third to last" means for some people, and for others it's a synonym for "penultimate"
are penultimate and second from last synonyms?
some say no, some say yes :B
 
7:33 AM
We have coined word that literally means beforelast.
 
@bwoebi I've got *something* although the results are surprising: https://github.com/php/php-src/compare/master...Girgias:error-silence-exception?expand=1

For example the return value works... but it fetches the last one after the zend_throw_error() call in the zend_test files, all the other ones are NULL, except @throw new Exception which returns true.
I feel I just wrote a bunch of non-sense which just compiles
 
hi
 
8:18 AM
@IluTov correct - but any changes will not automatically lead to recompilation, you'll need to ping me for that. I'll compile and upload it and let you know
 
Wes
8:44 AM
@Tpojka penultimate?
 
9:26 AM
morns !
 
@Sjon Ok great, thanks again!
 
9:53 AM
Missing XML for big_int version 1.0.1 ・ big_int ・ #80614
 
Wes
i always regret starting any fairly large open source project
i am cursed
 
 
1 hour later…
11:01 AM
@IluTov It's available under the "branches" tab - but I'm wondering if you wouldn't be better served with a dedicated URI to test only that branch, and not all other versions
 
Does anyone know about Flipkart Seller API to get an access token for sandbox account?
 
11:13 AM
@Sjon That would probably make sense, arguably all tests for enums will fail on every other branch. Would people still be able to share snippets via links?
 
 
2 hours later…
12:43 PM
catch-and-match... I like that
 
Wes
i shit you not headless chromium can't even fire events in the correct order
possibly due to the timestamp being a float
 
1:06 PM
@Wes do you use teespring?
 
Wes
yes
i mean, not a lot
 
:/
Though, in fairness, I'm not able to find it now. Hopefully it was removed.
 
@Tiffany WTF. Apparently this is "Freedom of speech" twitter.com/free_nac/status/1348500538887819264
 
I mean... it is... but they don't need to platform them
You can say whatever you want, that's a right, but there might or not be consequences
 
All of them are inaccessible so they were removed 🤞🏻
 
1:16 PM
@IluTov as you've played a bit with the VM (IIRC) you might have opinions on: github.com/php/php-src/compare/…
It doesn't really work tho currently as the outputs are ... a bit strange
 
@Girgias Can't say much about the implementation. But I'm skeptical because of the rather large BC break. I realize @ is mostly used for internal functions but certainly not exclusively. Any function with @ will suddenly not throw and potentially return null. Your intention is allowing @fopen(...) to throw without code changes, right?
 
Wes
freedom of speech includes the option of teespring telling them to fuck off
i mean it's not a government agency or something, they can shut down any shop without explanation
 
hello
In Mariadb 10.4 I get error Table ' ' doesn't exist in engine when trying to replicate my database schema
 
The problem I see with @ isn't usually going to be the top level function, it's that it would suppress everything used to generate it's arguments too
 
@MarkR That too, although the same could be said for try (...) => or whatever syntax.
But with try you'd explicitly opt-in as that's a new feature.
 
1:28 PM
@IluTov That's why I'd want whatever shorthand to accept a class list and re-throw everything else. Wouldn't stop people who don't know better from Throwable => null'ing everything mind you
 
I get that, but the point is that @fopen(getPathOrThrow()) would suddenly also not throw.
 
Which is problematic, whereas:

$fp = try fopen(getPathorThrow()) catch(FileException => null) would (assuming GetPathOrThrow threw something else)
 
@MarkR Sure, that works. I was arguing against @ to catch exceptions, not your suggestion :)
 
Ah, yes I would agree that @ catching exceptions has a lot of potential downsides.
I suspect... that it'll likely come to re-writing the file IO instead
 
2:27 PM
It sounds like what you're really after is a short-hand for catch() for the case where any given exception gets turned into "return blah"
spit take at @NikiC's latest RFC
 
@Crell Let's see how this goes...
 
Is this the right place to report issues for the rest api of pecl.php.net?
 
Surprisingly adding support for object keys results in quite a bit of code cleanup ... as there's no longer an excuse to explicitly handle all possible key types everywhere
 
@NikiC Nice to hear you're working on that :)
 
2:59 PM
@NikiC "The hash value for object keys is the object pointer shifted right by the minimum object alignment" I assume enums will require additional tweaking here? We can't guarantee the enum objects will have the same address between requests.
Sorry, that doesn't make sense. It all depends on how they are serialized.
 
@MicheleLocati no. Probably here: bugs.php.net/report.php
 
@Tiffany thanks!
 
cmb
@MicheleLocati there was a similar issue not that long ago, and it had been caused by duplicate DB entries
 
3:18 PM
@IluTov objects never survive across requests, ergo you can't store an object in a persistent HT anyway
 
@NikiC Yeah, I didn't properly think it though.
 
@Wes Yes.
 
3:36 PM
@cmb so, where should I report issues?
 
Wes
@Trowski @PeeHaa will i get murdered if i write
private function _ensureSetUp(): Promise{ return call(function(){
    // indent 1
}; }

versus

private function _ensureSetUp(): Promise{
    return call(function(){
        // indent 2
    };
}
 
@Wes you just wrote it in chat, hereby you're already dead - and yes, that's ugly :-D
 
cmb
@MicheleLocati bug.php.net is the appropriate place :)
 
@cmb @cmb "PECL" item under the "PECL" category? Or should I report an issue for every pecl package? I already started to do that (see bugs.php.net/bug.php?id=80613 and bugs.php.net/bug.php?id=80614 ) but I have to report many issues (about 30 packages are broken)
 
You should support @Crell's proposal and just write:
private function _ensureSetup(): Promise => call(function() { ... });
 
cmb
3:47 PM
@MicheleLocati better open a single bug report for all of these
 
@cmb under the PECL/PECL category?
 
cmb
@MicheleLocati yes, that's fine
 
@cmb I'm going to do that, thank you!
 
@Sara Yes, that! :-)
 
Wes
4:02 PM
@bwoebi :(
 
4:19 PM
Morning everyone!
 
o/
 
\o
What's it called when you access an array via method call, so something like this: $this->getParam('storage')['uploadPath']
 
cmb
@KerrialBeckettNewham the manual calls that "function array dereferencing"
 
4:34 PM
@cmb Thanks! did you know that or is there some tool that tells you what things are?
 
cmb
I looked it up :)
 
@cmb but searching for what? i mean if you don't know what something is called, what do you search for? :P
 
cmb
I knew that it's documented in that migration guide.
 
Oh I see, thanks a lot :)
 
4:54 PM
Missing/invalid REST endpoints of pecl.php.net ・ PECL ・ #80615
 
@cmb see the bug above for the issues I've found
 
 
1 hour later…
6:01 PM
#PHP Fatal error: Uncaught Error: Call to undefined function posix_initgroups( ・ *General Issues ・ #80616
 
6:33 PM
@cmb ok to reopen ^?
 
cmb
@Danack ah, thanks. I've reopened as doc bug.
 
6:57 PM
yeah....walls of text don't help bug reports...
 
 
2 hours later…
8:54 PM
@Danack *stares at valgrind output*
 
@Wes Yes, yes you will. If the indentation bothers you, you can use another private method and return new Coroutine($this->privateMethodReturningGenerator());.
I moved away from that pattern and just wrapped things in call().
 
10:01 PM
@Wes I was wondering who that was that joined right as I was ending. =P
 
@Wes Yes. Slowly and painfully
 
@Gordon Instana won an IT World award?
Whatever IT World is
Project I'm working on uses PR Newswire as an API, and when you posted the link about IBM acquiring Instana, I noticed the release sent through PR Newswire, so I've occasionally been using "Instana" as a test :P
 
 
2 hours later…
11:53 PM
GCC throws warning about type narrowing in ZEND_TYPE_INIT_CODE ・ Compile Warning ・ #80617
 

« first day (3740 days earlier)      last day (1199 days later) »