« first day (1270 days earlier)      last day (3669 days later) » 

12:42 AM
How come isset and empty show same opcode, is it because optimizer is enabled? @ircmaxell
 
They do?
 
ZEND_FETCH_IS
ZEND_ISSET_ISEMPTY_DIM_OBJ
ZEND_FREE
But, of course, I might be totally wrong as I have no idea.
 
Yeah, looks to be the same opcode
Dunno
 
:)
I better not get into this s*.
 
user895378
1:07 AM
Um ... newsflash: if you deployed PFS in your encrypted server LIKE YOU'RE SUPPOSED TO then the heartbleed thing isn't a very big deal.
 
I have no idea what you're saying.
 
user895378
Basically it came out today that newer versions of OpenSSL have a bug that can compromise the private keys of roughly one third of the servers on the internet.
 
user895378
Probably hundreds of thousands (millions?) of certificates will need to be revoked and reissued :)
 
user895378
It's kind of a huge deal. But not if you used cipher suites capable of ephemeral key agreements and disabled session tickets in your server.
 
user895378
1:23 AM
Because in that case a compromised private key can't be used to decrypt prior communications.
 
user895378
The problem is that most very old browsers won't have supported ciphers using ephemeral key agreements. So servers configured to service the largest number of users (while compromising security by allowing outdated clients to connect "securely") were likely still affected.
 
user895378
^ Which is another case where subsidizing the refusal/inability of users to upgrade hurts everyone.
4
 
How would I put ($by_cat == 23 || $by_cat == 24 || $by_cat == 37 || $by_cat == 38 || $by_cat == 40) in an array and just do it if($array) {}
 
user895378
$list = [23, 24, 37, 38, 40];
if (in_array($number, $list)) {
    echo "number is in the list!";
}
 
user895378
I guess I need to check and see if PHP's client/server TLS encryption is affected.
 
1:31 AM
What is that $number
 
user895378
Sorry, replace $number with $by_cat
 
thanks
 
user895378
np.
 
user895378
I don't know whether or not the heartbeat extension is enabled automatically in PHP's encryption routines. I don't think so, but I'll check.
 
issue with $list = [23, 24, 37, 38, 40];
 
user895378
1:34 AM
@Rocks I mean this as politely as possible, but I'm not your personal code machine.
 
morning room :)
 
user895378
morning :)
 
haha that's right
 
user895378
array(23, 24, 37, 38, 40);
 
user895378
@Rocks try that instead ^
 
1:37 AM
that's better, great
 
If you haven't upgraded to 5.4, now's your chance :)
 
user895378
@Rocks That means you need to tell your hosting service they need to upgrade your PHP version.
 
user895378
Because 5.3 is the last version that required array() and it's very old and will no longer be officially supported by the PHP Group as of July.
 
I on localhost, I thought xampp 1.8.2-2 has 5.4
 
user895378
Whatever you're using isn't 5.4 if you have to use array(...) to make it work.
 
user652649
1:40 AM
15 mins ago, by rdlowrey
^ Which is another case where subsidizing the refusal/inability of users to upgrade hurts everyone.
 
user895378
@Wes yup.
 
user652649
i sometimes wonder how web managed to evolve so quickly
 
Thanks for the info
 
@rdlowrey Hmm? Who's being subsidized? You mean customers aren't voting with their wallet?
Oh, scrolling up :P
 
user895378
I mean servers subsidizing users with severely outdated browsers.
 
1:46 AM
This is the heartbeat overflow issue you're talking about?
 
hello all!
 
user895378
@Jack yes
 
What's that used for anyway?
 
user895378
$ openssl s_client -connect 127.0.0.1:1443 -tlsextdebug

CONNECTED(00000003)
TLS server extension "renegotiation info" (id=65281), len=1
0001 - <SPACES/NULS>
TLS server extension "session ticket" (id=35), len=0
TLS server extension "heartbeat" (id=15), len=1
 
user895378
^ That's connecting to a php server running 5.5.6
 
user895378
1:47 AM
Which means this:
 
