« first day (1736 days earlier)      last day (3198 days later) » 
00:00 - 19:0019:00 - 00:00

12:41 AM
@RowAraujo You mean you didn't read the instructions that says you have to send an email to internals?
> To get authorization you must send a quick introduction to the internals mailing list. Mention your wiki username and say what you're planning to do. This email lets us know you're a human (and not a robot) and what you'll be working on.
Only problem is, this thing tends to keep out the people who don't read and not the bots.
Which begs the question, is it actually effective if it blocks all humans and makes it trivial for bots?
 
1:01 AM
somebody just needs to write a bot to do this for you
 
@FlorianMargaine one reason I would love to see the term "zend" removed from the source. I honestly feel it is harmful to the project.
 
compromise, rename it to zed
 
1:19 AM
@rdlowrey Can you check to make sure you can connect?
 
user895378
@LeviMorrison connected!
 
user895378
Thank you, sir.
 
:) Glad I can help.
Matthew is watching Sesame Street atm but in a bit he'll be going to bed
And then we'll be out of town
 
user895378
It's fine, I don't need it tonight. I'll do some benchmarking in the coming days.
 
user895378
I appreciate the consideration.
 
1:25 AM
Why are IE's developer tools just so horrid?
It's like they were trying to make a worse tool.
 
2:24 AM
Google pays them to keep it that way.
 
 
4 hours later…
6:30 AM
anyone familiar with opencart
 
Mornings
 
6:54 AM
@green4rrow don't use it, it's terrible
 
@tereško
ive already started..
how so?
 
it has bad code and ignorant community
 
not going to argue with latter
 
you can looks at it source to verify the former
 
wouldnt know where to start, coding knowledge is basic ha
 
7:01 AM
i am getting 500 error while visiting a page on laravel in godaddy shared hosting, although home page is opening fine
 
7:17 AM
@Cody did you check the error log ?
 
7:35 AM
morning
 
8:32 AM
 
mornogng
 
8:56 AM
Any way of mocking static methods in the latest version of phpunit?
 
Oh wait. It's been removed \o/
 
Yeah, he bloody removed it
When asked why, he just put "no".
:@
So much for community...
 
Hello there!
I want some advice.
 
9:14 AM
@Jimbo I like his comment on github though. Just don't use statics. Solid advice :P
 
Is it okay to omit imagecolordeallocate?
omiting it doesn't effects on my script
Is it okay to omit imagecolordeallocate?
 
9:30 AM
Ugh
I don't work with PHP much
but tell me this is not normal
echo json_encode(array(
"b" => $y,
"c" => ($x && $y && $z > 0)
));

{
'b' => false,
'c' => true
}
?!
 
What is not normal?
 
@Secret yes it is, if your $y is FALSE and the second expression evaluates to TRUE
this is exactly the expected JSON result
 
why?
if y is false, shouldn't it make the whole thing false?
 
ok, what do you expect? :)
 
TRUE && FALSE && ($z>0)
should be false? (because of TRUE && FALSE)
I'm thinking the $z>0 is skewing it due to operator precedence?
but yeah I just find it incredibly weird
@PeeHaa $y should make c false
 
9:36 AM
You made some error somewhere
@Secret And it does
 
@PeeHaa so at least it's not some weird operator precedence thing whew
 
hehe not this time nope :)
 
What's weird is that b itself is false, while c is true (so I couldn't have done any side effects)
 
Hmm.. this is a pretty bug in my code haha
 
9:39 AM
:P
 
Thanks @PeeHaa Maybe I'll post what caused it once I find it :)
 
:)
 
10:04 AM
Got it. F***
Notice "isPlay":"false" vs "didPlay":true
I set $isPlay to false instead of FALSE (I thought booleans were case insensitive in PHP?)
FML
 
huh?
false === FALSE
 
hmm you are right
it is case insensitive as I thought
but changing it to FALSE solved the problem (?!)
 
oooooooh wait
You sure it is an actual boolean and not a string?
 
