« first day (1659 days earlier)      last day (3292 days later) » 

5:00 PM
Try it. It should be easy to test...
 
Hey @PeeHaa should I keep the box running? =]
 
Nope. I am pretty confident it works as it should now ™. I just need to write a shitload of patches now and I will be able to release something with your name in the credits :)
<3
Thanks!
 
No problem =]
I will kill it one of these days
 
kk
 
@ircmaxell … and how??
 
5:12 PM
add in a dummy branch into that function which isn't statically determinable to be false
 
@bwoebi Add a dummy deindirection into all CV fetch helpers
 
I did
I mean, how to test/measure that
 
well, first just try benchmarking it normally
to see if there's a tangible reduction
 
@PeeHaa there are too many php devs in India working on low wages that's why
 
@Cody That fact has nothing to do with being able to do both?
 
5:23 PM
@Cody I think LPIC certs are valuable in VCs.
 
I just realized, we're doing a research assignment in a seminar and the title is "How open source is open source software". I need to pick a project I'm not really involved in - would you guys mind it if I pick PHP and then interview a bunch of you?
Sounds a lot easier than picking a project where I don't know the involved parties
 
@ircmaxell no, not really
Over 50 runs I get the new one being 1 ms faster…
 
@PeeHaa: Found a quite good webradio from amsterdam for classical music ;)
 
@bwoebi A good start is getting the number of instructions retired via callgrind
 
5:26 PM
faster?
 
@ircmaxell one millisecond… of something which takes about 1.1 second
 
@hakre :)
 
@PeeHaa @NikiC @LeviMorrison @ircmaxell @JoeWatkins @rdlowrey @bwoebi @DaveRandom @hakre @Jimbo @kelunik @Ocramius @salathe sorry for the mass ping. If any of you object to the project idea - let me know and I'll call it off. If you want to be anonymized in chatted saves I quote - let me know. If you want me to not quote you or to review said quotes first - let me know
 
oh wow. travis looks so shiny \o/
 
5:29 PM
I don't care :-)
 
@BenjaminGruenbaum project? Which project?
 
6 mins ago, by Benjamin Gruenbaum
I just realized, we're doing a research assignment in a seminar and the title is "How open source is open source software". I need to pick a project I'm not really involved in - would you guys mind it if I pick PHP and then interview a bunch of you?
 
@PeeHaa Well, I don't know about shiny but it's new and looks nice :)
 
@LeviMorrison Just imagine the ~> growing a hand, holding a knife, and that hand reaches out of the monitor and stabs him in the eye.
3
 
@BenjaminGruenbaum Anonymize? Let them have a laugh at my nick :P
 
5:30 PM
Thanks guys :)
 
@LeviMorrison Yeah it's pretty much very not shiny. But looks nice
 
@PeeHaa Wow! The lack of shine is amazing!
;)
 
:P
 
@BenjaminGruenbaum why should one object that? you for sure will be able to get quite some information that way, I don't think it's wrong to do it that way.
 
@NikiC @ircmaxell I measure about 10^4 instructions difference of a total 8*10^9
 
5:33 PM
that's not bad
 
@hakre some people like people to not dig in their past messages or emails although the they're public and I want to respect that :)
 
@ircmaxell 0.0001% … yeah. like … not measurable.
 
@bwoebi where did you add the additional checks?
 
@NikiC EX_VAR()
 
@BenjaminGruenbaum well you should ask for review before release anyway if you're concerned about that.
 
5:34 PM
and what code did you test?
 
@NikiC Zend/bench.php
It's doing tons of variable ops
 
@hakre I will :)
 
@bwoebi what's the relevant diff?
 
+#define ZVAL_DIRECT(z) ((UNEXPECTED(Z_TYPE_P(z) == IS_INDIRECT)) ? Z_INDIRECT_P(z) : (z))
-#define EX_VAR(n)                              ZEND_CALL_VAR(execute_data, n)
-#define EX_VAR_NUM(n)                  ZEND_CALL_VAR_NUM(execute_data, n)
+#define EX_VAR(n)                              ZVAL_DIRECT(ZEND_CALL_VAR(execute_data, n))
+#define EX_VAR_NUM(n)                  ZVAL_DIRECT(ZEND_CALL_VAR_NUM(execute_data, n))
 
@bwoebi okay ... so best measure with wp and if the diff is just as small ask dmitry whether its okay
 
