« first day (1414 days earlier)      last day (3534 days later) » 

12:01 AM
thanks
 
@FlorianMargaine Perhaps you want to check out tests/finfo_buffer_variation1.phpt
 
reading it
everything that is in encoding.c...
 
I forgot something.
 
bad anatol, bad.
he should have realised something was wrong, but instead he updated the test case
 
12:13 AM
I don't see where the code is changed though
oh.
yeah.
 
it's probably in the parent commit - github.com/php/php-src/commit/…
"updated to libmagic-5.17"
I've added a comment on his commit ... i think he may be the best guy to actually fix it lol
We are both looking at it and just get lost in the magic ;-)
 
yep, good call
I'll see if I can write up some patch anyway
 
12:41 AM
What's the first moment to access the PG(http_globals) from an extension?
not sure if it is filled with data at RINIT yet?
 
@Ja͢ck \o/ Magic!
 
@bwoebi Intuitively, it should be :)
@bwoebi Probably relevant: lxr.php.net/xref/PHP_5_6/main/main.c#2287
That gets run before zend_startup_extensions();
@LeviMorrison :) magic is probably the best description for what it does ;-)
 
bbiab, gotta buy a new knife ... can't stand an incomplete knife block =S
 
Anyone got a sec, I just need some opinion on RESTful interface structure/ routing
I'm designing an REST interface, and I have 3 primary routes (internal, public, and roku) -- should my route for a device like roku be internal or should it have its own route?
for example v1/internal/roku or v1/roku
and for other devices v1/ios etc... or should that all be lopped into internal ? these will be internal endpoints only afterall
thoughts and opinions on it are appreciated
 
@ircmaxell HOOORAY!
actually, HOORAY-JIT
 
1:34 AM
@ircmaxell "This use satement is a helper to shorten the Jit call." - Typo in statement.
 
@Danack PR!!!!oneEINS
 
@Ocramius I'm not signing a CLA for the letter T.
 
I'm signing it regardless :D
 
 
1 hour later…
2:37 AM
I'm on linux. Did i need to install lampp on my PC to use PHP?
 
@AvinashRaj Yes
 
2:57 AM
'nin 11
(i worked long and hard on turning "hi PHP" into something mildly offensive)
 
@NullPoiиteя is that LAMPP or LEMP?
 
@AvinashRaj yes
 
anyone here also familar with webdesign?
 
yo
 
sup :D
Sorry haven't been active in this chat XD
the HTML / CSS / WebDesign room is DEAD xD
so anyone here familar with webdesign/css?
 
 
2 hours later…
5:17 AM
somehow this question got 4 upvotes in under 20 minutes stackoverflow.com/questions/25579154/…
smells shady
 
5:37 AM
@derp yaa
 
5:52 AM
hi! there's someone that can help me with this query http://sqlfiddle.com/#!2/4cd8d7/221

Basically Im trying to convert the day number to a date, for example today is the day 6, tomorrow 7 and 1,2,3,4,5

help is appreciated :$
 
latest five questions on Magento
 
6:52 AM
hai
 
7:25 AM
@HassanAlthaf are you malay???
 
ping @Ocramius
 
@JoeWatkins Good day to you Sir
 
moin
 
Behold my ini++ scanner
It now supports null, boolean, int and floats.
And strings of course =p
 
7:44 AM
awesomesauce
 
I'm looking into cleaning up the code .. a bit messy imo
Yeah, I know this is like a simple thing, but pretty proud of it heh
 
lexer/parser stuff isn't simple
I'm not good at thinking recursively, it gives me a headache :)
 
Felipe probably thinks it's simple heh
Nikita too, I gather ... it's like their heads are wired by a state machine heh
 
Felipe is really quiet ... he doesn't need to talk all the time, I think he's probably one of the best programmers I know ...
seen the language he wrote ? nifty stuff ...
 
yeah .. it's amazing
like, he gets up in the morning and decides "you know what, gonna write myself a language" :)
 
7:49 AM
what language is this?
 
it seems to have happened just like that ...
 
whereas i get up in the morning and think "my gawd, is it morning already?"
 
the name is so humble heh
 
I done some of the modules for it, was good fun to work on ... but he had a guy working on it I couldn't get on with, so backed away ...
remember doing concurrent and unicode one, think I done some others too, can't remember ...
fcgi I think I done ...
 
