« first day (2375 days earlier)      last day (2567 days later) » 

6:04 PM
@Wes Nope. Also phpdbg or xdebug?
 
Wes
what i want to do is logging myself what lines are covered @PeeHaa github.com/sebastianbergmann/php-code-coverage/blob/master/src/…
basically stop() have to return the executed lines information
 
Ah so you don't want to know how it works, just how you can use it?
 
night, all o./
 
o/
 
Wes
yes
problem is, i don't know how to tell phpunit to use that rather than phpdbg
 
6:09 PM
Wait wat
Now I'm confused
You want to get the lines hit from userland code?
 
Wes
i want to log them from userland
:B
 
That means you have to write a complete analyzer afaik
IIRC xdebug overloads opcodes
Not sure what magic phpdbg does
I don't see an easy way to do that from userland
But I don't know nearly enough about that to be of any use either way
Maybe ping @bwoebi or @NikiC?
 
Wes
i don't know how i should do it, but perhaps i could do:
function bar(){
    $a = 1+1;
    return $a + 3;
}

function bar(){
    \log_line_access(__FILE__, __METHOD__, 55);
    $a = 1+1;
    \log_line_access(__FILE__, __METHOD__, 56);
    return $a + 3;
}
 
@PeeHaa phpdbg only overloads the executor, no opcode handlers
 
Wes
that done with php parser
 
6:13 PM
@Wes Think xdebug started with something like that
It was slow as fuck
Amongst other things
 
Wes
i don't actually need to log every line, only each path
basically each {} will have its own "log"
 
Each hypothetical {} I assume
if (foo) echo bar;
 
Wes
function bar(){
    here
    if(){ here }else{ here }
    for(){ here }
}
not every single line yeah
 
24 secs ago, by PeeHaa
if (foo) echo bar;
 
Wes
well yes, that surrounded with {}
it's the same thing
 
6:15 PM
Sounds like a crazy job if at all possible
 
Wes
the only thing i can't do is ?: also phpdbg etc count them as a single line
unless i convert it to an if else but i would rather not do that :B
 
@Wes but it correcly calculates coverage right?
cc @bwoebi ^ ?
 
Wes
no, it says line covered even if e.g. you never hit the "else"
 
@Wes with phpdbg you can have the execution log of every opcode
And postprocess that in a way you like
 
Wes
it's not supported by phpunit though
 
6:17 PM
That sounds like the better approach to whatever you are doing
:P
 
Wes
what i'm doing will be few hours job i think :B i just don't know how to wire the thing in phpunit...
 
In that case just return whatever / however you like and write an adapter / driver for phpunit
But it all sounds painful to me
 
Wes
the driver format seems fairly easy again but i don't know how to tell phpunit to use it when i do phpunit from the command line
 
ooooh
 
Wes
admitted there is a way to specify it
christ github search sucks...
but i can't find where it's used
 
6:24 PM
yes
What is you are trying to do?
You can just set it in the config
driver arg ^
 
Wes
yes, but where it is is actually instantiated, in phpunit? :B
in the config of what, though?
 
What do you mean by instantiated?
 
Wes
new CodeCoverage()
i want to pass in my own $driver
 
Then pass it in the constructor ^
2 mins ago, by PeeHaa
https://github.com/sebastianbergmann/php-code-coverage/blob/master/src/CodeCover‌​age.php#L145
It's just a phpunit.xml option afaik?
 
Wes
@PeeHaa yes? :|
there is no such option :B
 
6:30 PM
oh wait
it sets
shrug
Just hack the source
 
Wes
i think
it's hardcoded to null, which means i'm screwed :B
 
Can't you just ask nicely and ask if it's ok to add an option?
 
Wes
i don't want to bother anyone... :B
 
:P
Fork it :D
 
Wes
here is why, kids, we use dependency injection :B
/me autoload hacks :B
i'm not even sure if that's the right instance... it is instantiated in several places
 
6:40 PM
Can't you just step through the code?
 
Wes
with like, a debugger? :B
i still have no idea how to install one
 
yea :P
 
Wes
did you try phpstorm's?
phpdbg is like aramaic to me...
 