yup
straight up changed $isPlay = false to $isPlay = FALSE
this is weird
 
Because that false in your json is a string
 
10:09 AM
yup, that's how I realised my false wasn't really false
I GOT IT
6
Q: boolean variables posted through AJAX being treated as strings in server side

Sandeepan NathFollowing is a part of an AJAX functionality to add classes and packs to session cart:- The jquery part function addClassToCart(itemId) { addItemToCart(itemId,true); } function addPackToCart(itemId) { addItemToCart(itemId,false); } function addItemToCart(itemId,isClass) { $.post...

facepalm
 
Yes everything is a string over http
 
like every bug, the reason was something incredibly simple :/
 
:)
 
 
2 hours later…
11:44 AM
@Jimbo It never worked to begin with.
 
hi @SebastianBergmann
 
Good morning.
 
I had a job interview at a company that works with thephpcc yesterday
^^
 
In Switzerland?
 
11:46 AM
:)
 
is there anyway to fetch the name of column of query result in php while using prepared statement?
 
We've been working with them for quite a while.
 
@SebastianBergmann I could learn alot there
well well... will see
 
@MarcelBurkhard Friendly and good team, yes. Good luck!
 
thanks :)
 
11:52 AM
@ircmaxell @NikiC Tuli and its dependencies looks interesting and promising. Guessing from photos I saw on Twitter I assume you met IRL to collaborate on this? In case my assumption is correct and you're planning on repeating that I'd be more than happy to join.
 
@MarcelBurkhard @SebastianBergmann sth tells me I know which company this is
 
@Gordon :-)
 
@ircmaxell @nikic One of the things I would like to with the AST extension for PHP is to implement the next generation of PHPCPD based on ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=6840038
Only 8:00AM but it's so hot outside already that I need to turn on the A/C. sigh
 
12:07 PM
Good afternoon.
 
12:30 PM
@SebastianBergmann actually, all planning happened here. We have been talking about doing it for a while, and I just decided one day to do it.
If you would like to contribute, please do! Both projects are extremely early, but as they take shape it will become easier to collaborate with.
@SebastianBergmann why not just use php-parser? That way you get native support in both directions...
 
@SebastianBergmann I'm not really involved in this, it's all @ircmaxell
 
user895378
1:11 PM
morning
 
2:48 PM
Okay, it's time for improving phpdbg tests…
 
@bwoebi yay
 
user895378
That's the biggest reason to have good (and thorough) tests IMO ... it's impossible to feel good about contributions from others without a quality test suite. You might understand the details of why something works and know not to change them but other people won't. Without thorough tests every PR is a potential landmine.
 
@rdlowrey As I said yesterday, I'm sometimes afraid myself with changing things in phpdbg ^^
 
user895378
That too. I often need to protect against my own stupidity.
 
@bwoebi While you're at it, you could also fix the compile warnings in phpdbg :)
 
2:54 PM
@NikiC That's for later.^^
I think I should change the phpdbg tests to an easier format, like the .phpt one
 
How'd you test the prompt then though?
 
good afternoon
 
@NikiC I need to have a new input section for that
 
but yes, if you can get rid of the custom test runner that would be cool
 
I'd need to extend run-tests.php (the main one) a bit, then I probably can make it work with phpdbg
just like we run tests with CGI when a --GET-- section is present
 
user895378
3:02 PM
@RonaldUlyssesSwanson o/
 
I wonder… what's the j prefix in run-tests.php functions? Like junit_init_suite?
I very much hope it's not standing for Java
 
It does
 
@NikiC And how's junit related at all to php's run-tests?
 
3:25 PM
hi
 
@bwoebi data format
for results
 
oh. well.
 
I need a MySQL query to select * from table where column1 is not null and column2 is null
19
 
@JavaFan you accidentally wrote valid sql
3
 
