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

Wes
3:32 AM
eh
morning. water boiler is broken again
21st century tl;dr: nothing works
 
Morning @wes
Please see it out and have new one! :p
 
Wes
it is new
 
4:16 AM
morning
 
Morning @linus
@wes Under warranty or something?
 
Wes
yeah, but still annoying
 
Hehehe ! Sometimes new things sucks more then older one :)
 
!!dad
 
What did the grape do when he got stepped on? He let out a little wine
 
4:42 AM
@Jeeves sir can you talk now?
 
Wes
@Akshay they do
 
5:04 AM
I need to add stripe recurring payment. any good tutorial link?
 
I had forgotten my SO account
morning
 
Wes
\o
@NikiC DAT PHP PARSER
 
posted on April 17, 2017

New Cyanide and Happiness Comic

 
5:23 AM
hahha
 
5:51 AM
Goodmorning (if applicable). Could somebody help me with finding the terms to use in a Googe or DuckDuckGo? If feel this question is not suitable for a real SO-question... I don't request a solution, just the proper phrasing so I can Google further. (Or Duck further?)
I have a piece of PHP software on one of my servers. This can perform a service that I want to expose to the world. However, I want to limit it's access. So, I client of mine must be able to display a widget on her site. Her visitors could use that widget and when submitting, a request will be sent to my site, which will check if the request is indeed coming from her server and only then provide an answer.
-- How is this process called? So, I realy just want to know what I should search for. The discription above is too large for a search engine :)
 
Um, 3rd party widgets?
 
6:07 AM
Guys, does anybody know what's the meaning of "over" in this sentence?
> The prop('disabled', true) method should be used over the attr('disabled','disabled') method
 
@littlepootis Haha,... no... But I'm there in the meanwhile. Something along the lines of API authentication and so. Thanks
@Shafizadeh "Preferered over", "chosen instead of..." maybe?
 
@Ideogram ah, thx
 
(And sorry about the typo. But you got it anyway)
 
yeah .. I got it
 
Wes
6:25 AM
guess who i.imgur.com/qEDAqPI.jpg @Danack @PaulCrovella
 
6:54 AM
moin
 
moin Joe \o
 
7:16 AM
o/
 
does anyone else not like wearing socks?
 