@Wes huh? They have written their own debugger?
I thought they used xdebug :|
 
Wes
maybe, i don't know?
 
Wes
anyway, i need a break. been at my computer for like 16 hours today
and i did nothing, obviously
movie suggestions?
 
justice league
batman (the one with the joker)
the big lebowsky
back to the future
endless story
 
@Wes I've seen underworld yesterday
was ok
 
we know your life is average
 
Wes
@PeeHaa the original one?
 
6:52 PM
s/average/underage/
 
@Wes 2016
 
Wes
i didn't like the first much :B
but kate beckinsale is hot
:B
and @FélixGagnon-Grenier your movie knowledge is terribad
 
@Wes yes
 
tom and jerry?
 
@Wes :(
@Wes well, this is what happens when ONE HAS A LIFE!
 
Wes
6:55 PM
boom :(
 
@FélixGagnon-Grenier Licking maple syrup is a way of life
 
Wes
ahahaha
 
@PeeHaa over my dick, that is, yes
 
Wes
ahahahaha
 
6:57 PM
... shit. you made me go there, again
 
Boy that escalted quickly
 
:P
 
@FélixGagnon-Grenier :D
 
yeah sorry :P
kinda funny that the word you use after that image is "boy", but let's ignore that
 
Wes
@FélixGagnon-Grenier did you get ribs removed in order to do that?
escalated even more
:B
 
6:58 PM
HAHAHAHA
well, with the f1 tournaments, chicks over here are quite trained, din't have to go to that extent
 
Wes
ye right :B
why movies all suck. why everything suck
 
ok, back to our normal program
 
@Wes you're depressed; try adding cocaine
 
what a good advice!
 
Wes
back to escalations? :B
 
7:00 PM
It certainly won't backfire in any terrible ways I am sure!
 
Wes
as i am easily addicted to everything, i would never touch that :B
did you watch ghost in the shell? @PeeHaa
 
shit the new movie is out
I really has to go see it
 
@Wes Nope only found a crap cam
 
Wes
!!imdb green room
 
7:03 PM
• Green Room (2015) [ http://www.imdb.com/title/tt4062536/ ] - A punk rock band is forced to fight for survival after witnessing a murder… [♥ 7.1]
• The Green Room (1978) [ http://www.imdb.com/title/tt0077315/ ] - A French little town, at the end of the twenties. Julien Davenne is a journ… [♥ 7.2]
• The Green Room with Paul Provenza (2010) [ http://www.imdb.com/title/tt1546139/ ] - Comedians sit around talking about comedy and world issues with host, Paul… [♥ 8.5]
 
Wes
anybody watched that?
 
@FélixGagnon-Grenier Nice 404 you just shared :-)
 
rly
 
7:07 PM
not here it isn't...
w8
@PeeHaa can you see that
 
Wes
/me watches documentaries
at least i get to sleep fast :B
 
@FélixGagnon-Grenier yes downloads
800MB
O.o
That's probably the same crappy cam :P
 
:D
tnx for the effort though :)
 
in any event, I am dling it just to see
 
7:09 PM
Yeah let me know
 
sure
compulsively plays whatever while download happens
 
It's 800MB you should have it by now :P
 
No idea what kind of connections you have over there
 
this is torrents. douchebag ;)
 
7:13 PM
Does it all go through paris? :P
 
prolly, so they can nsa the fuck out of my ass
at work we have an ok connection
like, 100mb dl 75 ul
but here at home, I don't have that kind of money
 
What connection do you have?
 
what do you mean? like fiber or landline?
 
speed
 
funny how this is totally a question I would have thought I'd be able to answer instantly
turns out I have no idea what my plan is or not
wait, I'll do a speed test
 
7:16 PM
I have a filename like '019722.jpg'. To get only the number here, how do I use the substr function? This seems to be wrong: substr($fileName, 0, strpos($fileName, ".")
 
PDO_Firebird returns only NULLs for results with boolean for FIREBIRD >= 3.0 – #74462
 
Sorry! To anyone wondering what the problem was, seems it was just a typo. That works. :)
 
ugh
that sucks
 
> slower than 93% of canada
 
7:20 PM
:P
 
considering that takes into account all the mooses, I see myself as insulted
 
hahahaha
 
hey anyone has a workable way to play alpha centauri? I've been yearning for that game fior some time now, and apart from running windows 95 (which I won't do) on a vm haven't really found any working solution
 
@FélixGagnon-Grenier gog version perhaps?
 
gog. hmmm yeah, I remember hearing about that and thinking I should get my head out of my ass. I still don't know what it is. proceeds to the internets
oh shit. ok.
 
7:26 PM
@FélixGagnon-Grenier It's a website which fixes old games to run on modern systems and sell said fixed games drm free
As in just torrent the gog version :)
 