5:38 PM
But just 10^4 ops is weird for Zend/bench.php … But I have exactly the same branch, compile options etc.
 
@bwoebi did you do a rebuild? after all it's a header change
 
Sigh… WP requires me to set a database up… [I mean install mysql]
@NikiC yes
else there were no diff I suppose.
But I don't trust my numbers here…
Can you please try yourself? @NikiC ?
It doesn't look right to only have that a small change… I expected more like a 0.02% change or so…
 
 
2 hours later…
7:25 PM
"conditional expectation onto a maximal Abelian subalgebra of the algebra of all bounded operators acting on the given Hilbert space"
@bwoebi yeah can test it
 
@bwoebi tilded isn't a word, I say T_CLOSURE_ARROW or T_TILDE_ARROW
or T_SQUIGGLE_ARROW maybe (not a ridiculous name as it's very literal)
 
@Andrea I'm aware… ^^
 
> /* return by reference */
NO
BAD @bwoebi
BAD
 
T_JIZZ_ARROW
Cannot be unseen
sorry
 
I just won't call it T_SPERM_ARROW
 
7:29 PM
oh wow
reddit has so many reasons ==> is better than ~> and they're all very convincing
 
Yeah there are actually really decent opinions in there
 
@PeeHaa damn… I just looked up what jizz means … -.-
 
@bwoebi :P
 
T_RACING_TADPOLE
 
lol
 
7:31 PM
@bwoebi lowl
 
Also
People saying that closures have to copy by-reference are wrong
 
@Andrea Well ideal would be by-var
 
Obviously, then, Haskell has no closures, nor does yolisp, I guess.
@bwoebi what you want is a chain of scopes, but PHP has no such concept
So the best you can do is just copy, which happens to match the behaviour of closures in a language without mutable variables
 
@Andrea not sure what you mean?
 
@bwoebi PHP doesn't have scope hierarchies
There's just one scope the function has.
There's no parent scope, no sub-scope.
This is unlike most languages
 
7:37 PM
No… we won't have a parent scope with short closures, but shared scope
 
In JS, a function created within an outer function has access to the outer function's scope
@bwoebi that's awful
the closure needs its own scope
it shouldn't pollute the parent's
In C, a function defined within a file has access to variables in that file
In PHP, neither is true
 
@Andrea global?
 
In PHP, a function has access to absolutely nothing unless it is explicitly imported (global or use)
@bwoebi but globals aren't implicitly in-scope. They must be imported.
And it's an import. global $foo; is actually just static $foo = &$_GLOBALS['foo'];
Actually, this isn't quite true. PHP has special superglobals which are implicitly visible
And there's also $this
But aside from those, PHP doesn't have any scope inheritance whatsoever.
 
And why can't we introduce it with short closures?
 
Oh, another example of scopes: In C++, C#, Java and the like, methods on an object have the object's property scope accessible
@bwoebi you'd have to rewrite the Zend Engine :p
Well, maybe not, but I don't think we should change this behaviour, it's not a bad one
 
7:41 PM
@Andrea no, why? We have a way…
 
@bwoebi Yes, but you'd have to change a lot of stuff to do it
 
@Andrea PHP can do lexical fetches and local fetches.
@Andrea It's not that bad. I don't expect a diff bigger than maybe 100-200 lines
 
@bwoebi ...huh?
 
@bwoebi ah, I wasn't able to benchmark this
 
Also, scope inheritance introduces new challenges
For example, you now need to garbage-collect scopes
 
7:43 PM
@NikiC why?
 
Have fun.
 
@bwoebi Because the resulting build is totally broken
And I wasn't able to run WP
Actually, it was so broken that it crashed valgrind :D
 
@NikiC nice xD
@NikiC it was able to run bench.php ^^
 
@bwoebi If I run Zend/bench.php I get a bunch of warnings and a fatal error
so, I suspect that maybe something was off with your build?
 
@NikiC yes, you need to comment out matrix().
but that's not because of my build.
 
7:45 PM
Also...
functional programming rocks and immutable all the things
so having mutable scope inheritance, why bother
p.s. can haz tail-call recursion? kthx
 
@NikiC I get that error too with current master
 
@bwoebi you do?
I don't
 
awwwww shiiiit
I forgot to run buildconf
so, it built the objects from the wrong directory…
 
Reproduce code:
---------------
ereg('posix')

Expected result:
----------------
success

Actual result:
--------------
the single worst mistake php has ever made
ahahahaa
I am laughing. In real life.
 
@bwoebi :)
 
