« first day (2081 days earlier)      last day (2860 days later) » 

10:02 AM
the goal of the game is to get RFCs accepted. the player with the most RFCs accepted in the end wins. playing cards will feature internals regulars, bogus arguments and similar things.
 
7.1 looked like it was going to be so good a month ago ...
 
Anonymous
Is there still a support for function autoloading?
3
 
@JoeWatkins :(
 
Wes
this is how it begins
 
10:17 AM
1 message moved to Orphan GIFs
 
So, no feedback/concerns with this? news.php.net/php.internals/94171 I really miss this fairly simple feature when it comes to dealing with callables so I'd like to RFC it for 7.2 at least
 
@Wes hoax
 
!!rfc typed-properties
 
Merge typed properties ? Yes (34: 59%), No (23: 40%)
 
@NikiC exactly ... totally sucks ...
@nikita2206 why isn't Closure::fromCallable statically verifiable ?
 
10:19 AM
@JoeWatkins I think you're being a bit pessimistic with the 5-10 years though
 
are you going to do that again ?
 
Wasn't it bob?
 
@JoeWatkins it is not statically verifiable for all cases because it's a function call, if you have ["Classname", "methodName"] at least somewhere then it is not static anymore.
 
it was all of us ...
I don't think it's pessimistic, not least of all because the kind of patch that people want doesn't exist (one with absolutely no measurable overhead) ...
the only way from here is more complicated, I don't see a way it won't look just as bad on micro-benchmarks, which is what lost it, I think ...
 
Was it really the overhead though that made it fail?
 
10:24 AM
the only thing that changed after the vote was reopened was a clarification of performance characteristics ...
 
@JoeWatkins That part was there previously as well
 
I think the broken code gets broken was an issue
 
It's pretty likely that it was just an unfortunate conformity effect
 
!!rfcs
 
10:25 AM
That and Dmitry didn't like it
 
Still sucks though :(
BTW could somebody look inside @salathe's head? I'm wondering why he is againts iterable
 
@Gordon A "manther"? I just googled that!!
> A man of middle age who actively seeks the casual, often sexual, companionship of younger women, typically less than 35 years old; by implication a “sexual predator”.
Well I'll take the middle bit but not the rest!
 
Looks cool on business cards though
 
@NikiC which is really confusing, because he worked on it for quite a while ... if I had known he was going to say what he did as soon as the vote opened, I may not have bothered ... people do follow him, because easier than understanding ...
 
@Jimbo its the equivalent of a cougar and I didnt want to call you a JILF ;)
 
10:30 AM
:D
 
@Jimbo do you want me to remove the comment?
 
@Gordon Nah it's funny I'd never heard it before
 
me neither. I googled it, too. lol
 
@JoeWatkins Yeah, I didn't really expect that
 
Will iterable RFC be able to match php 7.1 release (in case it pass the vote?)
 
10:36 AM
yeah
that and about two other features ... that's 7.1 ...
 
so it's fine to add features when alphas released, right?
 
what about typed props, will there be a one more attempt? It's really nice idea.
 
freeze is supposed to be beta 1, so time has run out to start new discussions ...
@pinepain nope, no time ...
Davey and I are discussing another alpha possibly, I dislike the cramming ...
 
damn, you and Phil did a great job
 
10:39 AM
it was all of us actually, niki, bob, and dmitry were all included also ...
 
and what can you say about claims about how typed props unset() behaves?
 
Wes
@JoeWatkins still the result leaves all doors open... for 7.2
 
I don't think it could have been better, it's sad not just because it's declined at the moment, but because the approach is not worth revisiting, and I don't like any alternatives that I can think of today ... and probably wont have the energy to try again for years ..
 
Wes
:(
 
I'm not going to vote for anything that makes life as an ext/core dev difficult, make no mistake typing variables will make internals difficult to work with on a whole new level, we can hide it with macros and engine modifications, but it will be there whatever ...
 
10:42 AM
@JoeWatkins One thing we could reasonably improve is support for static properties ... but I don't think people cared about that part much
 
yeah, it looks like a lose-lose situation with that unset() behavior
and static props support would be great
 
@NikiC I don't think they did either ...
 
though, what I would love to see is that functions and classes as first-class objects
but that would break all the things in php
 
maybe if we can get through an RFC removing the ability to unset declared props, then we could remove some of that strange ... but it will be objected too by the same people that objected to the details of this implementation ...
 
as dynamic props management is not what considered to be a good practice, i guess restricting that would be a great benefit not to typed props only.
 
10:48 AM
you would think so ... but just because it makes sense doesn't make it good for php ...
un-setting declared properties is a feature that is relied on to implement some pattern(s)
 
yeah, that will break bc
 
so is references, for that we really have no solution, at all ...
 
so core php is a hostage of legacy codebase
are there any reasons and possibilities to implement such changes in next major release (8, I guess)?
 
I dunno ...
 
I guess no one knows for sure, but there should be some roadmap where PHP as a language goes
unless, it may start walking around things and go to nowhere as a result
 
10:54 AM
it's too hard to organize the thoughts of so many people, people who don't agree on basic things ...
 
true
but there's organization behind PHP
are there milestones planned for PHP releases?
(apart this time table wiki.php.net/todo/php71)
 
nice Joe =)
 
sad but nice
 
Can you use xDebug's cachegrind output to check what SQL is being passed into PDO?
 
11:07 AM
@JoeWatkins you should merge the images , add captions and post it on /r/programming ... link karma sometimes is useful
 
@Sean uhh, I think not
 
What am I missing? PHP isn't logging to apache's error.log file. Error.log has a+rw. If I restart apache it adds a few messages. log_errors is 1, but using error_log does nothing
Nvm, I'm dumb. I'm guessing php.ini is overwriting the log location, which is a fresh install of php 7. It pointed to /var/www/php-error.log, which doesn't exist. touch'd the file into existence and it's writing to it.
 
Wes
@JoeWatkins how php works
 
How #OSS Works https://t.co/6kTWcrlb4h
 
11:23 AM
@NikiC what is pierre talking about ?
 
Wes
is the word "individuals" used for anything or it's used only for persons? sorry for the multiple engrish silly questions :B i want to say: "distinct set of things"
 
Well.. DPC was kinda fun, food was good, talks were alright, rooms were often too crowded but the free ElePHPant made up for it all. #dpc-in-a-nutshell
 
@Wes doesn't imply persons, doesn't really sound like the right word though, more context may be helpful ...
@DamienOvereem what kind of elephpant ?
 
@JoeWatkins So that leaves the average OSS coder like this: files.slack.com/files-pri/T04PP96HU-F1LHAN9GS/110725sketti.jpg ?
 
@JoeWatkins I think they had a white one with dpc/amsterdam logo
 
11:28 AM
can't see that ...
 
Wes
i'm looking for a one-word (a noun) for something like $contents->individuals() which filters out duplicates
 
@Wes distinct?
 
or unique ...
 
filterDuplicates()
The method does something
 
lol
 
Wes
eh, not really @PeeHaa, i wanted a noun Gordon, Joe distinct and unique aren't
 
And a cute little white elephpant splattered with ibuilding's advertisement
 
"which filters out duplicates" tells me it does something
brb foodness
 
@Wes distinctness() :P
 
11:31 AM
why does it need to be a noun ?
 
deduplicated() also
 
Wes
just because sounds strange to have a method that has an adjective as name :B
 
toSet() would also work if php had sets
 
meh, who cares ... soon as you named this thing you can get on with some real work ... name the thing already ...
 
11:33 AM
Name it George @Wes
 
or Sue
 
I have a cat named George, if you needed a reason to call it George ...
 
Wes
@JoeWatkins that should be the tagline of php :B
this's one of those days coffee is never enough. argh
luckily @ 6pm nation will stop
 
@PeeHaa Leave my head alone!
 
@salathe can you do some karma for Davey please ?
he doesn't have karma for php-web or php-src
and I would quite like karma for php-bugs ... but not super important right now ... but Davey's is ...
I guess Ferenc is too busy, we have asked him multiple times ...
 
Wes
@nikita2206 that wasn't bad tho
 
That should work @JoeWatkins
 
that's really odd, he says he couldn't push
 
Is he using the correct push url, maybe he never set that up?
 
will check, thanks for finding that for me ...
 
@salathe Good thou are here\
WHy you voted against iterable?
 
@PeeHaa No clue what you're talking about. :)
 
@salathe RFC watch thinks you voted no on it, RFC itself does not
 
Good to know I didn't miss anything
@DaveRandom He just removed his vote ;-)
 
