« first day (1374 days earlier)      last day (3574 days later) » 

12:48 AM
blah
 
12:58 AM
How is it that file_get_contents allows for raw php to be viewed?
Files on the server
I was thinking about maybe just doing pregmatch to see if it has the php extension but I still don't feel like thats a good idea
Anyone..
 
@Brandon php.net/manual/en/function.file-get-contents.php that function returns the contents of the file as a string, it does not evaluate the contents, it simply gets the contents
 
1:14 AM
@SteveBuzonas How can I prevent it from getting the source though?
 
@Brandon if you're accepting user input to get the file contents and output it to the user, you have potentially more issues than just leaking your php source such as sensitive os files
 
It is actually able to get the source code of files on my site
 
@Brandon you should limit where you can get the files from
 
@SteveBuzonas Yes I know, I am using it get the contents of PDF files, what are your suggestions to block other ones
or an alternative to it...
 
@Brandon my suggested alternative is store your pdf files somewhere out of your source tree in a media directory or something to that effect, then when you take the argument of the filename you append it to your safe path and then the user can only access files from the directory predefined for where they read files from
 
 
3 hours later…
4:41 AM
it is possible to make my status offline for specific users in hangouts?
 
We work in or on one of the most popular languages in the world, brilliant minds; yet we have to recess on the discussion of whether 6 or 7 follows 5...
If losing faith in PHP was this easy, why didn't I do it longer ago?
 
@JanakaRRajapaksha just unfriend them.
 
lol
 
@Jack i don't use google plus. i want to remove someone from hangout. but i can't block him
 
Create a new account.
 
4:53 AM
it is my email address. is there a way to ?
 
This is the Google products support chat?
 
good morning
 
@DanLugg "Voting started 2014-07-20 but was cancelled.", know why?
 
5:11 AM
@RonniSkansing The 6 vs 7?
 
Hmm, Andrea started the vote when the case for 7 wasn't beefed up enough so Zeev edited it during the voting period and removed two "pro 6" paragraphs.
 
@ircmaxell It'll be the unicode branch for me, forever. There's no need to not reuse PHP 6.
 
oh.. =/ I will go read the mailling list..
 
If you have nothing else to do ;-)
 
5:14 AM
Often it gives me some perspective I might not have considered in the start.. but yea.. morning coffe and abit of "junk reading" ;)
 
@ircmaxell I think people want to learn about PHP 6 when PHP 7 comes out… as we all know, in real environments never the newest version is used… so they'll learn from the old PHP 6 books… because there are no new, up to date PHP 6 books then.
 
Hi all
 
Hi @AryaVNair
 
 
1 hour later…
hey did I answer this correctly? stackoverflow.com/a/24858772 well I know it's a silly question to begin with
 
@DaveChen I'm afraid, OP's (that I usually use) means register globals ..
 
6:49 AM
I don't understand why this question was so heavily downvoted
 
It's a bad question? The difference is ... that those two things are different =p
Didn't vote for it, though.
 
@SecondRikudo may be because of smell of register globals, I'm not sure
 
@Jack Two years ago that question wouldn't have received this many downvotes. And the rules haven't changed that much since.
It's not that bad a question.
 
Why are you talking about rules as if they're something quantifiable?
Or enforced for that matter.
Yes, it's not that bad in the sense that there's a definitive answer to it.
 
@Jack The rules are not quantifiable, but the hostility of the community overall grew. A lot.
They see a downvoted answer and pile on
Justifying it with "it's my right to vote, it's a crap question", bitch please, it's bullying, and that's how the OP feels even if you tell yourself you weren't.
 
6:56 AM
I think you're preaching to the choir imo :)
 
Oh? PHP 6 vote was revoked?
 
Yeah =/
"Voting fraud" heh
 
That's the holy war, no less
 
Voting fraud? Whawhawhawha?!
 
hm.. is it possible to call closure which is stored in object property without using call_user_func()? - only with some syntax?
 
7:09 AM
Good morning.
 
good mornings
 
@AlmaDo Umm, $object->{prop}() I believe
 
like for this question.
@SecondRikudo fail..
 
Than probably not.
 
I tried many things, nothing worked
I checked syntax was just failing in that case
 
7:12 AM
Monring
 
morning @iroegbu @PeeHaa
 
@AlmaDo No, but maybe soon.
 
($obj->closure)() Yeah
 
7:43 AM
Morning
 
I genuinely hate my project manager
 
mornin'
@PeeHaa have you had tickets yet?
 
Gooooood morning Room 11 :D
 
@tereško Have you tried applying your keyboard to his face yet?
 