7:54 AM
"The main source of knowledge is our website" ... which is a namecheap parking page
 
yeah noticed that was down, guess he's not paying it proper attention anymore
anyone use google apps ??
> Google+ is not available for your organization (pthreads.org). Please contact your administrator to enable this service for at least one user in the organization.
how do I fix that ?
 
go to admin.google.com and click "google apps" in the console
 
was hidden
found it thnx
 
actually, hell, I can't even find it in there anymore. wtf did i do
oh, thing at the bottom. jesus, google, get your ui shit together
 
yeah it's not so straight forward
 
8:06 AM
i swear they change that console around every time i go there
 
8:39 AM
@Ja͢ck nope, zend_activate_autoglobals is called by php_hash_environment, the thing you linked me to was just adding them to an array.
and that one is called just before zend_activate_modules… hm.
 
Will PHP have self invoking functions? Was that RFC accepted?
 
@SecondRikudo what exactly do you mean? (example?)
 
$module = (function(PDO $pdo) {
    $doStuff = function() use ($pdo) { ... }
    $return = new stdClass;
    $return->init = $doStuff;
    return $return;
})($myPDO);

user_call_func($module, "init");
@bwoebi ^
 
8:56 AM
morning new peeps
 
morning
 
Ohayou! @Joe -san!
 
@SecondRikudo yeah, works with master
 
@bwoebi How long should this arrive at stable?
 
unclear
 
8:58 AM
6-8 weeks?
 
6-8 months, at least
 
no :-P
 
303
A: The Many Memes of Meta

Robert CartainoMeme: 6 to 8 Weeks Originator: Jeff Atwood First Heard: May 13th, 2008 Cultural Height: In about 6 to 8 weeks Definition: The time estimate given "off the top of my head" when the Stack Overflow team has only a vague idea of how long a task will take because they have little-to-no formal sche...

 
9:50 AM
 
Hey guys. I have problem while writing into a file:
Here you have the code:
http://collabedit.com/bexge
It somehow stops writing after first letter in string
of the user_id
 
cdn.arstechnica.net/wp-content/uploads/2014/08/… Imagine one of those for Google or Facebook.
 
My class
**class Lazy_localCache extends Lazy_Config {

public function SaveCache($name = "", $value = "", $user_id = "") {
$inputString = "\n[start]" . time() . "|$name|$value|$user_id[end]";
$fp = fopen( "data/cache" , "a+" );
$f = fwrite($fp, $inputString);
//fclose($fp);
return $f;
}

}**
How am I calling it
*include "core/config.php";
include "core/lazy_localCache.php";


$cache = new Lazy_localCache;
echo $cache->saveCache("username", "aresak", "someOtherID");*
 
I have never used the word "vim" used to refer to something other than a text editor so often in a single document before.
 
9:58 AM
 
" lol =]
 
uarghs… doubly dereferenced a zval * pointer, but as zvals have eventual adresses at the first few bytes, it just didn't crash…
 
10:19 AM
@DaveRandom Well, the updated ini scanner is here :)
It does all the typed things \o/
 
10:34 AM
Will find some time later to author another RFC for this.
 
@Ja͢ck why are you needing this?
why separate null and false?
 
10:48 AM
I created php web application like 9gag, the problem is if any one view in chrome it's run nice but in internet explore it does not playing after pressing refresh it works fine. Plz help

Demo link http://myzonevideos.com/play.php?vid=8
 
0
Q: Getting Skype Chat Log back

Hassan AlthafI had Skype on my Windows 7, and it had all chat-log for Skype. Then, I faced some Issues with the OS, so I deleted it and Installed Windows 8.1. I now have Skype Desktop on my PC, but It doesn't have chat log, and I am in need of all my old chat log. Is there any way to recover all my lost chat ...

 
@Ja͢ck awesome :-D
 
@HassanAlthaf Almost certainly no. If you did a quick format when you updated Win, it's possible that an undelete tool will be able to recover some/all of the data, but it's a bit of a gamble, and pretty unlikely
 
Aren't chat logs on sie internetz?
> Replace the existing main.db file with the main.db file that you’ve kept safe.
 
11:02 AM
morningz
 
Hi @JoeWatkins
 
@Fabien "What? No, that was what I meant to do. Really."
 