I don't like iterable, but not strongly enough to give two hoots trying to explain why.
 
12:00 PM
I call foul play and demand a second referendum on the matter
 
heheheheh brits
 
Actually I think we should be made to vote at least twice on everything, most people don't seem to know what they want until they see the results
 
Adding in yet another keyword for iteratraversibatorable, I can see why it's wanted so you can "just foreach it" and have type declarations, but... the whole thought of it makes my skin crawl.
 
@DaveRandom that's all the faults of internals though. regular devs are sick of the experts in there. we want simple solutions!
 
@salathe tnx
 
12:04 PM
@PeeHaa I'm going to cry, the first time a "I have an iterable so why can't I use Iterator methods on it?" question comes in.
 
@salathe this
 
or... the same question but with array functions :(
 
That's also my issue btw
Good thing we have union types now!
oh wait... :P
 
I haven't thought too hard (thinking hard, hurts!) but it seems to me to be only useful, if you take in the iterable and all you do is foreach it.
And that's a lame reason to add a new keyword.
 
True
 
12:05 PM
Hey, im in symfony framework. I need to generate a new request by the id i got while iterating through a loop . How can i generate the right request ?
 
I don't get why we can't just special-case it such that passing an array satisfies Traversable. Seems like it would have the same effect in marginally less horrible way
 
But if "everyone" wants it... so be it.
@DaveRandom exactly my thought, but hey ho.
 
@DaveRandom That's what it should be like
 
Does anyone know if doctrine dbal query builder allows user variable stuff like:
SET @counter=1;
select * from (
    select *, (@counter := @counter + 1) as counter from foo where
)
where counter in (1, 4, 8, 2);
 
jeez, the brexit FUD just isn't stopping
 
12:14 PM
@tereško who cares… it's steam sale. by the time you are done playing all your new games, brexit will be over
 
no repro Call to a member function on string error - sam - 2016-06-27 11:30:27Z
 
this is so funny: boredpanda.com/…
 
@Gordon actually, it probably wont. From what I have seen, UK government want to make the transition happens in 2-3 month so that people have adapted to the "new normal", while EU leadership want to make it as quick as possible to cause largest amount of shock possible ... to turn EU in object lesson for other countries (like Netherlands)
but, by the time Steam sale is over, the fear-mongering should have died down
 
This steam sale has been pretty "meh"
 
dunno, it has been quite ok for me
then again, I has 100+ game wishlist
 
12:29 PM
No daily deals or anything, no reason to check back or get excited after the first day
I just trimmed mine back down to 87, thinking .. actually, I don't really want that
 
you do realize that daily deals are actually bad for you as a consumer AND would be impossible with the new refund policy
 
Not sure how you think they are bad, the rules were simple, if it wasn't on a daily deal or flash sale, wait until the last day for the "encore" where every game is at it's lowest price during the sale
 
think on it .. maybe try writing down positives and negatives
or wait .. emm ... 4 more hours till I am home from work
 
I think the only thing I'll buy this time around is Witcher 3
 
can you link to your current library?
maybe I have some suggestions, that you would find interesting
 
12:40 PM
Uh, I think it's private
 
hmm
 
uhg, 500+
maybe you just already have all the interesting games
 
a lot from humble bundles
that i've never even played
 
one small game that I definitely can recommend is "NEO Scavenger", but it's a small pixelart rogue/survival
also, XCom2 is on sale
 
12:50 PM
I never got around to finishing the first one
and neo scavenger is on my wishlist
 
also, Mount&Blade is a really interesting game
but that's about it from what I can recommend for you, I think
 
how are you getting on with your steam controller?
 
I actually yesterday made the first proper long term test of it: installed "Injustice"
seems fine for now, but I need to play some twin-stick shooters before I can give a definite verdict
 
1:08 PM
Oooh mini GBPUSD rally
 
?
 
Sorry, just been trying to trade this market all day
Offset my horrible losses in the stock market
 
you should have pulled out your assets at least week before and shorted
the markets would have taken a hit no matter of the outcome, and the independent polls were saying that "leave" was in lead for more than a month
but what do I know, I am just a code monkey
 
Anybody know what's up with lxr.php.net?
Seems down.
 
Nobody knows who / what / where runs the thing
 
1:13 PM
LOL, that doesn't help :D
 
Nope it doesn't.
 
literally, the company who host it did not know that they hosted it
 
@DaveRandom That's not too uncommon. Anything can happen on a VPS or even a shared hosting box.
 
@kelunik Thanks.
 
Wes
1:20 PM
you just need to crack the da vinci code
/me hopes that someone gets the poor joke
 
1:39 PM
@Jimbo I feel bad now. I called you a manther in front of your uncle.
 
@Gordon He has similar sense of humour, all good ;)
 