user895378
:(
 
lol
 
user895378
So that means previous versions of PHP are almost certainly affected.
 
user895378
Need to check and see if clients are affected.
 
user895378
Someone named @rdlowrey might be spending some time creating heartbleed security fixes over the next couple of days.
 
1:50 AM
@rdlowrey Oh, been meaning to ask you .. how is your project different from reactphp?
 
user895378
reactphp provides abstractions for dealing with event-driven and non-blocking code.
 
I'm wanting to create a MySQL table to store the listing order of certain ids. Question: What would be the best way to go about inserting/updating/deleting an entry in this table, while maintaining the same listing order?
 
and yours is full blown web server? :)
 
user895378
Yes. With comparable features to things like nginx/apache/etc.
 
gotcha :)
 
user895378
1:53 AM
The (my) issue with react is that while it's got lots of nice abstractions ... coding these things in userland is far too slow to compete with compiled technologies.
 
Ex: 1) Orange 2) Red 3) Blue 4) Green 5) Purple ----- I want to now make Purple be #3 ---- This is somewhat hard to word correctly, lol
 
@rdlowrey Though, fast enough to beat jQuery heh
 
user895378
Not sure how these are comparable?
 
@Daniel Add a sort order column field.
 
user895378
Or are you just making a funny :)
 
1:54 AM
I'm semi serious
Was watching a video of phpuk
 
user895378
Also, the react event loop (the one place where my stuff overlaps with react) is missing some critical features that are absolutely imperative if you want to write a serious server.
 
Oh sorry ... lol
I meant node.js
 
user895378
oh, okay. Yeah, node.js slaughters any kind of performance you'd get using a react stack.
 
gawd, why did i write jquery hah
 
user895378
Yeah I was confused :)
 
1:57 AM
Right @jack, that's what I'm thinking too. So basically I'll need to shift the values of all greater/lower fields in the sort order column up/down based on insert/delete?
 
Yeah
Hmm, how many 1.0.1 releases have there been ? =/
 
user895378
Of openssl? I gave up trying to make sense of their crazy version number system long ago.
 
haha
Time to purchase a support contract lol
 
user895378
@Jack do you have a 5.4 version + openssl installed right now where you could copy/paste a quick script for me?
 
I can check out PHP-5.4 branch :D
 
user895378
2:00 AM
meh, don't worry about it. I can do that too :)
 
user895378
was just being lazy.
 
My dev machine only has a single working copy of php-src heh
Which is no big deal, really.
 
user895378
yeah same. I just compile whenever I need a different version.
 
My machine at home has all versions in separated directories.
 
@Jack do you build php from source code?
@Jack do you build php from source code?
 
2:02 AM
Did I hear an echo? :)
 
user895378
@Jack @Jack @Jack
 
I only build it when I need to run unit tests.
@rdlowrey @rdlowrey @rdlowrey @rdlowrey @rdlowrey @rdlowrey @rdlowrey
 
@rdlowrey just upgraded to php 5.5.9 on xampp and still gives an error when using $list = [23, 24, 37, 38, 40];
 
Must be standing wave ^^
 
user895378
Sorry, was channeling my inner @PeeHaa @PeeHaa
 
2:03 AM
lol
 
user895378
@Rocks Then your xampp is not using the right version of php
 
actually I tested that with phpinfo()
 
user895378
var_dump(PHP_VERSION);
 
@rdlowrey My first zf pr :D :D
 
user895378
oh lord
 
2:05 AM
i take care of my babies heh
 
user895378
Dangit.
 
user895378
TLS client extension "heartbeat" (id=15), len=1
 
supplies!
 
user895378
^ PHP clients also vulnerable.
 
Yeah, that's what the advisory says :)
I wonder how they found out heh .. surely not by reading the code line by line ;-)
 
user895378
2:35 AM
PSA: if you use #PHP stream encryption with OpenSSL 1.0.1 through 1.0.2-beta you ARE affected by #heartbleed var_dump(OPENSSL_VERSION_TEXT);
2
 
user895378
^ Please RT that for great justice.
 
A good reason to stick with 0.9.8 lol
 
3:23 AM
Evening, gents.
 
user895378
3:34 AM
evening
 
I found a slightly different way to do the hotplate problem that is much easier to maintain and change, and I suspect it will be faster in the PHP implementation (it's just as fast in the C/C++ impls).
Exciting!
 
@LeviMorrison And does it play nice with SplFixedArray? :D
 
Eh, just as nice as the previous impl.
 
Yeah, well, couldn't get it running the last time I've tried heh
Just read through the Cache PSR ... looking fairly decent :)
 