Wes
hey @JoeWatkins any news from this? wiki.php.net/rfc/lexical-anon i've read the discussion and as usual there was a lot of noise with people suggesting crazy stuff. imho your solution is perfect
 $traverser->addVisitor(new class($thisVar) extends NodeVisitorAbstract{
            private $thisVar;
            function __construct($thisVar){
                $this->thisVar = $thisVar;
            }
"thisVar" appears 5 times...
it's madness...
 
without support from a few key people, it's hard to get engine changes like that in ... and those people want to do it another way
 
Wes
this is so frustrating
 
7:30 AM
I don't really have time to engage in that kind of rfc right now ... anyone else is welcome to run with it
 
Wes
i can totally see why many great rfcs get stuck. it is exhausting dealing with internals...
 
to make such changes should be hard work
 
Wes
isn't there a patch already?
 
yeah
the patch isn't hard, the patch is the easiest part of any RFC
 
Wes
ah you mean to avoid implementing bad stuff
 
7:35 AM
yes
 
Wes
other languages (css, js, presumably others too) have "experimental" apis. they get merged and are available publicly but users are warned that it might be removed if turns out to be a bad idea. would be great if php did that too
sure one can apply patches and compile but not everyone is good with that
it would be a good way to test new features
 
I wouldn't want to manage that kind of experimental release
I think you'd find the kind of people that would test that kind of release are those that are able to just apply a patch and test it anyway ...
there's no room in the ecosystem for that kind of release to be deployed en-masse ...
we have enough trouble getting people to upgrade to stable releases
we do have some kind of support from 3v4l to test unmerged rfc's, this is about as close as we can get to experimental releases ... anyone can play with it there without messing anything up ... you can't run your whole application, but ... nothing we can do about it in reality ...
 
Wes
7:51 AM
@JoeWatkins :( what for example? php's bundle is massive... i use not even half of the extensions. i've always wondered why stuff like tidy are still in core
 
> what for example?
 
Wes
or database drivers nobody uses.... shouldn't them be in pecl?
 
huh ?
 
Wes
i mean no wonder that you guys are struggling with that, there are dozens of extensions...
 
well it's a balance between providing a generally useful thing, and providing things that are actually used ... php is used in all kinds of environments doing all kinds of things, stuff that the people we talk to have never used might well be getting used quite widely ... because there is a vast number of users, and even if everyone you have ever spoken too is not using something, you have only spoken to a minuscule percentage of the users php has ..
 
Wes
7:54 AM
i'm saying that those extensions are probably better in pecl
not to delete them entirely
 
you're still breaking deployments, you're still making it harder for people to upgrade to the latest version of php by doing that ...
also there's the maintenance problem ... things like tidy take no effort for us to keep up to date with latest engine changes, but moving it to pecl can easily kill an extension, there's no particular reason to keep it up to date if it's not breaking the build ...
there are a few actively maintained extensions on pecl, but in general stuff goes to pecl to die or be forgotten ...
lots of the pecl extensions that you would suppose have a decent user base are in a terrible state, ssh2 for example
 
Wes
well perhaps if php had a more "modular" mindset pecl extensions wouldn't die
i would have everything on pecl except actual "core" functions
 
it just can't work ... even though installing with pecl is easy, and hosting on pecl has considerable benefits with regard to release cycle among other things ... people (ops) still find it hard to actually use it ... even though there can't be many decent sized projects that don't use pecl, you still hear complaints about pecl being difficult to use ... I think you've complained about it yourself ...
 
Wes
i did, and that's my point, if bundle was easily customizable (as customizable as with composer) pecl extensions wouldn't die
right now moving extensions to pecl would clearly doom them to death, but if pecl was better organized and more accessible i think it would work
 
I remain unconvinced, there's no remarkable difference between pecl install thing and composer install thing or adding a line to composer.json ... the thing that would allow extensions to die isn't how easy or difficult they are to install, it's that there is no incentive for anyone to maintain an extension that doesn't break the build ...
that's the only reason that things like tidy still work even, because if we didn't keep them up to date, we wouldn't be able to build php ... if it's on pecl, they'll be forgotten, regardless of how easy or difficult installation actually is ...
 
Wes
8:08 AM
i don't know, maybe i suck at it
 
it will generate bugs (see the roughly one bagillion bugs for pecl exts on bugsnet), but nobody will do anything about it ... either because they can't, or because they can't be bothered ...
 
Wes
you aren't supposed to care imho
many extensions have their own bug tracker like on github, their documentation etc
i don't know why php wanted to host them
 
they predate github mostly
 
8:29 AM
/me is afk
 
http://stackoverflow.com/questions/43447888/how-to-define-variables-‌​php
 
Segmentation error while running a script in CLI mode – #74456
 
mornin tereško
 
relax :P
 
just started a morning with cleaning some shit
 
:D
 
and almost immediately stumbled upon that abuser
 
which abuser?
 
8:55 AM
those for flags are from same user
 
9:22 AM
Wrong reflection on XMLReader::expand – #74457
 
9:35 AM
this one guy is going round looking for incorrect reflection structures ... it must be taking him a long time ...
props to that guy
 
@Jeeves OPCACHE STRIKES AGAIN!
 
we should burn opcache
 
I think we should decrease the default optimization level...
 
that's only a small fire ... but seems reasonable ...
but then
on the other hand, we are getting these reports precisely because optimization level is high, nobody is going to report bugs if we decrease/switch it off
 
happy easter everyone :)
 
9:39 AM
then it will just be sitting there, full of bugs, and nobody will be fixing them
 
Has anybody seen @stream_socket_get_name($this->stream, true) return '' . "\0" . ''instead of false?
 
I have to presume that opcache test coverage must be very low, maybe it's time to do something about that @NikiC ?
maybe we decrease in production versions and work on better test suite in master, then we can have at least some confidence that opcache is okay for 7.2 ?
 
@JoeWatkins Opcache doesn't really need its own test coverage
All code is test code for opcache ^^
 
well if these things were tested, we would surely spot them ?
ah
that's true
 
The problem are cases where things that work in isolation combine into things that no longer work...
 
9:43 AM
but I must still assume that there are code paths that are not tested, or our tests are wrong ?
I see, so they work in the isolated tests, but then someone adds something to the logic and it goes wrong
why aren't these faulty code paths detectable ?
hmm ...
 
urm... I forgot how to grep... would grep -Rl 'foo' /dir be case sensitive?
 
it feels like there should be something we can do about it with tests, but I'm not sure how to write them, given what you just said about how they arise
@Ekin man grep
 
@JoeWatkins The actual coverage of opcache is not so bad: gcov.php.net/PHP_HEAD/lcov_html/ext/opcache/Optimizer/index.php
 
yeah optimizer is not great though
 
happy easter r11!
 
9:46 AM
riiight, much better, thanks for reminding that
 
it's optimizer where the bugs are being uncovered
 
@JoeWatkins all of that is the optimizer ;)
 
@Ekin I don't think anyone remembers the details of every command, there are quite a few I have to lookup
 
Looks like the zend_optimizer_lookup_cv function is dead code
 
@NikiC so maybe increasing coverage of optimizer is a good plan ?
I was referring to both of them with the name opcache (o and +) ...
26% of something so complicated is plenty of room to destroy confidence in such complex code
 
9:50 AM
@JoeWatkins 15% because 10% is the opcode dumper ^^
 
I think not, zend_optimizer.c coverage is listed separate from zend_dump.c (which I presume is the home of zend_dump) and is 73.6 % covered
right ?
 
@JoeWatkins ah, I was talking about the total coverage
zend_optimizer.c is just some of the helper code
 
why is coverage of /Optimizer not shown actually ?
oh wait
ha
it is
I'm not sure I understand these numbers then
unless dump is in the order of a few percent (not 15) ?
 
@JoeWatkins dump is 10% of the code
 
hmm
then all I got left is ... RED IS BAD
:D
I think you're probably already trying to improve it ... right ?
please ...
I just clicked on the detail view, how trust worthy are these numbers ?
some of the stuff it says isn't covered looks like it should be pretty common (in zend_optimizer.c)
 
10:07 AM
stream_socket_get_name returns \0 instead of false – #74458
 
@jeeves just opened that one :)
 