I wonder, should I look for a different job, just because of a single project manager ..
 
7:47 AM
 
maybe, complain to someone higher
 
Dear room owners, can we get this unstarred since voting isn't open (again) yet?
 
> Dear Pieter,

The payment for your tickets to PHPNW14 has been successful. Please find attached an invoice for your records.
@Farkie totally awesomesauce!
tnx for following up
@salathe there you go
 
@PeeHaa merci beaucoup
 
7:49 AM
emm ... who the fuck was the retard, who added
> 7 is perceived as a lucky number in both the Western world and Chinese culture.
.. under "Strong reasons"
 
@tereško Zeev :P
 
those are not "strong reasons" but "idiotic excuses"
 
> 6 has the best number:dividers ratio.
 
That whole RFC I have a very strong feeling of...
 
@salathe :D
 
7:53 AM
@tereško that's equal things for most of managers. Did I say something new?..
 
@tereško You should always keep your eye open for other opportunities. If you like your job otherwise, go speak to a higher up manager.
 
@salathe That's because everyone can relate to version numbers :)
 
Bikeshed problem at its finest
 
It's a very simple concept, so many people will have their own ideas about it.
So perhaps the next version number should be a highly sophisticated formula.
A laugh did escape me when reading Lester's assertion that Windows Vista wasn't bad.
 
@Jack it was assert false?
 
7:57 AM
I agree that Vista wasn't bad, it was terrible :)
 
@Fabien the company has a flat org-chart
 
What's that?
 
the "higher manager" is the guy who owns the company
 
And he is in the office?
 
yes
 
7:59 AM
So you can speak to him. Either that or address the project manager directly and honestly (without swearing).
Realistically those are your 3 options that I can see.
 
BEGIN
WHILE (1 < 2) DO
SELECT * FROM `course`
END WHILE;
END
is there any wrong in this loop ?
MySQL server version for the right syntax to use near 'WHILE (1 < 2) DO
SELECT * FROM `course`
END WHILE' at line 2
?
 
We are keyboard warriors.
 
DC-
it says there is something wrong right ?
 
I have already spoken to him several time, but he just keeps pushing for unrealistic time frames and talks about "taking personal responsibility"
 
8:02 AM
@SecondRikudo is that from a movie?
if so, i probably gotta watch it
 
@Jack "Wanted'
 
thanks :)
 
@tereško Then try to set a principle. He doesn't set any deadlines without consulting you first to confirm they're manageable.
@Jack You've not seen Wanted? -_-
 
oh , he has consulted
but the deadlines he keeps pushing for are based on 2 month ago made (vague) estimates
 
@Fabien I ehhh ... should I have? heh
Judging from just that scene, maybe yes haha
 
8:04 AM
Yeah, fun film. About a group of super secret assassins who can curve bullets.
Also got a great NiN song in it that's perfect for Mondays
 
DC-
Jack ass manager ??
 
it goes like this: developer estimates "this will probably take 3 weeks" , then he reports to the boss and client "project will be complete in 3 weeks"
 
love that sh*t
 
DC-
then its not the problem of the developer
 
@tereško So tell the dev to say 4-5 weeks.
 
DC-
8:07 AM
just make sure what you say is documented some how
and later make him burn in hell
 
email most usually
 
developers who get burnt like that will quickly learn to overestimate.
 
Yup. I always take my intiial estimate and tag on * 1.5
If they think it's a long time frame and they want it shorter I say they can have it if they want a lower quality of website which will lead to more investment in fixing bugs in the future.
Or they can remove phase A features.
 
well .... past 30 minutes I have wasted by focusing on "do not break anything, do not break anything"
 
DC-
Have you tried talking to him ?? like man to man ??
 
8:09 AM
6 mins ago, by tereško
I have already spoken to him several time, but he just keeps pushing for unrealistic time frames and talks about "taking personal responsibility"
 
awesome @PeeHaa, didn't need to do anything, then :D
 
@tereško Fire him :D
 
Oh, Lester.... *facepalm* #internals
 
@Fabien oh cool, he plays in atonement :) good actor
 
@SecondRikudo have been considering it
 
DC-
8:10 AM
i mean like do he know that you are in controll
because you should be
he is managing the project, not you
 
@tereško It won't get any better and you'll end up really bitter. Working should at least be bearable.
 
DC-
when it happens to me i simply say no
 
Especially someone with your talent.
 
DC-
yeah, the worst can be loosing a job and the best will be finding a new and better job
 
@tereško The only thing I can think of is taking this up the ladder.
And I'm not sure that would help either
 