@Wes because assigned to danbrown?
 
Wes
@Gordon thank you :B
 
@tereško I was trying to trade the dip. Did well on friday, not well today on stocks, better on currencies.
 
the news are trickling in that UK isn't even close to being the worst affected
 
1:47 PM
Hi folks. What would be the best way to have two parallel PHP versions running? Currently, I am using PHP-5.6-fpm, but I'd like to use PHP7 as well. Server: Ubuntu / Apache2.4. Should I use Docker?
 
what do you expect to get from Dockr?
 
PHP7 ._.
 
I am using Froxlor as an admin panel
 
also, I am not sure what it has to do with PHP
 
1:48 PM
Docker
 
somebody in here can help me in symfony ?
 
@tereško I want to run two PHP versions. Quite PHP related, isn't it?
@Traxstar What do you need to know?
 
@ChristophBühler i've got a function where i need to pass a request object. But i dont know how to pass the right one. I tried $this->getRequest(); But there the $request->request->get('data') is empty
 
@Traxstar are you using PHP7?
 
@ChristophBühler no php 5 is running at the server... am i guessing right that u are german ? :D
 
2:00 PM
hi guys
 
@tereško Didn't expect it would be tbh. UK economy is strong, and EU saying crazy things about punitive trade arrangements will hurt the EU economies no end.
 
