« first day (1312 days earlier)      last day (3861 days later) » 

15:00
@ircmaxell it might be yeah, we get a better more suitable implementation out of it whatever, the amount of hours Pierre has spent replying to internals ... it could have been done already ... any one of us could do it but we don't want to step on toes obviously, Pierre needs to do it, or dmitry/niki need to decide that it should be part of the ng patch ... but nobody else can really do anything without more arguments ...
@JoeWatkins to be fair, Pierre was a big part of it, but Zeev was as well. And dmitry didn't really do any favors with a lot of his replies (while I think were well intentioned, I think contributed to the chaos)...
yeah they're all behaving like children tbh
@JoeWatkins How about an advance from current employer?
what's that @Leri?
15:03
Fair choice of name. :)
@Fabien I don't think so, it hasn't been offered and I'd be super reluctant ...
@JoeWatkins You've proven your worth. At least it's an option to keep on the table.
@Leri so if you're using <=5.3 you should just quit before you start? I like the implication :-)
Maybe segue into the convo somehow and drop the idea that "If necessary is it possible for me to request an advance should the need arise, just as a back up option" or something.
@ircmaxell Yep, we don't need another crappy hosting provider. :)
If it was hard to find or even better impossible to find hosting providers with php 5.3 or below php community would be much better and up-to date.
The same applies for other technologies as well. ^
15:08
:-)
@ircmaxell did you give a hint before 8 was solved?
@JoeWatkins Works for me. I just disabled the exceptions, someone linked to non-existing page... e.g. phpdbg.com/xxx
@CarrieKendall the hints were published, but that's not how it was solved
was there any help?
15:13
Well... depends on your definition of 'help'
triple-x page aye aye?
@ircmaxell lol, i am going to take that as a yes
still, very cool study
@CarrieKendall there was a server mis-configuration deployed
@JoeWatkins related: isup.me/phpdbg.com :)
15:17
i can see that being used from the trenches of many comment threads on erroneous blogs @ircmaxell :P
I need to write my blog post on it :-)
how's work?
@Fabien Wut?
So far, so good
@PeeHaa What?
15:22
Morning
@Chris good morning
What part B? @Fabien
You don't know what comes before Part B?
@ircmaxell So, wondering what we should do re 64bit now
Seems like just agreeing on something is not enough ^^
@NikiC Well, even Dmitry acknowledged that a generic type cleanup would be awesome
15:25
My thought was to write down what we agreed on (wiki.php.net/rfc/phpng64) and vote on that. Does that sounds reasonable?
@NikiC definitely sounds reasoanble
@PeeHaa Part A.
Partaaaaay!
At least it does not seem like Pierre is willing to modify the original RFC to accommodate what we agreed on
> The 64bit changes described in the following will be integrated into the phpng branch once it is more stable.
why?
why not simply introduce a new type, zend_string_size or whatever, define it as uint32_t, and start introducing it directly in phpng
15:27
@ircmaxell Which part? The "once it is more stable"?
rather than merging
@Fabien hehehehe :-)
@ircmaxell This is what Pierre is telling me all the time. First make phpng more stable, then add 64bit
then, down the road, once the type is there to make it stable, switch to size_t
@NikiC well, I just mean I don't think developement should proceed in parellel. Either do them together in the same branch, or wait for one to complete first...
@ircmaxell I think that's the idea (the latter)
15:30
I'm not sure if that's really needed (waiting, I think they can happen in parallel in the same branch, assuming you define it as uint32_t for the transition, without stepping on each others toes)
that might work
but honestly, I think doing it (even NG) in a separate branch is asking for trouble
after this point, master is going to continue to evolve with bugfixes, etc. So unless the plan is to replace master, that merge is going to hurt. a lot.
@ircmaxell I'm assuming that phpng will replace master
or will master be 5.7?
well, replace, not merge
that's the question
as master is being merged into phpng, both should be the same
15:35
fair
As far as I remember, @Jack was reporting that quite big number of tests are failing for phpng. Just noticing... :)
@Leri php tests or his tests?
is NG so better?
@NikiC It's somewhere in transcript. Let me find it.
15:46
@Jefffrey
If you want us to look at the post and vote accordingly, . If you're requesting a delete: .
review-pls = dv-pls, but politically correct ;)
Thanks.
@NikiC Shhhhhhhh don't tell them that!
> them
15:49
I personally like either and / or :)
@NikiC Finally!
@PeeHaa and on that note
15:50
hehehehehehhehe :P
@Leri 532? That doesn't sound quite right...
point taken :D
-.-
15:51
joke :-D
I don't think I get more than 20 failures on a normal build
On a related note. Is it every like reaaaaaally hot in the world or is it just here?
@NikiC I can't really answer. I have not compiled NG branch. Maybe some extensions are failing too(?)
@PeeHaa It's not just you
Well, it isn't exactly really hot here, but it's a lot warmer than it was yesterday :)
@PeeHaa it's pretty cool here
15:53
@PeeHaa Global Warming biatch.
I mean it's not that I mind, but when working it kinda sucks
Surprisingly, same here.
@PeeHaa I am pretty much burning here. :D
@PeeHaa Well, in Israel we have those devices that literally suck the heat out of the room
@SecondRikudo Aaaaah the heatsucker 2000
Yeah I know that :)
I'm tempated to create a dedicated webservice for OP which returns exactly that
-4
Q: Request ? in php or python :D