\o/
shit. I will ruin myself again. been there 5 seconds, seen "planescape torment".
this is my turf now.
 
:P
I am so sorry for your productivity
 
:D
 
well, tbf, steam's pandora: first contact is probably the same, but better, but y'know. nostalgia
 
7:30 PM
I can totally play old games
 
^
@PeeHaa oh. littlefinger tells me torrent was some kind sf spam, to make me install some codec, that will probably p0wn me computer
 
yeah sounds about right :)
 
shit. so bad a trojan even windows defender foundit, realtime
 
:D
 
oh well, fuck me, I can continue playing old games ;)
lately, now that I don't run after money so much, I've been changing some of my habits. Like, instead of working hard and trying to find that torrent, I just... go see movies in theater.
and like... I buy games. crazy, rite?
 
7:37 PM
I almost never do the theater thing
And yes steam made it convenient to buy games and I can afford it now
 
I know it's hard, you have to see and interact with people ;)
 
lol
It's mostly overpriced beer / food, crammed seats and no pause to get more beer which annoy me
Oh and loud foreigners
 
hahaha
tempted to go to NL for some important fiction movie premiere and try to find the @PeeHaa in the crowd
 
You have better luck finding me on my couch watching from kodi :P
 
:)
oh wow. and they just let you dl the file
so much more nicer than steam
 
7:41 PM
yeah it's all drm free
 
oh well. at least I totally have noting more to do today...
 
NeelIon this is so random it's cryptographycally secure
 
8:28 PM
Afternoon.
 
o/
 
Anonymous
8:52 PM
Moins
 
hey kid
 
Anonymous
@Jimbo is that job remote?
 
9:12 PM
11
Q: Is Documentation a failed experiment?

TecBratEarly on, I made some small change to some small part of PHP Documentation and occasionally see a single rep point pop up, but I NEVER find myself visiting it for ANY reason now. Matteo Italia's well upvoted answer to a question about improving Documentation said "...just stop caring." and "don'...

Aaaaand another one down
 
Anonymous
@PeeHaa yes yes yes yes yes
 
@NikiC by “rabbit whole” you probably meant “rabbit hole” (I think the English expression is a reference to Alice in Wonderland…)
 
@Andrea Nope he meant the entire rabbit
 
9:36 PM
@Andrea fixed
 
^^
and sure enough, 'tis from Lewis Carroll's book
 
@Andrea huh, didn't realize it's that old
 
152 years!
PHP is much younger
129 years until it reaches that book's present age
I think we can all hope PHP doesn't survive that long ;)
@NikiC your blogpost is making me think I should probably write my own compiler rather than piggy-backing off Zend
I mean I thought that anyway. But in particular, decompiling Zend Engine opcodes is tedious in practice; the compilation challenges and execution model (for targeting JS) are significantly different; and it'd be more fun.
I have enough side-projects as-is, though :p
 
10:02 PM
phpdbg not working in php7
 
@Andrea yeah
of course the real question is why you want to compile to js in the first place :P
 
10:49 PM
@NikiC … to run it in the browser?
@VagnerGonçalvesGonçalves hmm?
 
@NikiC Because JS is awesome and does all things
Think of the jQuery plugins
All the PHP extensions as jQuery plugins.
 
11:53 PM
ugh
@MadaraUchiha I was intending on sleeping tonight, y'know
 

« first day (2375 days earlier)      last day (2567 days later) »