« first day (3051 days earlier)      last day (1897 days later) » 
00:00 - 20:0020:00 - 00:00

8:10 PM
@Trowski Well, technically nearly everything is possible to do from within an extension... Might require some hacks though and not sure how practical they are. Needs some time to think about how to implement it. Cannot really estimate the complexity as I don't really know what exactly needs to be done on a high level.
@Trowski what's filling the $aliases static?
 
@bwoebi If you feel so compelled I'm sure he'd be willing to accept ideas/contributions to the extension.
 
An online course I'm taking has me doing a project in scratch... I'm trying to build something where it will create sprites when mouse is clicked, but my intention is that the sprites slide towards the bottom of the screen, and eventually the screen will fill up, once the top is reached, then it'll stop and display the total number of sprites. While trying to build this... I'm producing some entertaining results that make the fan on my CPU or GPU go noticeably faster...
 
@Trowski Currently not, maybe I'll have more time in a month or two
 
like sprites spazzing out and the results screen moving directions...
 
@Trowski the main issue though is to discuss the exact semantics
Once we have determined these I can much better estimate what needs to be done
currently it's still a bit vague
 
8:20 PM
Maybe one of us should open an issue for discussion on the extension?
 
Good idea, yes please
 
@bwoebi Appears alias are manually registered.
 
@Trowski so looks like the definition of these is missing
 
I don't think aliases play a part here. Based on this comment, the composer autoloader should be finding it. I'm guessing he has autoloading borked in some way.
 
What a day...
 
8:26 PM
@Trowski you'll need to debug it then :-/
 
Suppose I can install Yii and give it try… then somehow figure out how to mark those segments of my disk as dead and to be forgotten.
Ok, maybe that's being dramatic, it's not like it's Laravel.
 
haha
 
8:53 PM
/enters
 
Hey guys, using Google's Geocoding api to retrieve address info, and I get a response like this
"address_components" : [
{
"long_name" : "185",
"short_name" : "185",
"types" : [ "street_number" ]
},
{
"long_name" : "East 3rd Street",
"short_name" : "E 3rd St",
"types" : [ "route" ]
},
Is there an easy way to retrieve the values from each address_component (long/short name) using the "types" field value? The order of the results from Google is constantly changing so I can't use position.
I've gotten sick of doing manual checks, curious if there's a better way
 
@AlexCastro i think you should move the question to stack questions with more description, then post the link here maybe.
 
Okay will do
thanks
 
9:10 PM
> Traditionally, PHP opts to the side of clarity rather than brevity.
... okay, Stas. Sure, whatever you think.
 
I've been thinking about proposing github.com/nikic/php-src/commit/…
aka make 0 == "foo" return false
 
@LeviMorrison I thought that PHP opted for "reuse" (in form of copy-paste that newbies can deal with) instead of those two fancy terms
 
@ChrysUgwu stackoverflow.com/questions/54835297/… in case you want to see it
 
!!dad
 
What do you call cheese that isn't yours? Nacho Cheese
 
9:22 PM
:45439061 thank you :)
 
I wonder
should I finish the rest of the wine bottle
I have come to realize, that I don't really enjoy Australian wine
 
Why are you drinking Australian wine?
 
that's what I picked up in the shop
it's not even bad ... it's just "meh"
 
@NikiC Yes please!
 
Only europeans make wine worth anything :)
 
9:27 PM
I actually quite like South African
 
@NikiC What's the return value of "foo" <=> 0?
 
@bwoebi The same as "foo" <=> "0"
I believe that foo > 0
 
okay, that's fine for me
 
Yes it is
Also, doing this change has surprisingly little test fallout in php-src
 
@NikiC For PHP 8 — yes, a million times yes.
 
9:30 PM
though... I know of a lot of code doing a comparison whether an input value is greater than 0
 
@NikiC What about <= and >=?
 
if ($_GET["value"] > 0) { /* this is numeric and greater than zero */ }
 
@NikiC you're better off deprecating ==
 
Any thoughts on detecting if the php build is a debug build? Is there a constant defined? Should I parse the phpinfo()?
 
@ircmaxell PHP_DEBUG
 
9:38 PM
@NikiC my dream is still separation of ord and eq for objects.
Maybe PHP 8 is a decent time to introduce that one last time. :p
 
@NikiC I feel like strings should be equal to zero for inequality comparisons (<, >) but not for equality (==) ... which is weird.
 
@bwoebi in userland? That easy?
 
is there a good tv series to watch now?
 
@ircmaxell Suspension of disbelief 😃
 
@tereško top 3 or 5 shows in no particular order.. calibrating
 
9:45 PM
@ircmaxell yea
REGISTER_MAIN_LONG_CONSTANT("PHP_DEBUG", PHP_DEBUG, CONST_PERSISTENT | CONST_CS);
does exist in main/main.c
 
Shit, that's awesome. Makes life easier
Thanks
Am currently importing emalloc, so need to know that value to know which signature to append ;)
 
@tereško TD season 3 is finishing on Sunday, after that I'd say Atlanta, Fargo, maybe Veep?
 
your taste in tv series is kinda odd
 
@bwoebi One thing I'm a bit unsure about is what 0 == "" should return
I feel like this should be true because "" and 0 are both falsy
On the other hand "0" == "" returns false
Right now I'm special casing it to return true, but I'm not sure if that's the right thing to do
 
10:00 PM
if you do that, I would have it return false as well
just for consistency
I mean, null and "0" are also both falsy, but not equal
Wouldn't argue that way
 
@bwoebi True
 
So I just figured something out that is really cool. A low friction way to achieve 100% code coverage while doing TDD in PHP.
You see, there is now pcov, which is a CodeCoverage compatible driver faster than Xdebug
Then you just setup a test class you inherit from when you want 100% coverage. It specifies which class it is testing and ensures you got 100% coverage of that class from that test alone.
I have it outputting exactly which lines were not tested
So if you use that technique with TDD, it is really easy to keep 100% coverage, at least for the one file your current test you are working on is testing.
The beauty is it works great for legacy code. Most of your tests will not inherit from that class, but any time you start writing a new class that represents an actual feature that needs to meet a specification, you just make the test for it inherit from that special class.
So you have to work with the CodeCoverage library directly. You stop and start the coverage as needed in that special test class that gets extended by inheriters. So each test class object has its own coverage object only tracking the coverage of one class under test.
Instead of using a code coverage report, you just examine the coverage data yourself in the code, and output the missed lines. If the file name followed by a colon and line number is output to a vim buffer, gf will go to that file and that line.
 
10:18 PM
@JoeWatkins ^ :)
 
10:43 PM
proc_open() ignores invalid cwd argument – #77656
 
11:28 PM
@still_dreaming_1 cute. link to your repo when you've got the first version working please?
And, at the other end of good vs evil:
Behold my greatest Frankenstein creation, the Brainfuck stream wrapper in PHP: require "bf://path/to/script.bf"; (possibly coming to a conference near you! 😈)
 
11:43 PM
@Danack this is lovely
 
@still_dreaming_1 Did I follow that correctly? You mean you would lie about code coverage?
 
@LeviMorrison they meant instead of the code that is running the tests automatically generating the coverage from the code it is running, that the coverage is generated by the webserver serving the tests, and fed to the whatever is running the tests.
or fed to whatever tool you wanted.
 
00:00 - 20:0020:00 - 00:00

« first day (3051 days earlier)      last day (1897 days later) »