user895378
Does it still have pointless logging methods in the caching interface? Because that's terrible and has no business in a Caching standard.
 
user895378
3:49 AM
@LeviMorrison woah! That's quite a thing.
 
Nope, don't think so :)
There's currently the collection concept, though, which will probably be removed soon judging by the discussions.
 
user895378
Do you have a link? These things are always impossible to find with the google.
 
user895378
<?php
namespace Psr\Cache;

interface InvalidArgumentException {}
 
user895378
^ Why?
 
3:54 AM
I ehh yeah, it pisses me off every time.
 
user895378
<?php
namespace Psr\Cache;

interface CollectionInterface extends \Traversable, \ArrayAccess {
    public function save();
}
 
Psr\Log has it too.
 
user895378
^ Why?
 
@rdlowrey Yeah, so that gets removed soon.
 
user895378
Could because that breaks every class that uses a save() method
 
3:55 AM
 
user895378
The problem for me is the ItemInterface ... you assassinate performance when you require a userland object + accessor methods for every single cache entry.
 
user895378
The whole point of caching is to improve performance.
 
user895378
Interoperability is nice, but not at the expense of performance (IMO).
 
If that affects your performance, you're in damn good shape :)
 
user895378
It does. Small effects add up in a large application.
 
user895378
3:57 AM
And PHP has a really fast cache mechanism built in:
 
user895378
isset($cache[$someKey])
 
user895378
And it's already an iterable "collection"
 
Sure, and what happens if you migrate to memcache?
Not saying this should be used for all ze zings.
 
hello
 
user895378
@Jack I understand the benefits of object orientation, of course :)
 
3:58 AM
But something can be said for the flexibility of this approach.
 
[tag: cv-pls] this needs attention: stackoverflow.com/questions/22926887/…
 
@rdlowrey Especially because InvalidArgumentException gives you no reason why it is invalid.
 
@mmmshuddup You want us to close an answer?
 
user895378
@Jack Certainly. But I get annoyed when people start telling you you're "doing it wrong" because you aren't using the PSR.
 
user895378
And they do/will.
 
3:59 AM
@Jack sorry I fixed the link.
 
@LeviMorrison It always irritates me when PhpStorm picks that InvalidArgumentException over the standard one =(
 
no, but I did actually flag that answer as it is blatant plagiarism of the accepted answer on the dup
 
@rdlowrey Ah yes, I doubt you'll be able to avoid such debate :)
@mmmshuddup Good :)
 
user895378
The correct answer is "I know what I'm doing and I don't have to rely on other people to write good code for me. You use your slow interoperable code and I'll continue solving problems."
2
 
4:02 AM
ahh the infamous PSR debate :P
 
user3427568
38
Q: What is the difference between isset() and __isset()?

Lal krishnan S LI need to know about magic function __isset() and normal function isset(). Actually what is the real difference between php language construct isset() and php magic method __isset() ? When I google it they told that __isset() is a magic function. What are difference between common php functions ...

 
user895378
@mmmshuddup It's not a debate; it's dogmatic proselytizing.
 
hmm that's a big word (referring to "proselytizing")
 
@rdlowrey I don't think you qualify as the intended audience, being on the front line of raw undiscovered performance and all.
 
not sure I can even pronounce that one :)
@rdlowrey but yes you're right. people have become religious about that! I couldn't agree more
 
user895378
4:05 AM
Yeah it only bothers me when someone starts trying to evangelize me. My eyes glaze over and I just start nodding.
 
lol I know right
 
user895378
And I want to say, "yes, I used to be just like you."
 
it's that mid-20s "I-want-to-be-heard" phase :P
 
user895378
"In a year or two you'll realize that much of your OOP panacea is just snake-oil."
 
It's a bit like frameworks I suppose.
 
user895378
4:06 AM
It's exactly like frameworks :)
 
At some point you just do without.
 
I like some frameworks.. some and sometimes
 
Getting something off the ground quickly is typically the reason.
 
yes. and they're great for that
 
Indeed, or rather, if they're not ... well, you know :)
 
4:07 AM
well and especially for me and game programming (which I am learning). it helps me a lot :)
lol yes
 
user3448187
quick question: what comes first "use"'s or "requires" and why
 