8:12 AM
@tereško Think of it this way... remember those interviews you were doing... think about how hard it'd be for them to replace you. They don't see it that way, you have to open their eyes sometimes.
 
@SecondRikudo it won't help
 
DC-
@tereško you wont know if you don't try
 
@SecondRikudo except that there's no ladder.
 
@Jack I'm pretty sure @tereško isn't the CEO yet
 
That would be one step, not a ladder.
 
DC-
8:14 AM
lol
 
.. I mentioned the "flat org-chart" some moments ago
there won't be any CTO until company hires at least 3 more php devs
 
@tereško Well either way no one is going to improve your situation but you.
 
@tereško So currently, you're "king of the hill"?
 
@tereško is it difficult to find a reasonably paid dev job there?
 
a startup?
 
8:16 AM
You have no one to turn to for backup?
 
and, if my intuition is accurate, then said project manager has solidly convinced the boss that I shouldn't be the CTO
 
You shouldn't. You should be CTO
 
.. sorry .. I keep mixing the terms
 
Oh.. sneaky edit.
@tereško Fuck this guy then.
 
Asking us to consider the luck value in a version number is providing ammunition to those saying we are bumbling idiots.
2
 
8:17 AM
Balaclava and keyboard.
 
morningz
 
lol
morning
 
I wonder what the other language communities think about our little 6/7 debate.
 
Morning joe
 
Morning Joe
 
8:18 AM
@JoeWatkins well , it would be fine if it was listed in "funny trivia" section, instead of being under "strong arguments"
 
DC-
@tereško where you from?
 
latvia
 
yeah someone said they thought it was tongue in cheek, and I was too embarrassed to correct them ... it does appear to be a serious request that we consider the luck value of a number for versioning ...
 
@tereško Tell the boss that the project manager is implicitly encouraging overestimates in project times, and potential waste of resources.
 
AFAIK all of the projects go more then 50% over budget
 
8:20 AM
@JoeWatkins oh hi.
 
By pushing misguided and irrational deadlines, you'll cause the devs to tell you twice their original estimate.
 
DC-
@tereško wow, thats a nice place
 
@JoeWatkins The inverse reasoning of that would mean that PHP 4 should have been skipped too, because in Asia (China) that's considered unlucky :)
 
the only project in past 1.5 years that did not go over budget too badly was mine (it has 20% underestimation) .. the not-really-funny part was that the main losses in said project were the 150% additional time in "project management" (constitution 90h)
 
@tereško sounds like something training can fix though. Projects going over budget and over time is extremely common, and it's something more careful monitoring and better executive decisions can really help. If you haven't tried it you might be surprised how useful feature freezing and time constraining rather than feature constraining projects can be.
That, and giving developers more "ownership" of projects.
 
DC-
8:23 AM
its more like these days companies target based on numbers and are not realistic anymore
 
What happened to the vote?
 
DC-
things need to be practice, everything has a limitation
 
@BenjaminGruenbaum suspended because ... naughty edits during voting period.
 
@Jack I don't think there is any reasoning ... it's not reasonable to ask me to consider that a number is lucky ... if I say that in some cultures a cow is considered sacred so we should call PHP.NEXT PHP COW, this futher makes sense because PHP utilizes Copy On Write ... that's not reasonable, even though it contains loose reasoning ... it's insulting, and stupid ...
 
it's reasoning, but without any objective measure.
 
8:27 AM
@Jack why are people spending so much time on it? It's the classic bike shed. I mean - I realize a lot of people want to contribute and/or sound smart but are really not very competent and like spending their time on the 'simpler' things.
What I don't get is why people like @JoeWatkins give a damn about the name of the next version... it can be called PHP 67 for that matter
 
@BenjaminGruenbaum People are spending so much time on it, because it's bike shedding.
 
@Jack huh?
 
It's the very definition of it.
 
In JS land people run from bike shedding like from fire, the discussion often dies very quickly since when someone brings something like that up people just don't respond to it.
 
I really don't care what number is used ... but don't like to have my time wasted, I took time out of my day yesterday to review an RFC that was rushed to voting stage, and am presented with nonsense ...
 
8:29 AM
Then again JS has a central committee which resolves such things that are insignificant itself.
@JoeWatkins you don't have to vote on every RFC :)
 
DC-
time to go, chaos guys
 
@BenjaminGruenbaum yeah , well , that's not how project get sold here
 
no, and I haven't recently, but if I had chosen to vote on nikic's last rfc, I would not have been presented with nonsense ... it would be reasonable ... this isn't reasonable, and has zend's name on it ...
 