:| I cannot figure out how to use this app's API from a separate directory without making a curl request to my own server
 
I can't figure out what you wrote
 
To use it via curl you make a curl request to exampledomain.com/api and send post parameters, but it seems really pointless to do that when it's on the same server. I just don't know what file /api is using :|
lol
Did that explain it any better ^^ o.o
 
not sure
first of all, you should be using github.com/amphp/aerys instead
second, you should have local domain alias and connect using that
 
10:21 AM
Use aerys instead of what?
 
@JoeWatkins Here, I improved code coverage :P github.com/php/php-src/commit/…
 
instead of cURL
 
Ahh okay
 
@NikiC hehe ... that's cheating
 
Thanks I'll look into both those things
 
10:23 AM
how is gcov triggered ?
Last Build Time: 2 days
is that the build was done two days ago, or the build took two days to run ?
 
@JoeWatkins took two days to run
 
oh my god
what hardware does it have ?
 
@JoeWatkins It's running through valgrind, probably twice
 
2x Intel L5320
they are 10 years old
and crap
 
10:26 AM
heh
yeah, that could use a more beefy box ^^
that would require someone to set it up though :)
 
@tereško how can it be used instead of curl?
 
SHIT
 
it used to take a full week
 
@Alesana sorry, I meant github.com/amphp/artax
@rdlowrey you fucking naming schema sucks
 
Ahh okay, aerys would be a replacement for Apache right?
 
10:31 AM
@Alesana Aerys would be closer to Rails: a framework, in which the application also is the server
.. kinda
 
Ah okay. It looks like I have lots to learn then haha
 
@tereško eh
node.js would be a more appropriate comparison
Because Rails is an actual framework, while Aerys is not
 
but node.js is running on top of v8
it is actually pretty hard to find a good comparison
 
@tereško so?
 
it looks quite easy to setup ... I am testing that assumption @NikiC
 
10:35 AM
That's just a question of implementation
@JoeWatkins haha
 
@NikiC which is a custom implementation of ecmascript, that supports something like 50-80% of ES6 features
s/which is/which runs
 
10:49 AM
@Wes ugh what's that cryptic stuff about social engineering??
o/
 
Wes
@FélixGagnon-Grenier i have no idea. that text is all strange
 
anyone played Battle Brothers?
 
Aaaaannnddd... Searching for mandatory: php.net/manual/en/…
WTF php?
What does solr even do here? We has a built in implementation? I confused.
( on mobile and way too lazy to actually read )
 
btw, @FélixGagnon-Grenier you might enjoy this bit: youtu.be/gz_RpYeU7nA?t=4629 (specific subject from a longer podcast)
 
is pecl ext
 
10:57 AM
o rite
Tbh this is actually kinda cool. A colleague is building a solr server, I can try that.
 
11:11 AM
@tereško nope. been playing Hard West over the weekend
 
o/
 
\o
 
@Gordon is it good (I bought it on sale, but still havent tried)
 
I've just updated bugs.php.net/bug.php?id=74458 after looking at lxr- any thoughts would be welcome.
 
@tereško a bit laggy and buggy here and there but enjoyable
 
11:28 AM
laggy?
@Gordon as in not responsive or too demanding?
 
Wes
@PeeHaa i think this could be my fault
 
@Wes ? :P
 
Wes
anything i use / want to use eventually explodes in a huge fireball
 
heheheh
I have been using it for some time too, so might also be my fault
 