user3632759i need this header is in python or php, can u write for me :D Host: www.example.co User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:29.0) Gecko/20100101 Firefox/29.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate ...

:D
Ow wait. Can I build it using the http test thingy?
15:56
@PeeHaa 2 minute deletion
WHat was the name again of that service to fire requests at?
Nooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​oooooooooooooo
@NikiC I prefer no renames either. But the rfc looks reasonable.
sleep(5)
sleep(2);
Jinx :)
BURN THE WITCH
15:57
lol yes.
Not sure what's scarier. Same timeish reply with same thing or the horrible workaround
Tis fine. I've moved it to work only on the POST requests which are slower anyway. Otherwise it just looks like a blip.
@NikiC I assume he has compiled not yet supported extensions in too...
@Fabien Just request a gif from lingscars.com
Easy.
16:00
lol. As crazy as that website it. It's like good crazy.
@SecondRikudo WTF lool
ok people. I'm going home bar
Same thing isn't it?
@PeeHaa Well, go bar home :-)
♫ Where everybody knows your name! ♫
In my defense it is for work. So I like to actually call it a business meeting!
16:04
His business is drinking and business is good.
@PeeHaa Okay, go there but don't drink anything with alcool.
That's like taking a shower without water :)
lulz BTW @SecondRikudo I only now get the starred alma post :P
@PeeHaa s/out//
@PeeHaa Took you long enough :D
heheheheheh. I only saw it this morning when I just arrived and didn't had coffee
16:07
I want to clean this up and free myself from the shackles of animated gifs: jsfiddle.net/GRMule/5ZHwg
Not saying it is kinda onbvious though :P
You guys typed telnet towel.blinkenlights.nl in to terminal before?
6
do we want to?
Yes you do :)
It takes a bit to load. About 10 seconds or so.
lol that's awesome!
16:08
ah yes, this one
Now I'm really out
laters
Pea soup
@Fabien somebody has too much time with his hands :p
@AlmaDo no kidding heh.
don't even tell me that I'm slacker after that :p
16:13
There's a difference between productively wasting your time and not :P
that telnet is about "not" :p
"There's a difference between productively wasting your time and not", he said in the chat room on Stack Overflow...
heh
@Chris more, he is regular here :-D
Shhhh. :P This is my sanctuary. For both learning and laughing.
lol
Programmatically making something like this would be cool.
What's the recommended way of finding what is causing php to run slow? When I do top I see that php is running at over 100% on our server. Yesterday it was fine. When I trace the PID I see that it is going to an index.php file which links to tons of other files. How can I find out what specifically is slowing the server down?
@Johnston Use a profiler
@Danack checking. @Chris what profiler?
16:32
I've heard people say that xhprof is superior to the xdebug profiler, as it doesn't have such a high overhead (which could lead to misleading results).
if i were to use a GET method to post on shopping website like asiraj.com
is that okay?
@Johnston I have always used XDebug, but I've also seen some people suggest here that it isn't the greatest tool. They failed to support that statement, but it wasn't from someone I view as prone to make idle statements.
@Danack depends on the reason you're profiling, and what you're doing
xhprof : profiling = xdebug : debugging afaik
you also don't want to profile every request anyway
I've been looking at the PECL APD bit, too, but have not used it
16:40
@Johnston The problem I found when I tried using the xdebug profiler was that there were systemic issues causing my code to be slow - namely that without opcache enabled, and due to some not great code in the composer autoloader, there were lots of file hits occurring when a class was being loaded. This didn't show up that well in the profiler as it was distributed across most of the code.
It showed up instantly in strace as I could see all of the file hits, individually as well as turning on the summarise option for strace which made it even more obvious.
@Danack How do I do strace?
@Johnston strace cmd
If your server was working okay yesterday, and is very slow today I doubt that your actual code is much slower, rather the environment has changed (or at least the conditions of the environment that your script works in).
@Johnston This is a script that launches strace for all php-fpm workers and sends each of their output to a file.
@Danack you are right but if top shows php running high then it is some php process running something high.
right?
@Johnston Yes - and strace would show you what that process is doing.
16:44
@Danack Ok. Honestly I used to do a lot of PHP but I do not do php hardly anymore but the people who run this site called me today and asked me to fix. Would I be using php-fpm? I don't really know what that is. The site has 6000 users
fark that's the wrong script.
When I wrote this (4 years ago) there wasn't all the stuff they have today
user924016
@Johnston sounds like you need to hire someone who understand it?
@Johnston It'll either be user nginx + php-fpm, or Apache + some PHP worker thread. You should be able to modify the script for apache, or maybe just strace Apache directly.
@Danack yes it's apache and php.
Aha it's the NGINX side of php
gotcha
16:50
Also - have you tried turning it off and on again? ;) Seriously, I'd suggest figuring out the appropriate process to run strace on, and then the appropriate strace options. If php is running at 100% continuously, either it will be obvious what the problem is, or it won't be.
btw if the site is live those strace commands generate a lot of data.....maybe just do one process at a time.
@Danack turning off the server?
@Danack turning off and on what?
@Johnston You aren't from the UK....it was a joke.
Aha.
Haha
Well that was fantastic. Now I can make that joke
Would tons and tons of errors slow down a site?
What type of errors?
17:10
@Danack access("/home/somesite/public_html/addons/seo/controllers/common/index.post.php"‌​, R_OK) = -1 ENOENT (No such file or directory)
There are in total 303 not found files when the index page executes.
That will defintitely cause a lot of load. the filesystem doesn't cache the fact that a file doesn't exist, so each will be one file hit.
35
Q: Changing all instances of "xxx.com" to "example.com" in edits