Hey all. Wondering if you could point me in the right direction. I've got two moderators, for a site I run, that I want to have the ability to upload a CSV file which will then be read into a DB using the LOAD DATA function. I've got the program currently uploading the file, moving the file from a temporary location to another directory (this is required by my server host), and then running the LOAD DATA LOCAL INFILE command perfectly. All of this functions as it should, but I want to sanitize the file my moderators upload. Currently the only thing I have done is I check whether the file ha
 
3:32 PM
@RonaldUlyssesSwanson ha ha ha
 
i'm not joking :P
select * from table where column1 is not null and column2 is null
this is valid, try running it
 
IT gives Empty set
 
example data?
 
Any takers?
 
wait
 
3:35 PM
maybe you are using empty strings instead of NULL
 
mysql> select * from data where service_id is not null and site_comment is null;
Empty set (0.02 sec)
 
In your 'data' table is there any row where 'service_id' isn't NULL, and 'site_comment' is NULL?
If there isn't then it is working.
 
ammmm @Bruce
 
=] weekend codings
 
my stupid mistake
 
3:41 PM
@RonniSkansing o/
 
@RonaldUlyssesSwanson \o
 
What was it?
 
there was no row where 'service_id' isn't NULL, and 'site_comment' is NULL!!!!!!!!!!!
 
Yay!
Try making a row where that is true and make sure it works.
 
@BruceBanEm thank you
 
3:45 PM
Not a problem- easy to do when you're focused on the execution of the code and you think an empty result means a fail when in actuality the data didn't exist to make the function true. I've done that a few times... or a lot.
 
hello
 
Hiya
 
Hey guys anyone know any good curl based library which handles all the pain of setting user-agents etc. in order to get html of a page
 
4:07 PM
@Almis all the pain?
How many pains are there to setting CURLOPT_REFERER?
 
@Sheriff some pages need user-agents, redirects or some other headers
 
I get that, but how many pains are involved in using curl_setopt, exactly?
 
@Almis it would be faster to write a wrapper yourself than to find exactly what you are looking for
 
You need an entire library to call a function for you?
 
Hey all. Wondering if you could point me in the right direction. I've got two moderators, for a site I run, that I want to have the ability to upload a CSV file which will then be read into a DB using the LOAD DATA function. I've got the program currently uploading the file, moving the file from a temporary location to another directory (this is required by my server host), and then running the LOAD DATA LOCAL INFILE command perfectly. All of this functions as it should, but I want to sanitize the file my moderators upload. Currently the only thing I have done is I check whether the file ha
 
4:11 PM
@Sherif be grateful that he's not asking for a framework
@BruceBanEm get mods taht you can trust
 
@tereško yeah I have my own I just wondered if there is a library that handles all that, anyway thank you guys :)
 
@BruceBanEm How is the file name supposed to destroy your database exactly? I mean, you understand that $_FILES['filename']['name'] is user-supplied data and not the actual name of the file that PHP will save on your filesystem, right?
 
@Almis guzzler is based on curl, but, as Sherif already noted, you font really need a full library for this
 
@tereško I think you mean Guzzle
 
could be
 
4:14 PM
Guzzler seems to be the name of a trucking company or something.
 
Oh thank you guys, guzzle seems exactly what I need, I can also replace it with the other library that I use to parse html
 
Or possibly a vacuum company.
 
hey, I was guessing the name, no need to get your hate on
 
Sure, learn a whole new tool and take on an extra dependency, just so that you can avoid learning how to call a single function in PHP and instead call whatever number of arbitrary functions/methods in the 3rd party tool to accomplish the same exact thing.
That's what I call an amazing tool :)
 
4:16 PM
@Sherif Well basically the moderator would have to know the file name has to be 'X' if they try to upload a file that has some other name then it would not execute. It's not significant but if the actual file name has to be named 'XddFvdjhvjdhjyhfgajdsg87463866287.csv' then they would have to know that to even upload a file.
 
@Sherif you can lead a horse to water ...
at some point you must just cut the losses
 
@Sherif As for destroying the database (about to display my ignorance) when the LOAD DATA LOCAL INFILE is run could the data in the CSV file itself have SQL injection that could cause damage to the table?
 