PHP 6 why... because we're currently on PHP 5. That's all I think.
 
@tereško what if it comes with 3 articles that explain why it actually saves a lot of money?
 
8:31 AM
we are asked to make time estimates based on vague descriptions from clients
then client is sold this time (lately without any safety margins) and techical design begins
 
@Fabien From what I could tell by looking at the votes, it seems that (on the whole) those who have had involvement in php-unicode branch naturally vote for 7.
 
mornings
 
@Jack How very impartial :p
Morning Dave
 
Yeah
 
8:34 AM
@tereško not an issue as long as the client knows it's an estimate and that there will likely be renegotiation based on the progress of your shipped increments.
 
they never renegotiate the price
=/
 
They don't pay extra for more time?
 
I have a fixed salary
 
So the plan is if 7 is the next PHP version, try and get a feature in PHP and sneakily add a reference to PHP 8. Then someone else write a book on PHP 8 and we'll skip to 9.
 
Fixed* until the next appraisal
 
8:35 AM
@tereško I mean the clients
 
nope, not that I am aware off
 
@tereško You ever worked out your salary based on 'all' the hours you do, not just the regular ones?
 
not really
 
Sigh, is Yasuo pulling hashing algorithms out of thin air, or what? password_hash(hash('sha512', SOME_SECRET_SALT).$password, DEFAULT); .. dafuq?
 
@tereško that sounds like the mistake IMO, you can sell clients hour banks and then when they run out charge more. Doing "fixed price for project" makes no one happy and everyone frustrated from my short experience doing it.
 
8:36 AM
yeah , well that's how everyone here thinks things have to be done
oh .. and I have a iOS developer who keeps blaming me for his own delays , even though he hasn't even implemented half of the API that is avalable to him
 
@JoeWatkins that's one vote that should have an explicit "abstain" option. Or maybe it should just be labelled "idgaf".
 
@tereško At least it's better than the last place :)
 
=/
that not cheering me up at all
 
@DaveRandom I'd say flip a coin, but then we'd get into this argument about which coin is the most suitable =/
 
@tereško it seems "team" was failed in your case
 
8:42 AM
@Jack It's OK, we can vote on which coin to use. My vote is for a Ningi.
 
Coin toss: heads means 6, tails means not 7.
 
what are the cases for PHP6 btw?
 
Noooooo
Someone upvoted me, so SO score is now on 1010
been 1000 for a week or so
 
Get downvoting
 
8:47 AM
@AlmaDo When a "team" fails, blame the team leader / manager :)
 
wud
 
@Gordon Derrick picked 7
Also 6 has many dividers.
 
so, there are no cases?
 
@Gordon afaict, only 5 + 1 == 6 is the one that makes sense.
 
That ^
 
8:50 AM
The rest argues for !!6
 
6.5
 
I vote for PHP Kitten
4
 
@SecondRikudo it probably has something to do with him giving lecture about php 6 in 2008th
 
PHP++
Objective-PHP
 
Just P
 
8:53 AM
:D
 
I was looking for an excuse to use that, thank you :D
 
@SecondRikudo just guessing about his reason
it's also likely, that his name is attached to one of those "php 6 books"
 
\o/ (also, i hate the "via 9gag.com" xD)
 
@tereško That would be his own fault. So once again
 
=.=
 
8:55 AM
please stop
 
Yeah, it's too large :X
 
I am already pissed of to the "seeing red" stage
 
Also, it's not a kitten.
 
Ugly kitten =]
 
Your species detection module is faulty.
 
8:56 AM
PHP Enthusiastic ElePHPant
we all know that's the One True Next Version Name™
 
1 message moved to bin
 
Can you imagine if @tereško's project manager started talking about what MVC is.
 
1 message moved to bin
 
@Fabien XD XD XD XD XD
 
I would just laugh in his face
 
8:58 AM
@PeeHaa Thank you fugp
 
@tereško You'd have a good laugh here then :)
 
@tereško Yeah, every time he fucks up, just imagine him talking about MVC
 
Maybe PHP can start having codenames. PHP 5 AKA Project Kitten. PHP 7 AKA Project WTF happened to 6.
 
@Jack lol =]
 
@Fabien like on interview which I had not long ago. They asked what are disadvantages in some architecture where class "Email" extends class "Sender" .. sigh I just said that it's not a disadvantage in that. Simply whole architecture is crap (: I think they were offended ..
3
 
8:59 AM
What version of PHP are you running? Version Kitten.
 

« first day (1374 days earlier)      last day (3574 days later) »