« first day (1416 days earlier)      last day (3537 days later) » 

8:06 PM
@ircmaxell I hope it was a warm day today
(for her sake)
 
anyone can explain this? 3v4l.org/Y1CPS
 
I haven't missed anything obvious, right?
 
@FlorianMargaine Yes. That causes the foo property to be retrieved via __get(). This does not (and cannot) return a reference, so the data cannot be modified
 
@DaveRandom it was
 
8:08 PM
The engine spots this and warns you about it
 
@JoeWatkins You around?
 
@DaveRandom does it?
I just see NULL in the 3v4l :P
 
Look at the not-HHVM output
 
oh no, didn't see all the outputs
yeah
my bad
bugs.php.net/bug.php?id=67899 is kind of irrelevant then...
 
@FlorianMargaine it's possible to work around this by storing something that implements ArrayAccess in the foo property, because this causes __get() to return the instance
 
yeah; but the bug is specifically related to $arr[] = $newElement
 
@FlorianMargaine Yeh that makes no sense. You are pushing a value to an existing prop, __set implies you are replacing the whole value
 
Hey, what is the format for ZEND_VM_HANDLER? I can't find its definition.
 
@FlorianMargaine I added a comment and marked it NaB
 
@LeviMorrison README.ZEND_VM
in zend_vm_gen.php line 1091, you see that it just scans the file for ZEND_VM_HANDLER(...) and uses that
@DaveRandom cool
 
8:21 PM
lol
 
fopen_wrappers.c... I don't think I want to dive in there
 
@ircmaxell where are you btw? What's going on that triggered sporadic public nudity?
 
wanted to check out this one bugs.php.net/bug.php?id=67944
but... #if defined(PHP_WIN32) doesn't make me want to keep going ._.
 
Ummm... that also doesn't make a whole bunch of sense, .htaccess is an Apache construct, doesn't actually have anything directly to do with PHP
Although the fact that the func/file name and line no is Unknown is suspicious
 
hm
it means that apache is giving these paths to php then?
how come php even wants to read the .htaccess
 
8:27 PM
Well that's just it, sounds like he's got his server configured in a really weird way
although there is some PHP-based htaccess emulator iirc, 1 sec
Oh it's the .user.ini thing I was thinking of, looks like it doesn't apply to fpm
 
commented on the bug
this one is a serious one though bugs.php.net/bug.php?id=67934
reproduced on php-5.6 too
rob.lowcock...
 
@FlorianMargaine <facepalm> bug is reported against the htscanner PECL ext :-P
 
@DaveRandom ... great ._.
and I can't delete comments :P
best thing is to add another one, heh?
 
yeh probably, I can't delete them either
@FlorianMargaine I wouldn't screw with date stuff, personally, almost entirely black magic powered
 
@FlorianMargaine Is it me, or is the DateTime stuff flaky as fuck?
 
8:36 PM
@Danack heh
 
However I think I know why that particular bug occurs, it's because those properties are only created when you serialize it in some way (json, serialize, debug output like print_r, var_dump)
 
@DaveRandom this one sounds more related to object references than datetime specifically
 
The properties aren't actually declared on the class iirc, they are sort of expando properties
 
@DaveRandom uh? why does that make sense?
 
yeah same as the magic to string kinda thing
 
8:37 PM
@DaveRandom .... well, let's just say: php?
 
@FlorianMargaine not saying it makes sense, just that I seem to recall that's the reason for it
Or... maybe they are only created when you access them or something? It's possible that would screw with empty(), not sure how the handler works
Need to go do some washing up, brb
 
are there people who can cv on programmers.se here?
 
@FlorianMargaine if you are looking for a simple-ish patch you can work up, you can do the thing I've been trying to find time to do for a couple of weeks if you like - make DOMDocument::saveHTML() accept a DOMNodeList as well as a DOMNode so you can export the children of a node without wrapping it in the node itself
There's no ticket for it but I can make one in a bit if you like
 
sure; that sounds nice
 
10
Q: Why can't I access DateTime->date in PHP's DateTime class? Is it a bug?

okeyxyzUsing the DateTime class, if I try to run the following code. $mydate = new DateTime(); echo $mydate->date; I'll get back this error message Notice: Undefined property: DateTime::$date... Which doesn't make sense because when running var_dump() on the variable $mydate, it clearly shows that...

 
8:46 PM
10 mins ago, by Danack
@FlorianMargaine Is it me, or is the DateTime stuff flaky as fuck?
 
@FlorianMargaine just so you know, the correct way to fix that one is ensure that the properties never show up ;)
 
@NikiC looks like so according to bugs.php.net/bug.php?id=49382
@Ja͢ck I guess bugs.php.net/bug.php?id=67934 should be closed then
and lol, jack and nikic coming back at the same time :P
 