@BruceBanEm No.
In other words, you've just created an arbitrary restrictions that adds nothing of value in terms of security.
This is what I call security by arbitrary cleverness.
 
@Sheri
yikes
 
@NikiC bugs.php.net/bug.php?id=50688 intentionally not closed?
 
4:20 PM
@Sherif This is so good to know! So escape characters do not work in CSV files? I guess if they have the correct SESSIONS set to even have access to the upload page everything should be fine.
 
Has nothing to do with CSV files.
 
Why does there seem to be so many different pages with answers stating to validate [name], [type], [error], [size], etc.?
Or is that only if you do not use LOAD DATA, but instead parse the file and insert as SQL statements to read the data into the DB?
 
Think of it like this. LOAD DATA INFILE is the injection point. The CSV file isn't. If all they have control over is the CSV file, then you're safe from injection.
 
@Sherif You're a freaking genius! Thank you so much for this.
 
You know it feels like all these emoji sites just popped up out of nowhere. Either that or they've been there all along and Emoji day just made them all very popular somehow.
Still not clear on whether or not Emoji day is July 15th or 17th, btw.
 
4:27 PM
17
 
Anyone wants to see my first PHP website?! It's picoord.com . It doesn't worth shit. But I learned a LOT from it. You guys helped me a lot. Thanks.
 
Ya a good page for newbie
 
@user3002233 Do you own these photos?
 
@BruceBanEm No sir.
 
or did you take any of them I should say
They're beautiful
Especially Fly Geyser
 
4:38 PM
heh. Thanks!
@BruceBanEm So, any feedback?!
 
You should add coordinates to the bottom of each picture as a footnote that link to the location on Google Maps.
 
Just click on the map!
 
What map?
 