@tereško I had everything on high and it felt laggy which is odd given that its an turn based game. shadowrun doesnt lag.
but putting stuff on medium works better
 
11:35 AM
@Wes Glad you are drinking the wkhtmltopdf koolaid too though
 
Wes
i'm not yet, like 2 days ago someone here linked it to me and i've bookmarked it
 
@Gordon you can enable a framerate counter under Settings > In-Game
 
Wes
and now i read they are exploding in a huge fireball
 
maybe it was possible to do also from the overlay
 
@Wes I was the person who linked it so technically it's my fault either way :P
 
11:38 AM
I started a wkhtmltox ext a few weeks ago ... but didn't have any spare time since then
 
I....
nvm
:P
 
:P
 
@tereško i dont think youll have the same lagginess. im on an intel hd 5x gfx card
not a dedicated gaming card
 
ugh
you need to buy some
unless you are on a laptop
 
i am
 
12:03 PM
my condolences
 
Wes
I DID IT @Leigh
ONLY TOOK ME FOUR MONTHS
:B
 
what did you do?
 
you tied your shoelaces all by yourself?
 
12:18 PM
... I was going for something more like "managed to piss while standing"
 
hm
can I get a little help?
I'm looking at the disassembly of an ELF binary
0000000000400470 <_init>:
  400470:	48 83 ec 08          	sub    $0x8,%rsp
  400474:	48 8b 05 7d 0b 20 00 	mov    0x200b7d(%rip),%rax
that's supposedly the start of it
but I can't seem to find 0x200b7d anywhere else in the binary
so it's an address pointing... where?
supposedly in the kernel?
 
facing a weird issue
 
@FlorianMargaine that's an offset
It's an IP-relative address
 
You have to look 0x200b7d bytes after the current instruction
 
12:30 PM
the binary doesn't go that far
CL-USER> (format t "~x" (+ #x400474 #x200b7d))
600FF1
the binary stops there:
0000000000400654 <_fini>:
  400654:	48 83 ec 08          	sub    $0x8,%rsp
  400658:	48 83 c4 08          	add    $0x8,%rsp
  40065c:	c3                   	retq
 
@FlorianMargaine odd
 
phew, it's not just me
 
could it be assuming that it's loaded at a specific location?
 
it's just this binary compiled with gcc -o main main.c -lm if you care
#include <stdio.h>
#include <math.h>

int main() {
  printf("%f\n", pow(2, 2));
}
@NikiC I don't know, I'm trying to understand how an ELF binary works
(note that it's after the linker's work, not just after gcc -S)
 
Wes
12:38 PM
@PeeHaa we taught the Spaniard the gestures well i.imgur.com/fqxKL71.jpg
 
4003cc: 48 8b 05 25 0c 20 00 mov 0x200c25(%rip),%rax # 600ff8 <_DYNAMIC+0x1d0>
 
:D
 
@FlorianMargaine ^ that's what I get
 
@NikiC and does 600ff8 exist in the binary?
 
Yes
The _DYNAMIC section does occur lateron
are you using objdump -D?
 
12:40 PM
ah, no, objdump -d
aaah
better :)
 
ah yeah, that'll be it
 
thanks
uh
it tries to interpret text as assembly
plenty of wrong output...
(like .dynstr as assembly...)
hm
@NikiC would you happen to know how to tell objdump to not strip the output?
the manual shows --full-contents but it doesn't seem to work
is objdump just the wrong tool for the job?
 
Need help guys
 
@FlorianMargaine what do you mean by strip?
 
Wes
@NikiC is there a way to have the pretty printer keep the escape sequences in strings as they were defined?
$a = "
";
$a = "\n";
both get parsed as
$a = "\n";
 
12:52 PM
 
@NikiC it adds ellipsis after some point instead of still showing assembly
 
Wes
parsed -> printed
 
did you see line break between </div><div> tags?
 
Wes
@NeelIon #cringe
i see that there are tabs and spaces mixed
 
@FlorianMargaine so you mean show the null bytes?
 
12:54 PM
if i remove those tabs and spaces then html structure is not breaking
 
@FlorianMargaine Apparently it's -z
 
ah, it's just null bytes
 
like this
Thanks florian
how can i remove that?
 
hm
so my _init is pointing to call a null byte in .got...
... I'll read up a bit more about how this is all supposed to work...
 
12:56 PM
@NeelIon I am not sure what exactly is the problem, that you are trying to solve
do you want to switch your code to proper line-endings (LF instead of CRLF) ?
 
may be
i dont know what i am doing wrong
 
what is the problem?
 
the first image is showing the code which is causing html structure break
 
what do you mean by break?
does it become invalid?
 
and the second image is after removing all tabs and spaces and then it is not causeing html structure break
 

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