Richard Le MesurierA user (arserbin3) has gone and edited a bunch of posts to replace all "xxx" with "example" — edit comment is along the lines of "remove porn links". Here is one of the edits: http://stackoverflow.com/review/suggested-edits/4829406 Here is the question: Android HTTP POST - 400 BAD REQUEST ...

lol
17:35
@SecondRikudo Old news.
Here's some new news:
4
Q: Question with horrible answers

FooBarFollowing is a question with very special properties: Importance: Bad coding style will affect database security and potential hijacking Relevance to beginners: This is something that even beginners who write their first working code have to be aware off Difficulty of knowing when you have it ...

Specifically:
2796
Q: How can I prevent SQL-injection in PHP?

Andrew G. JohnsonIf user input is inserted without modification into an SQL query, then the application becomes vulnerable to SQL injection, like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')"); That's because the us...

More specifically:
594
A: How can I prevent SQL-injection in PHP?

Matt SheppardYou've got two options - escaping the special characters in your unsafe_variable, or using a parameterized query. Both would protect you from SQL injection. The parameterized query is considered the better practice, but escaping characters in your variable will require fewer changes. We'll do th...

Which the Meta-OP calls out as "dangerously inaccurate."
If the PHP community is willing, I can lock the mentioned question as a reference question, and they can coalesce all of the good information into the canonical answer (the accepted one). This would make the top answer Community Wiki. That said, it appears to me that Matt Shepard corrected the information in his answer later, in response to the comments. — Robert Harvey ♦ 4 mins ago
good mornings :)
user924016
17:54
Morningsssss
The hammer feels so new to me, is such usage OK? stackoverflow.com/questions/23766651/…
@hakre Looks fine to me.
Hello, I offer a candie to whom can help me
I have a very simple code
a file_get_contents that throws garbage to me
And I've noooooo clue why
You aren't opening /dev/garbage, right?
Like, rea no clue. Any help would be greatly appreciated
@Charles Ah, nope, not even. A regular web page
I use file_get_contents with default settings,
here is the URL I'm retrieving:
(one of*)
But instead I receive string(11195) "‹í}ëzÛ¶²èïø)¶;”NDQ”ä‹lKýìÜêÕ¤ñŽÝv÷deû£HHbL‘,IÙÖNû}û5Îë'93€‰²eÕîY='Y«‰HƒÁ0`08|‌​úòý‹ó_O_±I:õ[‡O ã£7b'¯ØÞ§;Ä·Ìñí$ékAh…"`
user924016
18:01
hehe
Yeah, it's not garbage, it's raw, hardcore, brah.
I'mma bet that it's gzipped.
And the code is simply: `$showpage = 'http://www.thesimsresource.com/downloads/details/category/sims2/id/'.$content.'/';
echo 'Retrieving presentation page: ',htmlspecialchars($showpage),'<br />';
$showpage = file_get_contents($showpage);`
Also jeez but that's some ugly sim hair.
@Charles Oooooh, thank you for the clue!
@Charles Ahaha !
Oouh, if that solves my problem, thanks a bunch, I'll keep you up ;)
18:04
Hey can anyone recommend a lightweight markdown parser?
I've been like being tortured for hours to solve this, and searching for file_get_content problem/error and alike, didn't really helped so far.
search packagist
There are quite a few, any recommendations for a stable and lightweight one?
Any correct text markup engine is not going to be lightweight.
Source: I wrote UBBCode.
If you're concerned about performance, store both the original and transformed text so that you don't have to do it at runtime.
Storage is cheap.
Guys how to pick a good domain name? I am think of SSoftwares.org
18:06
Ah good call. I'll just go with the most popular one.
@MikeM. dumb.domains at your service.
? That's not what I am looking for xD
(nsfw)
Anyway there's a bunch of new TLDs to choose from.
OH my gods there's a .codes TLD
brb registering givemethe.codes
Hmm, is it worth $40/year?
Damn, someone already got the.codes
hi, I have an array as a string. how do i store it in a variable as an array.
var_dump($names) outputs
string(33) "[\"John\",\"David\",\"Dana\"]"
@KumarAbinash Where are you getting the string from?
18:12
@Charles, i do a ajax post to my php page, it does JSON.stringify, i catch it from $_POST
@KumarAbinash Soooo, if it's JSON, perhaps you should treat it like JSON?
Charles would SSoftwares.org be a good domain
?
@KumarAbinash json_decode.
@MikeM. Too many sssses.
Well now I am testing it on SpeedoSoftwares.tk
so I wanted to do SSoftwares.org and paid domain because I can't think of a good domain
@Charles Nice website
I'm surprised ssoftwares isn't taken yet
IKR
is it a good domain name would it stick if you think it has usefull stuff?
user924016
lol
user924016
@Charles quite funny names... drug.shoes
@Charles well i tried json_decode before, but it outputs NULL, and the interesting things is, it works totally fine in localhost, but doesn't work when i upload it to my webserver and returns NULL
18:16
@KumarAbinash json_last_error
man.kitchen
what about: boob.limo
/me cries a little bit
I got the best one: pants.management
hello @ircmaxell how are you
@Charles json_last_error outputs 4. is that a error code i can refer to?
user924016
18:22
Anyone know if its possible to search packagist by something more specific then just the words, like downloads or etc. Atm I am browsing validation libs, and it sucks going through page after page.. =]
@KumarAbinash Hilariously they didn't publish the values of the constants on the manual, so you'll need to check against all of them. I know, it sucks, doesn't it? There's some code in the comments there that might be helpful. If you're using 5.5 or better, you can use json_last_error_msg instead.
@Charles Thank you PHP once again
@Charles well, thanks. how come it works fine on my localhost? do i need to install some php plugin or packages on my namecheap webhost?
I just found out that Drupal 8 turned off auto-escaping in Twig
@KumarAbinash I don't have any solid explanation for you, however you aren't alone in having different versions of json_decode being more strict than others. :/
@ircmaxell Why would they do that?
18:24
because they are escaping things all over the place in their app
and rather than fix that, they are building a "taint system" by which they can identify things that have already been escaped, to bypass escaping
That's a hypothetically not-bad idea, but it still makes me a bit sad.
hypothetically not-bad idea? It's a lesser of evils for sure. But it's a band-aid on a gunshot wound
user924016
wow
user924016
Well I can really respect that
@Charles, i found out it shows JSON_ERROR_SYNTAX, is there any way i can solve this?
user924016
18:27
I rarely work with drupal code, but I often have to work on Wordpress related stuff. If only WP was half as brave
@KumarAbinash I got nothin'. Paste the JSON document into a linter (google: json lint) and see what it comes up with?
@Charles, thanks a lot.
user924016
But I wonder how their developers will handle it... Like most plugins in wp are horrible in the security aspect..
user924016
Actully.. In all aspects..
18:55
The guy who forked and changed the MIT license without attribution has decided to use the legal services of this chap http://motolaw.com/index.php
gossip
How can you fork the MIT license? I don't get it.
@JoeWatkins OH MY GOD - THAT AVATAR
...
What's that German word for "punchable face" again?
\o/ I have my second gold badge.
donotwant.jpeg
@LeviMorrison gratz
@LeviMorrison Is it a useful one?
19:14
I don't feel much for phil, but that story is somewhat lolly.
@Danack Thank you.
19:31
@ircmaxell Considering the big revisions Drupal makes with each version I can't imagine 8 having a big user market.
for a while
^ two loops in one statement :)
Anyone use scrutinizer-ci.com and know how to setup a new repo in it without this fuckery:
I didn't have to do that
or at least I don't think I did
I don't think I did for the one I have already added.
I think github may have changed their api, as both travis-ci and scrutinizer now ask for way too many permissions now. When I whined about travis, they said it was because the github api was pretty much all or nothing - i.e. you can't request just read only access.
19:42
then bitch to GH
anyone know about the wordpress
i am facing one issue and not able to solve it
You can ask on #scrutinizer-ci
I got the reply for that sometime, but can't remember why it is so
@ircmaxell Actually, I already did back in January. They said 'thanks for the feedback'.
19:49
@Danack call them out publicly
@Ocramius Github's api has shitty parameters. developer.github.com/v3/oauth/#scopes public_repo Grants read/write access to code, commit statuses, and deployment statuses for public repositories and organizations.
@ircmaxell I probably will do - I can't add projects to either travis or scruntinzer until it changes. but first I need to go to the pub.
@Danack I was that asked by scrutinizer once. I did (with pressing teeth together), then after setup, revoked.

« first day (1312 days earlier)      last day (3861 days later) »