Junker is mad as hell that the island province decided to leave his empire :D
 
Merkel basically told him to stfu. :D
 
shit will calm down and we'll see
 
I have 2 scripts: one for entering user name and score in a game, and the other script is for displaying these results in a table. I am using these commands to move the directory of images from the temporary directory. My question is: why using these 2 commands in both scripts? `define('GW_UPLOADPATH', 'images/');
define('GW_MAXFILESIZE', 32768);`
 
2:04 PM
@JohnyNassar we are not here to support third party scripts
 
I mean those commands can't be defined once for all?
 
@JohnyNassar They can be defined once, absolutely.
@JohnyNassar You could use environment variables, a common entry point, or a database.
 
you can, he can't
 
tbh if that's not enough information, I suggest hiring a developer (or reading a book) :)
 
a database can't be used in images because HTML img tag take only image filename
not binary data
 
2:07 PM
hire a developer, seriously
 
The data URI scheme is a uniform resource identifier (URI) scheme that provides a way to include data in-line in web pages as if they were external resources. It is a form of file literal or here document. This technique allows normally separate elements such as images and style sheets to be fetched in a single Hypertext Transfer Protocol (HTTP) request, which may be more efficient than multiple HTTP requests. Data URIs are sometimes referred to incorrectly as "data URLs". As of 2015, data URIs are fully supported by most major browsers, and partially supported in Internet Explorer and Microsoft...
 
and, FYI, you actually can ember an image directly in a HTML, but you usually wouldn't
when someone ways to use DB for image uploads, the image isn't usually stored in the DB
 
I'm currently reading Head First Labs PHP & MySQL book
 
just the file path, some meta-data and the author's ID
 
they did uploads images in files
not db
 
2:11 PM
In scenarios such as:

"Projects" table and "Users" table.

I want to 'SELECT * FROM Projects' but also
'SELECT COUNT(id) FROM Users
WHERE project_id={PROJECT_ID_HERE};'

How should I go about doing this?
Currently I have a hacky way which is to have a 'users_count' colunn in my Projects table that keeps getting incremented. I've been told this is bad for the future
 