Pretty much what happens when I work on servers and everything unexpectedly turns out okay.
 
:-P
 
11:13 AM
hi
 
I thought you were away this weekend @DaveRandom?
 
as
 
Morning
@Fabien Configuring server is easy if you read everything. :D
 
@webarto wtf .. is that ? LOL :D
 
@Leri Aye but some of the more intricate stuff can be a little "Stumble my way alone"
 
11:31 AM
hi
 
@Fabien ping
 
@SecondRikudo Yo
 
Accept my invitation
 
@Fabien Any complex thing can be split into simple tasks.
 
@Leri s/can/---should---must
Oh, nice MD, nice.
 
11:40 AM
@Fabien I am going right now
 
Enjoy
 
catch y'all on Monday (although I am taking my laptop so maybe before)
 
@DaveRandom Have a nice weekend
 
user1994804
11:53 AM
Howdy Gang,
 
user1994804
Any ideas of what to do when a switch(){} won't pick up a variable?
 
Because it doesn't feel like picking it up?
 
user1994804
For example; I have a variable $State = 'Kentucky'; but when I feed it to a switch like so switch($State) {
case 'Kentucky':
$StateAbbreviation = 'KY';
break;}
 
user1994804
It doesn't pick it up
 
then maybe something else is wrong…
 
user1994804
11:55 AM
I've tried echo'ing $State one line before the switch and it outputs 'Kentucky' just fine
 
user1994804
and if I code the switch as follows: switch('Kentucky') {
case 'Kentucky':
$StateAbbreviation = 'KY';
break;} then $StateAbbreviation = KY
 
user1994804
but not with the $State variable inside the switch
 
user1994804
@bwoebi thats what I was thinking so I stripped it all down into the example above and still can't get it to work
 
user1994804
didn't know if this was a common issue that you guys may have some insight into
 
please put the code in a pastebin/pastie something
 
user1994804
12:00 PM
Basically, This is the whole relevant code
$State ='Kentucky';
echo $State; //Outputs Kentucky

switch($State) {
case 'Kentucky':
$StateAbbreviation = 'KY';
break;}
 
user1994804
I've checked for misplaced colons and semicolons etc till Im blue in the face
 
@YourAdrenalineFix Put an example on 3v4l.org
 
user1994804
@Danack That is all of it\
 
user1994804
This is Crazy!!
 
@YourAdrenalineFix You have a silly mistake somewhere. Putting a trivial working example on 3v4l.org will make it more likely for you to find the stupid error.
works for me.
 
user1994804
12:07 PM
Hmmm... Might need $StateAbbreviation = 'unknown';
 
user1994804
before hand
 
no.
 
Why are you asking for help when you will not share the code, it is obviously a small typo/ logic error
 
user1994804
@Danack Sorry I just don't like whoring out my code
 
@YourAdrenalineFix Well bugger off then.
 
user1994804
12:08 PM
You mean Fuck Off?
 
@YourAdrenalineFix its more polite way ...
 
user1994804
But... THIS Is the whole code
 
now ROFL
 
user1994804
12:10 PM
$State ='Kentucky';
echo $State;

switch($State) {
case 'Kentucky':
$StateAbbreviation = 'KY';
break;}
 
user1994804
echo $StateAbbreviation ;
 
now whats the problem ?
 
user1994804
switch is not picking up variable
 
@YourAdrenalineFix please copy and paste your code in a pastebin, it works fine.
 
5 mins ago, by Danack
@YourAdrenalineFix You have a silly mistake somewhere. Putting a trivial working example on 3v4l.org will make it more likely for you to find the stupid error.
 