it's ironic.. the PSR thing was actually what turned me off from uisng Zend Framework 2.. after a long time of using version 1. it just seemed so bloated and over-engineered
namespace comes first
 
user3448187
hm
 
Which one?
 
user3448187
why may I ask
 
user895378
4:10 AM
> so bloated and over-engineered
 
user895378
^ that
 
user895378
You can't spell "popular PHP dev" without "overengineering"
 
Not sure if that's a direct consequence of PSR, though .. is it?
 
user895378
I dunno. Regardless of the cause it's the current reality.
 
@rdlowrey I know right! there is something to be said about just getting the job done
everything in moderation my friends
 
user895378
4:12 AM
@JoeWatkins Do I have userland access to the information in the _pthreads_error struct that results from fatals occurring inside a Stackable task executed by a worker? Like could that be stored in a property of the worker (or something) so that the next stackable task could determine how/if the last task fatal'd out?
 
Just yesterday I had to download 100+MB to fix a 5.6 version issue in ZF2 =/
 
user895378
Wat
 
That's the size of their Git repo.
 
lol
 
I mean, sure, that's all of the history, but still ...
 
user895378
4:13 AM
Yeah git repos can get pretty big once a project has been around for a while.
 
that's a lot of code :O
 
And for some reason they don't ship a ZF2 release with unit tests inside
 
I mean some of their ideas were great in ZF2..
but like.. events? c'mon man. it's a glorified observer pattern and doesn't really truly apply to PHP
 
user895378
@Jack Well that's understandable (to me) ... a release isn't really for development.
 
@rdlowrey Yeah, but .. wouldn't it be nice to ship a debug release too?
 
4:14 AM
@rdlowrey good point there
 
user895378
Oh man I like this @mmmshuddup character :)
 
debug release .. bit of an oxymoron heehee
 
:)
I like you guys too :)
 
user895378
Room 11 is the one place where I can complain about annoying cult-of-PSR people (among other things) and not have self-righteous noobs shout me down.
 
LOL
 
user895378
4:16 AM
People grab the torches and pitchforks if I even think about browsing /r/php ...
 
oh man I busted out laughing on that one
 
user895378
Lately @JoeWatkins is in the same boat with reddit :)
 
who is that?
pardon my ignorance
 
reddit? what's that? hahaha
 
user895378
Joe wrote the pthreads extension.
 
user895378
4:17 AM
Among other things.
 
oh snap
that's quite the contribution
 
user895378
He has hands in the forthcoming phpdbg SAPI module in 5.6 as well
 
yeah, very nice stuff that
 
user895378
He's a great all-American asset to the PHP community. Except he's British.
 
oh man.. I'm still using 5.3. :( hahah
 
user895378
4:18 AM
But we let that slide.
 
user895378
@mmmshuddup BLASPHEMY.
 
I need to do something about that one of these days
@rdlowrey lol :( so many things! such little time!
and here I was all high and mighty like "yeah I'm not one of those suckers still stuck on 5.2...."
 
@rdlowrey So you're basically saying he has a better diet? ;-)
5.2? what's that?
 
lol might as well be 4 at this point
 
I wouldn't go that far
 
4:19 AM
ok ok.. :P
 
user895378
@Jack Wait, you mean the English don't eat breakfast at Taco Bell?
 
5.3 you at least get PDO and anonymous functions
 
register_globals.. :S
yes and I make nice use of both :)
as well as namespaces (although it's a slow process refactoring)
 
user895378
Only in America can you get a Waffle Taco for breakfast.
 
user895378
(gross)
 
4:21 AM
LOL ick
that's just inappropriate
 
Wow ... and I thought it was inappropriate for my kids to have pancake breakfast twice a week lol
 
lol no no. that's quite alright by comparison
 
Hey, just found out that the horizon is 0.4km further away for me compared to my wife :D
 
I guess I'm jaded. That sounds gross but I've heard of so much grosser in America.
 
@cspray truth
 
user895378
4:23 AM
I once ate a deep-fried oreo cookie at the Bloomsburg county fair in Pennsylvania.
 
@rdlowrey Was it delicious?
 
Hello guys
 
That reminds me of this poster that asserts USA will be the first attacked when aliens arrive ... according to some smart arse, that's because it's easier to kill fat pple ;-)
 