7:49 PM
@Andrea not that funny :x … oh you were referring to the bug report
 
@Andrea hehehe
\o/ finally I have CI set up
 
@NikiC I get an IS_INDIRECT in an ASSIGN_DIM … weird.
 
@bwoebi yeah, the VM uses indirects internally with IS_VAR
you should patch only the cv getters
also EX_VAR is used for RESULT opcodes as well, which you also don't want want to check
 
oh. oh…
totally forgot about VAR… also using EX_VAR
 
everything uses EX_VAR ^^
apart from CONST
 
8:01 PM
yes true… then I probably have to patch the single getters in zend_execute.c
 
What is a good name for an object method that doesn't exist but is callable via __call?
 
Well, I'll try to build a full patch this night…
But now… hungry.
 
@bwoebi just had diner ;)
__call is the magic method, but the method called is the ??? method?
 
<- just used the xor logical operator for the first time ever
 
To be xor not to be (Shakespeare) - To be or not to be (Heisenberg)
 
8:10 PM
I wish PHP had ^^
it's useful sometimes
though, actually, you can do the same thing with !==
if (a === b ^^ a === c) is the same as if ((a === b) !== (a === c))
 
:'(
 
8:25 PM
@Worf hmm?
 
nostalgia time
btw, this makes my eyes water youtube.com/watch?v=R-EUDBV6Kmo
 
@hakre God yes
 
@PeeHaa I just watched it in full and I remembered. These sounds FTW,
 
Reminds me of my FT2 times
8 freaking tracks!!!!111
:P
 
8:30 PM
X-Wing
X-Wing is a game I never figured out how to play properly, but I did happen to have the floppy disc version of it for some reason
 
posted on May 02, 2015 by PeeHaa

PeeHaa/Minifine v1.0.0

 
@PeeHaa loved it.
 
Hm, I had already forgotten how little useful features 5.4 added
 
It's just insane what people pulled of with applications like that
 
8:47 PM
the most important part with 5.4 was the new release rhythm IMHO. And perhaps short array syntax ^^
 
And array dereferencing
And short object creating and calling thing
 
@ziGi you should be able to create rooms again.
 
@hakre yeah, short array syntax is the only important bit
 
Guys can ya take a look at my problem and help me find a solution to it?
 
morning
 
9:00 PM
haha, its night here lol
 
@NikiC 5.4 -> short array syntax, 5.5 -> opcache
5.6 -> ...
 
@kelunik Molrning o/
@FlorianMargaine 6.0 unicode!
 
@NikiC for sure the one I use most often from the 5.4 set. Another good thing was to switch to UTF-8 per default at the many places.
 
@PeeHaa I meant spread operator, but sure
 
BTW, @kelunik where are you from?
 
9:02 PM
@GourabNag Germany
 
Oh that why, I am from India so it's 2:33 AM here
 
@GourabNag Doesn't make any difference in UGT.
It's 11:04 PM here. ;-)
@FlorianMargaine use function.
 
NICE!
 
hi :)
From the irc channel:
> Joyce: I am trying to implement the prototype design pattern in my extension. Is there a zend function equivalent to the clone operator in userland?
 
THANKS HAKRE, it helped a lot
 
9:15 PM
Caps lock is cruise control for cool...
 
@GourabNag cheers! and here is a must read for SimleXML: Basic SimpleXML usage
 
Hello c:
I need to force apache to work with an invalid http request
That is
GET http://www.example.com HTTP/1.1
Host: http://www.example.com
nevermind got it
bye bye
 
Anonymous
bye
 
back
I need to use
Set-Cookie: JSESSIONID=12345678987543FABCDEF346753577.xzy; Path=/; HttpOnly
instead of
Set-Cookie: PHPSESSID=pvmak8p83t02o3na87d98suea3; path=/
 
@NikiC Closure $this binding.
 
9:31 PM
I guess I'll need to build a custom session handler
 
@AustinBurk I would suggest just reading the official docs instead about sessions instead
 
@PeeHaa Instead of _____?
 
1 min ago, by Austin Burk
I guess I'll need to build a custom session handler
hint you are looking for cookies not sessions in specific
 
Is there a way to use JSESSIONID, etc, HttpOnly?
 