@user2800382 it seems you want to use SQL JOIN statement: sitepoint.com/understanding-sql-joins-mysql-database
 
but the problem i was running into is accessing the project_id when it comes time to insert the project_id into the count statement
ah thanj you for this article
 
Can u help me to bild a mysql statement?
Here are the needed informations:
I need to grab the id from table: page;
Then i need to add new row to table: Backlinks where i set page_id = id from table page and then fill up the data...
 
Lol. Did somebody just open a cave or something ;P
 
my thoughts exactly
 
2:19 PM
It's probably Brexit-related
 
The SSL certificate of https://edit.php.net is outdated since 25 days. /cc @PierreJoye
johannes already answered but for headsup
 
Fuck off... What an idiots
 
who?
 
Jun 17 at 20:50, by bwoebi
1 min ago, by PeeHaa
6 mins ago, by PeeHaa
Jun 11 at 15:30, by PeeHaa
Jun 3 at 9:40, by PeeHaa
@kelunik jesus ...amateurs
@Gordon The box maintainers
 
@PeeHaa ah
 
2:27 PM
Before the end of the year it will overflow the chat window
 
maybe just add letsencrypt with autoupdating cronjob?
 
9 mins ago, by DaveRandom
It's probably Brexit-related
I'm going home, bbiab
(this, also, is probably Brexit-related)
 
@Gordon I'm pretty sure they are able to screw that up too
 
@DaveRandom I think special casing instanceof just for array seems awful, and iterable is the less horrible compromise. :-D /cc @salathe
 
2:39 PM
good afternoon room. I am working on an API and i'm coming across an error that i think is down to table locking. I'm trying to write to the same row multiple times within various updates, e.g. UserScore=10 and UserAction = now(). Sometimes both entries are saved, but more often than not either UserScore OR UserAction are updated. If it is locking, how can i check that?
 
Interesting question for you guys. PHP doesn't allow you to modulo floats. But it returns a 0 instead of a warning/notice/etc. Why is that? 3v4l.org/v0ZIe
 
i know that i need to save both entries in one update, vs. 2 of them. But for now i'm curious as to IF the issue is locking then i know.
 
@Machavity you need to use fmod instead
!!docs fmod
 
[ fmod() ] Returns the floating point remainder (modulo) of the division of the arguments
 
@Gordon TIL
 
2:42 PM
this doesnt answer your question though. I dont know why. I guess PHP
 
hello folks, what can i put in place of xxx? if(file_exists($file))? chmod($file,0666): xxx;
 
@ArrowHead try George
 
@ArrowHead or Sue
or lookup the php manual for the right syntax to use in if blocks
 
@tereško Yes you was right .. It would be safer if each device had its own cookie (that's because of session hijacking attack)
 
can u just tell me if this is a valid short tail ?
$followOk = (!empty($follow) ? 1 : 0);
 
2:46 PM
@Gordon, was hoping to use a one-liner , ternary instead
 
@ArrowHead if (file_exists($file)) chmod($file, 0666); is one line
 
@Shafizadeh so you actually DID do some reading on your own :D ... I was really busy playing store.steampowered.com/app/248860 at that time
 
@Traxstar any reason why this needs to be 1 or 0 instead of true or false? because $followOk = !empty($follow); would suffice then
 
ok
 
yeah it is for a mysql query statement @Gordon so i need 1 or 0
 
2:50 PM
@Traxstar doesnt this get type juggled when you put it in your prepared statement?
 
i dont know, didnt test this.. @Gordon
 
if it doesnt: $followOk = (int) !empty($follow); will work, too. I find that easier to read than the ternary.
 
Yeah u are right ! Thanks for the hint :) @Gordon
 
ako
hi there... i have a signUp.php form , when user signedUp but with invalid data , then (s)he will be redirected to the same page , now in that page if user try to refresh the page , signUp.php sends the same request that previously has sent , how can i prevent that???
 
How can i get time in this format in php ? 2016-06-03 12:39:03
 
3:04 PM
POST or GET?
 
@Traxstar ... simple google search of "php mysql timestamp" found this page for you alvinalexander.com/php/php-date-formatted-sql-timestamp-insert
 
@Andy thanks !
 