12:11 PM
php > $State ='Kentucky';
php > echo $State;
Kentucky
php >
php > switch($State) {
php { case 'Kentucky':
php { $StateAbbreviation = 'KY';
php { break;}
php > echo $StateAbbreviation ;
KY
and I am having a hard time trusting that it was "the whole code", as it would be strange to use a switch in that context.
@YourAdrenalineFix
 
user1994804
Sorry, I meant that's the whole code that would / could be relevant to the present situation
 
Well it was not =/
 
its working at my localserver but dont know why its giving me error in 3v4l.com
 
you must understand that someone might read that as you are lying to them
 
user1994804
Well That Im not
 
user1994804
12:15 PM
talking shorthand
 
why code copied form [message here not working in 3v4l.com and copied from ide/hand written works ?
 
@NullPoiиteя which?
 
user1994804
At it's simplest; $State = $location[1];
echo $State; //Outputs Kentucky
 
user1994804
BUT... switch($State) {
case 'Kentucky':
$StateAbbreviation = 'KY';
break;} does NOT work
 
user1994804
12:19 PM
BUT... switch('Kentucky') {
case 'Kentucky':
$StateAbbreviation = 'KY';
break;} DOES
 
user1994804
That is all of it
 
@NullPoiиteя 3v4l is having issues with copy pasta'd code.
it's inserting &nbsp apparently.
 
so silly 3v4l
 
@NullPoiиteя yea I just noticed.. was removing whitespace
 
user1994804
Update: I Put a trim() around $State and it appears to work
 
12:25 PM
@YourAdrenalineFix in the future, use var_dump for checking out what is inside a variable
(instead of echo)
 
Morning
 
@YourAdrenalineFix you wouldnt do this with a switch/case but with an array and array_search
or using the state as the key and then using array_key_exists
 
@PeeHaa good morning
 
Heya
 
user1994804
12:35 PM
Thanks for the Tip @RonniSkansing. I didn't know var_dump() could be used on a single variable
 
user1994804
Im Newbie
 
user1994804
Thinking about it makes sense tho.
 
user1994804
I just thought var_dump() was for uses like print_r()
 
user1994804
its all becoming clearer now tho
 
@NullPoiиteя can you star something in html/css/webdesign and let me know when you have done it? I want to test something
 
user1994804
12:37 PM
Now lemme try out var_dump on a couple variables ;)
 
@PeeHaa yupp no problem
 
sure np @YourAdrenalineFix, =] I am sure that will fix the problem
 
@PeeHaa done
 
Awesome! tnx. You can remove it now if you want
 
anytime ... :)
@YourAdrenalineFix check this stackoverflow.com/questions/888/how-do-you-debug-php-scripts and phpdbg.com (better one )
 
user1994804
12:39 PM
Thanks @NullPoiиteя
 
user1994804
I hope phpbg.com isn't something Malicuious
 
@YourAdrenalineFix No not at all
 
user1994804
It just says "Nothing here, Move Along"
 
@YourAdrenalineFix its in php5.6 php.net/archive/2014.php#id2014-08-28-1 click the link again .. there was a typo before
 
sorry bout the double ping ping =]
:18586284
 
12:46 PM
@RonniSkansing Nope not at all :)
 
Oh =] I was sure it was
 
:P
 
1:09 PM
Good morning
 
Morning @ircmaxell
 
sup?
 
Noting much. Just woke up :P You?
 
same
 
@ircmaxell morning
 
1:16 PM
I love answering comments
 
the hangovers is kinda winding down at last
morening, everyones
 
@tereško morning @tereško
 
@tereško morning
 
IS_HUNGOVER | IS_HUNGRY
 
1:42 PM
@PeeHaa - Can you please send me the code translation ? — durga 20 secs ago
:)
 
AMA Reddit from a Cam girl who is currently studying Computer Science at Uni. That's quite a mix.
> I don't worry too much about being recognized or facing problems in my future career. I'm going into computer science, not politics.
 
@Fabien That's the reason I never had problems finding a job :P
 
Because your cam girl life is well hidden? -_-
 
:D
 
@bwoebi wasn't entirely sure about that one, but i believe it was brought up in one of the bug reports ...
morning new peeps :)
 
1:54 PM
JS is sooooo confusing for me :(
morning @Ja͢ck
 
What's wrong with JavaScript now? Besides the fact that it's not PHP?
 
it's event based haberdashery >_>
some people probably like that though
 
that's more of an artefact of the container in which JavaScript runs :)
 
@Ja͢ck I'm trying to refactor a chrome extension, but it doesn't work ™
 
@PeeHaa Have you tried Safari instead? :)
 
2:01 PM
No thanks. I'm confused enough already :P
 
The asynchronous nature is always a pain for me.
 
It's something you have to embrace, otherwise you'll drown ;-)
 
Basically I have this in an extension, but for some reason at some point it loses track of this.limit for probably an obvious reason I don't see
 
@PeeHaa Do you pass this.something as a callback somewhere?
or foo.something
 
Yes foo.something
 