I heard about those. how was it?
 
user895378
@cspray I have a hard time remembering because it was followed immediately by a stroke and full-body convulsions :)
 
4:24 AM
lol I can only imagine
 
@Jack What if the aliens are allergic to fat? Guess we'll have the last laugh then.
 
Anyone know, how to call barcode function on Printer Epson TM-T881V using PHP?
 
Definitely!
 
hey but we're not the fattest anymore! :O
we were surpassed a year or two ago by our neighbors to the south
 
the south pole?
haha
 
4:25 AM
lol
that too
 
i reckon if you go south enough you'll end up in Canada.
 
that could very well be the premise for a fifth pirates of the caribbean
 
T_T
 
@Jack That's deep
 
yeah, sounds ridiculous enough.
 
4:27 AM
exactly
 
That upside down ship scene still ftw though.
 
lol yes I don't care how unreal or ridiculous it was. I love those movies.. sans the fourth
 
Anyone know, how to call barcode function on Printer Epson TM-T881V using PHP?
 
@user3444757 I don't. sorry. are you sure PHP is the man for that job?
 
@user3444757 I would kindly ask your printer.
@mmmshuddup PHP is the man for all jobs!
 
4:29 AM
?
 
@Jack lol I stand corrected!
pc load letter!?
don't even get me started on printers.. -.-
 
Gak jelas semua kalian
Anjeng kalian semua
babi
 
sorry I don't speak malay
 
user895378
@JoeWatkins Expanding on my error info question ... I realize I can access the error info with error_get_last() but there's no way to tell if the last Stackable::run() executed by a worker fataled out. You can call error_get_last() in the next stackable task but that can't be re-used in a dependable way because if no other errors occur you'll continually get the same fatal error info from that call.
 
user895378
Basically I just need a flag on the worker to let me know if the last task completed successfully or had a fatal error.
 
4:32 AM
Well, my new hotplate method has been translated to PHP. Rerunning.
On second thought I don't think it will do any better, though.
 
user895378
:(
 
@user3444757 hmm? who are you calling pork? ;-)
 
user895378
@JoeWatkins Something as simple as a read-only property on the Worker tied to the terminated variable value would be sufficient. Any thoughts on that?
 
@Jack I think he rage-quit
 
The reason I don't think it will be faster is because it adds another pointer operation :/
 
user895378
4:36 AM
Of course I can set a flag on the worker myself at the end of each Stackable::run() but that's error prone; I have to be sure to always set the flag any time a task runs.
 
@mmmshuddup wud, he called us dogs? pff, typical.
 
dang. that's harsh lol such passion to be used like that. what a waste
 
user895378
@JoeWatkins An alternative (preferable to me) would be the ability to register a shutdown callback at the Stackable::run() layer so I could do things myself in the event of a fatal error during the task's execution.
 
@mmmshuddup indeed, what's ironic here is that a majority of malays are afraid of dogs ;-)
 
@rdlowrey are you contributing to that pthreads extension?
@Jack lol looks like we'll have the last laugh!
 
4:40 AM
he contributes to openssl stuff @mmmshuddup :)
 
user895378
@mmmshuddup I'm only contributing wishful thinking and bug reports right now :)
 
user895378
But I do use pthreads heavily
 
oh nice!
I'm sad :( I haven't done anything in C or C++ in like 8 years
 
user895378
Between @NikiC, @JoeWatkins, @Jack, @DaveRandom and myself (all room 11 regulars) we've accounted for great deal of what you'll find in 5.6
 
user895378
M-M-M-M-M-M-EGA PINGGGGGG!!!!
 
4:43 AM
oh wow!
my respect goes out to you guys
 
user895378
pfffft, you say that now. Wait till the bug reports start rolling in ;)
 
Meh, it keeps us off the streets ;-)
 
And I am primarily responsible for the major 2013 PHP.net redesign.
 
user895378
Dude, @LeviMorrison probably puts in more PHP-related hours than any of us :)
 
And the rotating pages too? :)
 
4:45 AM
Good morning everyone
 
user895378
Of course, @LeviMorrison had nothing to do with this, so he doesn't get the ultimate respect:
 
user895378
 
LOL
omg I'm reading all of the pthreads documentation. :O
that's amazing.. really!
 