ako
@Andy POST
 
Anonymous
9 hours of work for nothing ... fml
 
ako
3:10 PM
can anyone answer my question please??/
 
@samayo Could be worse. Could be 9 years
 
Anonymous
@Machavity At least you like programming (I imagine) and/or are getting paid for it ..
 
Anonymous
I'm just wasting the best years of my life, with this s***t. :\
 
Anonymous
@ako Which page is getting refreshed?
 
Anonymous
You said the user gets redirected from the signup page ..
 
ako
3:16 PM
@samayo when user signUP with a POST request and data that that user has entered is invalid then user is redirected to the signUp.php form , now if user reload signUp.php form previous POST action will be sent
 
Anonymous
Have you tried using HTTP_REFERER to see where user is coming from??
 
Anonymous
I remember having the same problem some years back .. you should either use http_referere and/or sessions ...
 
Anonymous
!!docs $_SERVER
 
The $_SERVER superglobal variable is an associative array containing information such as headers, paths, and script locations.
 
ako
@samayo no
 
3:21 PM
@ako Before any output is sent, do your form processing. Then do a 302 redirect. Prevents the POST problem
 
@ako ^^
 
ako
i have the same problem when there is no redirect ... i have a signUp.php page with all HTML and PHP codes in this page
when user send a request
for example a POST request
then it is not closed after doing the request
and when user refresh the page
it ask the user if (s)he want to send latter data
how can i close that request ?
 
Gon
o/
 
ako
@Gon ?
 
Gon
nothing
 
ako
3:26 PM
@Gon bravo
 
Can I make a session alive when user closes his browser?
 
ako
@Shafizadeh set ignore_user_abort() function to true
@Shafizadeh salam ....khubi?? :-)
 
@ako :-) salam .. bache kojaii?
 
ako
@Shafizadeh man orumie... shoma??
 
@ako ahan, man ahvaz
 
ako
3:39 PM
@Shafizadeh xoshbaxtam....daneshjooe?
 
bale
 
ako
lisans??
 
foqe-lisans (karshenasi arshad)
 
ako
terme chand??
aha
koja mixunin??
 
@ako 3
 
ako
3:40 PM
hamun ahwaz??
 
Also I think we have to talk in English here ;-)
@ako yup ..!
 
ako
@Shafizadeh OK..no problem
 
well nice to meet you .. bye for now
 
ako
@Shafizadeh bye bye
nice to meet you too
 
Gon
> marokkaantjes
 
ako
3:43 PM
 
Is it just me or is gmail being unreasonably slow today?
 
Is there a canonical "the code in your question is vulnerable to SQL injection" response / link?
 
@bwoebi Was rereading the enum RFC and saw this part:
> This RFC adds a new token T_ENUM. The context-sensitive lexer changes allow for enum to be used as names for class methods and constants but not for class, trait or interface names or for functions or constants. There may be some programs out there using this name and there may be a minor BC break because of this.
 
@KevinMGranger You mean other than Bobby tables?
 
@LeviMorrison yeah, typical keyword addition BC disclaimer
 
3:54 PM
The context sensitive lexer changes were rejected, though, correct?
 
@LeviMorrison no?? you can have a method named exit for example
 
@KevinMGranger bobby-tables.com
 
@bwoebi But function names are not permitted?
 
Oh, you didn't just mean the comic. Thanks!
 
@LeviMorrison no (for obvious reasons like: function exit() would have to be called with exit() which would be weird as it's doing a ZEND_EXIT)
 
3:58 PM
> This RFC adds a new token ''T_ENUM''. This means any code using ''enum'' as the name for a function, class, interface, trait or constant will now fail to parse correctly.
Is that correct?
 
yea
 
@LeviMorrison s/correctly//?
 
@kelunik true
 
> This RFC adds a new token T_ENUM. This means any code using enum as the name for a function, method, class, interface, trait or constant will now emit a parsing error.
Better?
 
4:07 PM
@LeviMorrison yes
 
Gon
> Want to lose some weight? Head on over to Great Britain, you'll drop some quick pounds.
ahahahaha
 
@JoeWatkins Nothing...
 
Anonymous
Ah god
 

« first day (2081 days earlier)      last day (2860 days later) »