2:04 PM
@PeeHaa You need to wrap that in a proxy function.
 
Let me gist the real thing
 
As a "naked" callback, you need something that still remembers what object the function was supposed to be tied to.
 
@Ja͢ck Why? Don't I use the object as the callback already?
 
@PeeHaa foo.something() only works because something is lexically bound to foo.
But when you pass foo.something as a callback (as a function reference), the lexical binding is gone.
 
gist incoming... here I set the callback and here I try the get the this.limit
The look on Fry's face is kinda my look right now :P
 
2:07 PM
@PeeHaa chrome.tabs.sendMessage(tabs[0].id, {method: 'getLog'}, logLoader.load.bind(logLoader));
@PeeHaa whereas i don't look anything like Leela ;-)
 
ok noice.
JS scoping apparently still confuses the hell out of me
 
It's easy to remember ... foo.bar() <-- lexically bound this to foo ... bar() <-- this is window.
 
Awesomesauce. tnx
 
np~
 
what you people do to prevent neck pain ?
 
2:15 PM
get out
stretching exercises are good.
also, have monitor at eye level
i.e. laptop bad
 
@PeeHaa Needs moar fixit:
 
i have monitor at eye level .. but i always feel little pain in my neck ..
 
@NullPoiиteя Do you have a decent chair?
 
@Danack :D
 
make sure your chair doesn't go backwards easily as well.
 
2:19 PM
@NullPoiиteя Move a lot
 
yeah, that helps
 
@Danack yup i have brought quite good chair
 
@NullPoiиteя how long do you sit in one stretch? that has an impact too.
 
@Ja͢ck ahhh thats the problem with my chair (i thought its a facility ) .. it goes move backward very easily
@Ja͢ck 6-8 hour
 
6-8h in one go? are you trying to be a machine?
 
2:21 PM
i am doing it for last 6 years ....
 
it's good to get up every half an hour or so, get a drink, walk around, think ...
@NullPoiиteя yeah, less support in the back will naturally move your neck forward which is not so good.
 
thanks guys ...., i am going to change my way of working and and buying new decent chair with really good head support ...
 
Great head support ^
 
@SecondRikudo do you use it ?
 
@NullPoiиteя We use it to execute criminals, mostly
 
2:30 PM
:D
 
But I get to sit there every once in a while and feel a nice tingling sensation going through my skull
 
Morning.
 
@SecondRikudo hahaha
Morning @LeviMorrison
 
Morning
 
@SecondRikudo good morning
 
2:34 PM
Today I hope to get my return type RFC updated and to make some progress on its new implementation on top of all these goodies NikiC gave us in master :D
 
@NullPoiиteя Looking good
 
lol, apparently derick doesn't understand what immutable means =S
@SecondRikudo such a waste of electricity.
 
@Ja͢ck Yeah, when I can just burn them alive?
What a waste.
 
meh, just put in cell with a shoestring ...
hmm ... this actually seems to be a reasonable request.
 
@NullPoiиteя Head support? No one rests their heads on chairs.
Get a nice bucket seat racing office chair
 
2:44 PM
@Fabien Can you move it between your car and the office?
 
Yup. With a lot of effort.
 
@Ja͢ck 'DateTimeReallyImmutable'
 
lol
 
@Fabien looks awesome .. finding a seller will be quite hard (its not much popular in my state )
 
Just search for bucket or racing office chairs
 
2:46 PM
@Fabien Looks like a combination between an office seat, and a toddler booster seat.
It's perfect for you!
 
lol. I actually have a similar but less expensive chair.
Which I don't like thinking about because the day after I bought it the price dropped 50%
:'(
 
Okay, so a poor toddler's booster seat.
 
@Fabien You should have returned it, then bought another one later
@Fabien lol
 
@SecondRikudo Aye. For some reason I can't remember I couldn't
lost receipt maybe
 
2:49 PM
@Fabien lol
 
@Ja͢ck Meh. It wouldn't really add anything to the language and makes a bit more code to support. It's really not that big a deal for people to write 'substr ( $haystack, 0, strrpos ( $haystack, $needle ) )' is it?
 
hey guys, anyone using nodejs?
I need some ideas, I want php and nodejs to communicate to each other (without dnode), any suggestions would be appreciated :)
 

« first day (1414 days earlier)      last day (3534 days later) »