;-) just woke up
 
@FlorianMargaine I got this far with it: github.com/DaveRandom/php-src/compare/feature/… - basically I have done no actual work on the logic but you can see where to start from that diff, just need to generate a sane error message when both zpp calls fail and write some logic in the new else if block
really going to do some shit now, bbiab
 
@DaveRandom keeping the tab open, I'll see tomorrow
 
8:57 PM
\o/ @Jack is back!
 
heh
@LeviMorrison hey, how's the porting going?
 
I'm writing a vm opcode handler and have no idea what I'm doing:)
 
awesome!
 
Seems like EX(func) would get me the currently executing function?
 
Is there a better idiom that this to convert a zval* to a string safely?
@LeviMorrison You're looking for EX(function_state).function I assume?
 
9:12 PM
...what's the difference between that and EX(func)->op_array?
 
not sure :)
 
9:31 PM
@Ja͢ck So... how do I emit an opcode, exactly?
 
@Ja͢ck using phpng
 
@NikiC lol
@LeviMorrison get_next_op
that's the 5.6 ref, assuming it hasn't changed much yet
@NikiC i've written a small macro convert_to_string_copy() that makes it somewhat more palatable :)
 
9:48 PM
@LeviMorrison Using zend_emit_op, most likely
 
Right, but that seems to return an opcode.
How do I insert it or whatever?
Or does it emit it and just give you a reference?
 
@LeviMorrison it already is inserted
the return value is only there if you need to do additional changes, likes set an extended value
 
Okay.
 
Please guys help me, I have built a chat website project using ajax, And I have published it since 2 months to test it, But I faced a fatal problem made me close the site
Because of using ajax a big load accrued to the server, and it wasn't able to continue, so I developed my project and used websocket.
But I'm afraiding from the same issue. How can I calculate what my server could handle using websocket?
Or what should I do to avoid that problem ?
 
because of ajax, a big load?
oh my.
 
10:00 PM
@AustinBurk there was 800+ online user using the site, and every opened conversation sent a request every one second
 
every second?
Are you sure it needs to be every second?
 
So what about:

- changing request rate to something like three to five seconds
- Database query caching
- Using something like JSON to reduce result size, if you can
- Running your database on another server
- Caching (like, a Varnish server)
 
@LeviMorrison Do you have any way to get new messages without sent a request every a period of time
 
@Ahmad oh
 
@Ahmad Use websockets, so the server can send the message without the client asking.
 
10:03 PM
@LeviMorrison So I said at end of my message that I'm using websocket now, but I want to avoid the previous problem
 
Measure your bottlenecks and fix them.
 
Something I've set up for my web service is dynamic refresh rates based on current server load
 
There is no magic sauce to pour over the problem.
 
@AustinBurk
I was using
@AustinBurk
- Database query caching
- Using something like JSON to reduce result size, if you can
- Caching (Custom)
 
So, I heard there's now more mysql_* examples on the internet than there is pornography...
 
10:07 PM
Ok lets avoid talking about ajax,
Is seeing memory usage good way to see how my work is going ?
 
let's change that
.
.
.
more mysqli examples needed
 
I tried to connect 200 connection to chat channel and the memory usage was 11MB
 
@Ahmad whoa, how'd you get it so low
 
@AustinBurk sorry I don't got what you mean, is this number big ?
 
200 socket handles are what.. 1600 bytes? :D
 
10:10 PM
@Leigh I haven't got a clue what I'm talking about, carry on
 
Shit to my english :D
 
I got no idea what you're talking about either. I just saw arbitrary numbers, and couldn't help myself
 
So talking me in arabic, hehe
@AustinBurk Please answer me, is this number big (11mb of 200 cocurrent connect)?
 
for high concurrency
1) don't use ajax
2) use websockets
3) if you hate your users use flash sockets
and then obviously you need a daemon to manage those websockets, nodejs is probably a good option
 
I'm using websocket, and flash sockets for the non-websocket support browsers
 
 
1 hour later…
11:25 PM
@Ja͢ck Don't update NEWS/UPGRADING in master if it is already in 5.6
 
11:52 PM
ah .. duh .. yes, of course
 
@NikiC question about my other PR, will ZVAL_NULL(getThis()) in a failing constructor trigger the object storage to be correctly freed? (perhaps on GC?)
I did valgrind and got no leaks, but want to be sure
 
@Ahmad, are you using a JavaScript library for your chat app?
There's libraries that will choose the best available transport option, depending on what the user's browser supports. I've not used it, but I think socket.io will fit the bill.
 

« first day (1416 days earlier)      last day (3537 days later) »