Hotplate timings
----------------
Original on PHP 5.5: 118.231632s
New on PHP 5.5: (unknown, taking much longer than 3m, sadface)

Original on HHVM: 51.419713s
New on HHVM: 44.810894s
The takeaway: Zend PHP's performance is really... finicky.
 
"What are you doing today?" "Nothing much just feeding the php elephant" "???"
 
4:49 AM
wow PHP 5.6 is gonna kick arse!
all the haters can take a walk :)
 
user895378
You think? It kind of seems like a grab-bag of lots of different stuff to me. Several solid changes but nothing terribly exciting.
 
maybe because I'm still stuck in 5.3 land?
lots of fun new features in my book. I'm stoked!
 
Yeah, PHP 5.3 -> 5.6 would get you lots of goodies ^^
 
I am stuck in 5.3 aswell
 
exactly! ugh I have to upgrade asap.
@MikeM. finally. welcome to the club lol
 
user895378
4:52 AM
Yeah 5.3 -> 5.6 would feel like a birthday present :)
 
user895378
5.5 -> 5.6 is ... meh.
 
@rdlowrey SNI doesn't excite you just a little bit, c'mon :)
 
user895378
@Jack Actually, I am pretty stoked about that.
 
yes. like a stripper popping out of the cake kinda present
:P
 
hehe
 
user895378
4:52 AM
And the peer fingerprint stuff
 
XD thanks man I just don't think I am going to upgrade my host to 5.6
 
I could easily upgrade my dev environment and actually had the chance to upgrade to 5.4 last year but I declined.. I like my dev env to mimic the production server as closely as possible you know?
so.. sadly I am holding out until I finally take the time to sit down and do all the fun upgrade stuff on the prod server
 
I don't feel like taking too much time to ask my host to upgrade I am just reselling their hosting servers xD
 
yeah I hear that too :P
 
user895378
Allright, I'm going to sleep. Catch you guys later!
 
4:56 AM
yeah I'm right behinad ya @rdlowrey
 
I don't think I am going to start a webserver until I am 20
 
I wrote a script to convert all PHP 5.2 code to 5.6 ... mv $1 /dev/null
 
nice chatting with y'all!
@Jack lol oh snap
have a good night guys!
 
Sleep well mmmshuddup I am going to head out to school xD
 
Anyone familiar with apache and nginx please take a look stackoverflow.com/questions/22927783/…
 
user895378
5:05 AM
@JoeWatkins Last thing on the fatal error handling subject ... would you be open to a PR like the following to do exactly what I need?
 
user895378
Something like adding:
 
user895378
void Worker::afterTask(callable $callback)
 
user895378
Where the callback takes arguments like this:
 
user895378
$callback = function(mixed $stackableRunReturn, bool $wasFatal) {}
 
user895378
Actually, it might be better to use a property than a method because otherwise people would probably call $worker->afterTask(function(){}) in the main thread with things that couldn't be serialized.
 
user895378
5:08 AM
Anyway, I'd like to do something like that but I won't waste my time if you don't want that sort of feature.
 
So, I just converted my hotplate to hacklang.
Using Vector so things are typesafe.
 
user895378
I'm probably going to be depressed by how fast it is ...
 
That's the kicker. It's slower by 10s!
 
user895378
wat
 
As far as I can tell, at this point HHVM does not use any optimizations from Hack, all it does it add code for typechecking!
On the plus side, HHVM is 2 times (or in the case of the new version, 100x plus) faster than Zend on this anyway.
 
5:11 AM
mornin '
 
user895378
@tereško morning.
 
user895378
Okay. I'm really going to sleep now. Night :)
 
5:47 AM
@rdlowrey I just opened my eyes, will read back in a minute ...
uk1.php.net/threaded.getterminationinfo is userland access to pthreads_error
draft your idea, it sounds okay, we'll look at it ...
@webarto oh cool, you got pastebin support ...
what happened to the form tho, it be gawn ?
 
6:37 AM
Morning
 
user3415023
good morning
 
user3415023
please tell me which folders of yii framework i need to copy in my project
 
user3415023
?
 
user3415023
mean to say i can copy all folders from framework to my_project?
 
user3415023
6:54 AM
mean to say i can copy all folders from framework to my_project?
 

« first day (1270 days earlier)      last day (3669 days later) »