If you scroll to the bottom of the page (image's page) you'll see a map!
 
LOL - did not scroll at all.
 
4:42 PM
:|
wow!
 
It fiils up my screen so perfectly it look like a slide view only.
 
Is it good or bad?
 
It looks great!
I like minimal looking sites such as this for photos. Reminds me of Flickr
 
Flickr is very complex!
 
hmm ...
 
4:46 PM
You can have a minimalist product and be technical complex at the same time. Look at Google. It's got a box and two buttons.
 
Is the upload page functional?
 
@BruceBanEm Yes.
@Sherif right!
 
Why is there an exclamation mark in almost everything you say? Are you really that excited about everything?
 
How will you deal with people uploading photos of other's work? Just remove as requested?
 
@Sherif no.
 
4:50 PM
@bwoebi yesish
 
@BruceBanEm yes.
 
@user3002233 I uploaded an image. I've got one more that is my background that I absolutely love that I will upload.
 
@BruceBanEm Yeah. I got an email when you uploaded that. I'll take a look at it later. Thanks.
 
Sounds like an excellent way to spam your inbox.
 
@NikiC You've definitely been helping on the php-cfg front...
 
4:58 PM
@Sherif Heh, You're so funny. I believe in reCaptcha!
 
@user3002233 Thought about requiring that uploads can only be done by users who sign up and therefore have to be logged in?
 
@user3002233 Because you think illegitimate requests are the only thing that will flood your inbox with useless email?
Uselessness can originate from entirely legitimate data as well.
 
@BruceBanEm I thought about many things. including this. this is better.
 
Rather than receive an email every time someone does something on your site, why not create a dashboard that provides the data in one place? Or, at the very least, aggregate the data into a single periodic report email? You get 10K people each uploading 10 images in one day and you just got 100K useless emails you will probably never read individually anyway.
 
@Sherif relax man. I can turn that off easily.
 
5:04 PM
@user3002233 What makes you think I'm not relaxed?
 
@Sherif That message!
 
@user3002233 Which part of that message indicated that I wasn't relaxed?
 
@user3002233 He's just trying to help... playing devil's advocate.
 
The part the provides useful feedback or the part that offers up alternatives along with the information?
 
May propose something you haven't thought of.
 
5:06 PM
@Sherif I wasn't serious about that. I just said something.
sorry.
 
It's fine. You just have to remember that anytime you start describing someone else's emotional state of mind over a medium like text, you are highly likely to be incorrect. I try to focus on what the person wants rather than how I think they feel.
 
that's nice.
 
I like how you have it verify the length of an image. I tried to rename a .tar.gz file to a .jpg file and upload it; didn't notice the parameter for checking image length must equal 1500.
@user3002233 Do you have an easy way to approve uploaded photos, or is there a lot you have to manually add for each one?
 
@BruceBanEm I must add some other details about an image. like coordinates, tags. But it's very easy.
 
Why are you doing that manually though? You know can extract geodata from the image, right?
Or just let the user add it manually.
 
5:16 PM
@Sherif I can do that myself. In this way more people upload their images.
right?
 
Sherif, you work at Google, correct?
 
Huh?
@user3002233 I'm not clear on how you doing that yourself means more people upload their images?
 
I'm guessing that by your phpden site.
 
I'm just saying computers are very good at doing tedious, repetitive work very effectively and very quickly. Whereas humans tend to suck at that kind of thing. Let the computer do what it does best so that you can do what you do best.
 
Turing Computing 101
 
5:18 PM
So if the computer can extract geodata from the image for you, why not let it do that? Otherwise, it becomes hard to scale.
 
@Sherif geodata from the image? how?
 
@user3002233 Well, in the JPEG standard, for example, most modern cameras (and including smart phone cameras) can automatically embed geolocation data in the JPEG file.
 
Check link.
 
You can extract that data with something like EXIF, for example.
 
5:21 PM
That's really useful to know.
 
@Sherif Yeah, I know. Maybe I'll try that later. But now, all i want is a simple website.
 
Also, tagging is stupid as a manual process. You can have the computer tag the images for you if you really wanted to automate that too.
 
@user3002233 Create a list of things you want to add or change. I have an ongoing list of things for my site. If I don't write it down I forget it later.
 
oh, don't make that complex.
@BruceBanEm I did it.
heh
 
meh, complex doesn't necessarily always mean complicated
 
5:22 PM
sorry, I have to go now.
Thanks guys.
 
@Sherif I don't know what is it but I'll talke a look at it.
 
See, the computer tagged the picture for you
:)
@user3002233 That's an open source deep learning framework. You could use it do things like learn what's in the image for you and automate the tagging process, as an example.
Insight into autonomy is a very powerful thing to keep in your back pocket.
 
Amr
@Sherif That's very cool man :D
 
@Sherif How does it recognize, for instance, what kind of animal is in the picture?
 
Amr
5:34 PM
@BruceBanEm It's AI software
 
@Amr It is. So much of the web is based on text but very little has been done in the way of imaging over the last couple of decades. If you think about how much image and video data is sent over the web today, it dwarfs text and trendily so. So building better tools that understand the insame number of photos uploaded to mediums like instagram and facebook today only makes sense for the future.
@BruceBanEm It learns. You feed it training data and it tries to figure out how to identify objects through pattern recognition and modeling.
Much in the same way you learn how to recognize objects.
 
Is the code proprietary or is there open source code for something similar?
 
No, it's entirely open source.
 
Amr
Yes you're right, I'm interested in this kind of things
 
The link is right there at the top caffe.berkeleyvision.org
 
5:36 PM
@Sherif not very accurate in this image :) imgur.com/wLU0QUt
 
Amr
but I'm searching for API, or in place software
 
How can I tell if user has logged in with HybridAuth?
 
@kodeart Look pretty accurate to me demo.caffe.berkeleyvision.org/…
It's as accurate as its training data.
 
Amr
@Sherif Where is the source :D
 
and how did you get those tags? ah, you re-uploaded
 
Amr
5:37 PM
Great
 
What did mean how?
 
I run an E-Commerce operation. I have listers who take items and have to do research on them. By the time the lister gets it they already have a photos of the item for upload. I would love if there was a way I could design some software that could utilize something like this and fill in a lot of necessary information based on the photos. Ex. Name of painting, artist, color of shirt, type of object.
 