1 min ago, by PeeHaa
@AustinBurk I would suggest just reading the official docs instead about sessions instead
So yes
 
9:33 PM
I need to bind the user info to $_SESSION though
ok
 
1 min ago, by PeeHaa
@AustinBurk I would suggest just reading the official docs instead about sessions instead
47 secs ago, by PeeHaa
hint you are looking for cookies not sessions in specific
 
okay okay
at least I can set the session cookie myself this time around
sure am sick of having to have another server do it, irreliably
so I need to replace PHPSESSID with JSESSIONID... can I do that with session_set_cookie_params ?
reads
this is why I love PHP
 
:)
 
Anonymous
??
 
Anonymous
9:44 PM
who's watching the boxing match tonight?
 
Anybody here plays clash of clans
??
Bye, guys gotta go to sleep!
 
Anonymous
bye
 
Anonymous
@Fabor ping
 
Hello @samaYo
 
Anonymous
seen age of ultron yet? I Need to know if it's cinema / pirate worthy.
 
Anonymous
9:52 PM
It't almost 20 bucks here to watch a movie :/
 
purchase-worthy
ftfy
 
Anonymous
I ain't payin that much unless it is awesome.
 
:/
session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /var/www/lib/functions/function.altSession.php
I need a period in there
I need a session ID like this:
D8E4A22384684EBEA6182B16DB4528F9.abc
continues googling
 
10:08 PM
@samaYo $20?
 
I can get a comma but..can I regex the set-cookie on its way out?
 
Anonymous
@iroegbu yeah
 
Anonymous
in a cinema
 
that's too expensive
 
Anonymous
Well, Switzerland is too expensive.
 
10:12 PM
~7.5$ here
 
Anonymous
US?
 
No, Nigeria
 
Anonymous
Oh, I didn't know there were cinemas in Nigeria.
 
Anonymous
Or why there would be one, but good to know I guess.
 
@samaYo Why shouldn't it?
 
Anonymous
10:17 PM
Because it is far cheaper and convenient to buy the CDs.
 
Anonymous
I'm speaking from experience, as a once-satisfied client of some Nigerians.
 
@samaYo I've not seen it but I would assume it's cinema-worthy. I base that on how it looks on the big screen rather than the quality of the story-telling.
I can watch a good plot at home in the quite comfort of my own living room. But big explosions and effects are for the cinema.
 
10:47 PM
Did someone break signal handling in current php master?
 
10:57 PM
Hey guys. I'm learning about web development and I have already taught myself a large portion of HTML and CSS, as well as some jQuery. I am beginning to create a site that I would like to use PHP with. I am not using a server or anything, just loading the HTML files from my computer/ C drive. I want to use include statements because my site is going to have quite a few pages. I am really struggling to find helpful information at this point. I want to know how I can begin using PHP.
I haven't installed anything. I am assuming I need to install PHP and possibly some other software to begin. Could someone please help me out?
 
Something like wampserver.com/en would be a start
 
Can anyone tell me if tis is a good idea? pastebin.com/EtNmm7my#
 
@Danack Do I need a server to use PHP or can I just use it off my computer/C drive (or however you would say it)?
 
@AshSimpson global is evil
 
Show met a better way
then
!!google better way of global php
 
11:07 PM
@AshSimpson you pass it as a parameter
although I don't really see the point of your structure...
 
@AshSimpson not sure what you are trying to do but you can use ArrayAccess to make this easy to use and avoid globals e.g 3v4l.org/CRdJZ
 
@Jacob Yes, if you want stuff to appear in a browser, that requires a webserver to handle the requests and pass them over to PHP.
@AshSimpson It appears you are wanting to do dependency injection - aka passing parameters github.com/rdlowrey/auryn
 
Container also should be injected so no point
 
11:34 PM
0
Q: PHP fgetcsv function not processing CSV properly

JamesUpon uploading a CSV file through POST to my PHP script, I want to cycle through each record on the CSV file. This current code is infinitely looping, even though the CSV I'm submitting has fields seperated by , and new rows seperated by a new line. while(($line = fgetcsv($file,0,',','\n')) !==...

Anyone know how to process CSV properly in PHP?
@Jacob (MAMP for mac)
 
11:56 PM
@James What do I use for Windows?
 
@Jacob That'll give you apache web server, MySQL for databases and PHP
 

« first day (1659 days earlier)      last day (3292 days later) »