You can provide it a URL.
You don't have to uplaod
@Amr It's on github. Search for Caffe
 
right, i didn't noticed
 
Also says so in the link, BTW
 
Amr
5:38 PM
@Sherif I found it thank you
I'm interested in online OCR, something good and open source, anybody recommend such thing ?
 
There's no shortage of open source OCR software out there. Tesseract is a popular one, for example.
 
LOL- I uploaded an image of mario. It says: ball, game equipment, clothing, consumer goods.
 
Amr
@BruceBanEm It's good enough not perfect
@sherif I'll check it
 
It must recognize the clothing on them, because it did it with another of a man in a suit.
 
I found it myself
isConnectedWith()

Return a true or false if the current user is connected to a given provider. Hybrid_Auth::isConnectedWith() use PHP Sessions. To know more refer to the HybridAuth Sessions section.

Hybrid_Auth::isConnectedWith(provider)
 
5:44 PM
Running selected tests.
PASS Basic run [sapi/phpdbg/tests/basic_run.phpt]
\o/
 
@bwoebi nice :)
 
@aksu that snippet looks like a code that I wouldnt ever want to use
 
--TEST--
Basic run
--PHPDBG--
r
q

--EXPECTF--
prompt> [Nothing to execute!]
prompt>
@NikiC looks like this (with optional file section)
 
@bwoebi is that last newline in PHPDBG required?
 
@NikiC currently yes, but I'm going to remove that.
 
5:51 PM
ok
and what's with the prompt> in the output?
 
well, it's part of the output?^^
I can remove it via .phpdbgint though…
But currently not planning to do so as it helps to visually distinguish where prompt-boundaries are. @NikiC
 
@bwoebi ah yeah, you're right
 
Oh, Tuli happened
I'd love it if PHP gets a built-in typechecker someday
 
:-)
 
A long way until there. But yeah, could be nice :-)
 
6:05 PM
Great work, though!
Spl's class names are so long I usually aliased them
@ircmaxell A significant hurdle with PHP type checking is lack of accurate type info for the entire PHP standard library
You could probably import it from the manual somehow, but it'd be wrong anyway, the manual almost always lies
For example, virtually all functions that use zpp aren't, say, int, but int|bool or ?int
 
@Andrea well, that's something which happens through wrong types, at which point it's not that important anymore.
 
@bwoebi Good point
Though in weak types mode, wrong values can cause it :/
@ircmaxell How'd you generate InternalArgInfo.php?
 
@Andrea I believe it's generated via the prototypes in the .c files
 
Ah!
Oh yeah, I forgot about those. They're... not always in sync with the manual
Or the code.
Or the arginfo...
 
well, nothing is in sync with anything here^^
 
6:15 PM
That'd be a fun project for this evening. I should write a script that spots discrepancies
 
have fun spotting differences between the code and everything else :>
 
Hehe
Not sure if I should even bother for the code, though I probably could spot zend_parse_parameters("..." with a regex
 
for input types, yes. But return types is the fun part ^^
 
/\bRETURN_(TRUE|FALSE|NULL|LONG|FLOAT|STR|STRING)\(/ :p
(yeah, I know about return_value)
 
don't forget RETVAL_* !
 
6:25 PM
mornin' @Andrea
long time not seen
 
yep
@bwoebi oh, right
 
6:50 PM
@DaveRandom is next to me and desperate for a pint but doesn't want to lose his seat. Trying to get @Jimbo here as he owes him a few :p
WB @Andrea
 
Wait wat? @DaveRandom is not drunk yet?
Total weaksauce!
 
@Fabor hi :)
Oh, so phan also exists
Static analysis galore!
> // Globals where we store everything
o.O
 
@Andrea Did you expect anything else from rasmus?
 
@PeeHaa hehe
> /** Dumps abstract syntax tree - stolen from @nikic */
 
00:00 - 19:0019:00 - 00:00

« first day (1736 days earlier)      last day (3198 days later) »