« first day (2056 days earlier)      last day (2906 days later) » 

10:00 AM
Did you perhaps do something silly like UPDATE crew_info SET image_name = ? as your update SQL and forget to include the WHERE id = ? part?
Which would result in one user updating the rows for all other users...
 
hey guys
 
Do some leg work...
 
Adi
here is my query for that @Sherif $query = "UPDATE crew_info SET image_name = ? WHERE id = ?";
 
if you are to use ssl is it advisable to buy the certificate from a different host provider?
 
different how?
 
10:01 AM
from the web host
 
why?
 
@Adi Why not try looking at your database to see what's really in there? Open up your mysql command prompt and examine your table. Gather facts, not assumptions.
@GotaloveCode Unless you're interested in EV certificates or something of that nature, my only advice would be, why pay for your certificate when you can get one for free? letsencrypt.org
Plenty of other alternatives out there as well in free ssl certificates.
Break out the Google fu.
 
@Sherif hpkp
limited number of domains
 
@PeeHaa What is hpkp?
 
no wildcards
@Sherif key pinning
 
10:05 AM
Sure, if you want a wild card domain go pay for your certificate.
 
no access to server @Sherif
 
@GotaloveCode hmm? Why are you in need of a certificate then?
You do realize you need access to the server in order to install the SSL certificate, regardless of the provider, right?
 
@bwoebi heh
 
@NikiC yeah, why do people directly change PHP source :-/ and report bugs based on their version…
 
@bwoebi What, you don't provide enterprise support for you free open source software?
I want my money back.
 
10:10 AM
lol
 
Hello my friends, any help with installing and integrating xdebug with "enable multiuser debugging via Xdebug proxies"
 
@Sherif I already spent it on an nginx license
 
> Dear Linus Torvalds, we modified the linux kernel and now we got a kernel panic. We're under SLA with our client so please respond ASAP to this bug report.
 
!!? enable multiuser debugging via Xdebug proxies
 
Search for "enable multiuser debugging via Xdebug proxies" (https://www.google.com/search?q=enable+multiuser+debugging+via+Xdebug+proxies&lr=lang_en)
• Multiuser Debugging via Xdebug Proxies - JetBrain… - To enable multiuser debugging via an Xdebug proxy server. Open the … Configure access to the requir… (https://www.jetbrains.com/help/phpstorm/2016.1/multiuser-debugging-via-xdebug-proxies.html)
• Multi-user debugging in PhpStorm with Xdebug and… - In this tutorial, we'll see how Xdebug works and how we can configure our web server and PhpStorm… (https://confluence.jetbrains.com/display/Ph
 
10:13 AM
There's a bot in here?
 
!!version
 
When did this happen?
 
@Sherif Ask him whether he's a bot ;-D
@Jeeves Are you a bot?
 
10:14 AM
@Jeeves Are you human?
 
@DaveRandom Oughtn't it reply to that??
 
@Jeeves thanks :)
 
@Devilion You're welcome!
 
hi, i'm new here
 
Hi. Been a while since I was here last
 
10:15 AM
@Jeeves will my Etsy stocks ever yield a profit?
 
!!wotd
 
Pierian: of or relating to poetry or poetic inspiration.
 
Meh.
 
!!will my Etsy stocks ever yield a profit?
 
No.
 
10:15 AM
sorry @Sherif, looks like you're out of luck
 
I knew it was a bad investment :/
 
how about php 7
 
!!command list
 
Commands currently mapped:
 > - Executes code snippets on 3v4l.org and displays the output (3v4l # Eval)
 ? - Retrieves and displays search results from Google (Google # Search)
 are - Should I write a description or rather not? (Should # Is)
 canon - Posts links to canonical resources on various subjects (Canonicals # canon)
 chuck - Posts a random Chuck Norris joke (ChuckSkeet # Chuck)
 did - Should I write a description or rather not? (Should # Is)
 do - Should I write a description or rather not? (Should # Is)
 
for reference @Sherif ^
 
10:16 AM
@DaveRandom why didn't that get a reply? github.com/Room-11/Jeeves/blob/…
 
@Jeeves are you case sensitive with these commands?
 
what do you mean
 
@Rakesh I'm waiting for PHP 7.8.7, the version that will be more efficient and lightweight than ever, and only occasionally catch fire.
 
@bwoebi because he asked "are you human", which we should indeed probably handle
 
@DaveRandom No my question
 
10:17 AM
but that magic is @PeeHaa's creation, I'm not touching it :-P
 
3 mins ago, by bwoebi
@Jeeves Are you a bot?
 
Yeah will add some more fixes later today
 
oh, humm
 
@bwoebi Not sure what happened there
 
@GordonM i'm too,, it also has more response per server
 
10:18 AM
@Jeeves can you do something
 
@Sherif What do you want me to do?
 
dunno @bwoebi, bug prolly
 
Fiiiiix it
 
Hmm, a PHP room with a bot written in PHP.
YOLO
 
@Sherif In what language should we write it then?
 
10:19 AM
Swahili
 
@bwoebi Haskell, obviously.
 
$auryn->share($auryn); // yolo
 
@PeeHaa // nolo
 
^^ #TrueStory
 
I've always found it funny that nolo and yolo have the same three last letters…
 
10:22 AM
@Jeeves which is better Zend Debugger or XDebug?
 
var_dump
 
Anonymous
lol
 
@Danack the part of the RFC after Variance is fine?
 
@AnmolRaghuvanshiVersion2.0 Happy Prebeccaday!
 
10:31 AM
@PeeHaa did you get translation to work?
 
@Danack migrated your suggestions to the RFC :-)
 
I have access through cpanel @Sherif so we can say limited access to server
 
@GotaloveCode Regardless of the interface; the capacity to adminstrate the server is there.
 
Last time I tried looking into letsencrypt it required me to run some code from github which I was unable to
from the server unless there is sth am missing @Sherif
 
11:01 AM
@Levi @JoeWatkins sent pre-vote announcement out to internals
And thanks again @Danack for your excellent RFC wording suggestions
 
@bwoebi there's a misformatting in "Return type example"
 
oops
 
!!rfc
 
@iroegbu Can you open an issue for it so I don't foget?
 
11:04 AM
... oh, he changed the command…
 
no
!!rfcs
 
!!rfc 111
 
Nope, we can't have nice things.
 
they are different.
@Jeeves what do you think about Laravel?
 
11:09 AM
@AdilIlhan It's crap and should be avoided
 
heh.
 
[Teen hacks into North Korea’s Facebook knockoff](http://nypost.com/2016/05/31/teen-hacks-into-north-koreas-facebook-knockoff/)
#justNorthKorea
 
@bwoebi the nullable section might need to be higher. Also the text in "True/False It has suggested that being able to explicitly use" might need to be made more emphatic - as the rest of the RFC does propose it, doesn't it?
I.e. it's no longer a suggestion, it's part of the RFC ....
 
@Danack yes, it is…
good point
 
The Reflection part probably needs clarifying on FQCN vs use'd names:
<?php

use SomeNameSpace\Bar;


function foo(Bar $bar | int) {}
 
11:13 AM
@Danack it reuses the existing semantics
Which should be FQCNs
 
k.
 
the reflection part would be much better with having a distinct ReflectionType child class that would give a list of ReflectionType's, otherwise there is no point in this kind of reflection - you have to parse the type yourself
 
You've got to give people something to bikeshed over....
 
@nikita2206 Eventually, but we'd need to change the semantics again if we introduce intersection types… hence we were reluctant here :-/
@Danack haha :-D okay…
ping @JoeWatkins … do you think we should expose a getUnions(): array<ReflectionType> function? … Or any other proposition for the signature?
\cc @Levi ^
 
@AdilIlhan rfc requires an argument, rfcs can optionally take an argument
 
11:22 AM
yea
 
@Danack Actually, the rest of the RFC doesn't directly propose it, it's a separate vote for that reason … but I've slightly reworded it now
 
!!rfc callable-types
 
Accept callable prototypes? Yes (15: 51%), No (14: 48%)
 
I am still on the fence about that proposal, I think I'm now leaning towards requiring a proper type declaration
 
Anonymous
function reduce(int $a, int $b, callable(int, int):int $reducer): int {
  return $reducer($a, $b);
}
 
Anonymous
11:25 AM
no no No NO!!
 
why? @samayo
 
@Danack ideally, if we want this to be the bikeshed discussion, it's probably better when someone else than me initiates this discussion … so, I'd be glad if you could drop a short mail about a ReflectionType::getUnions(): array<ReflectionType> method… then I can take action tomorrow or so.
 
Anonymous
no good
 
Anonymous
is too much confus
 
delegate Reducer(int, int): int;
function reduce(int $a, int $b, Reducer $reducer): int {
  return $reducer($a, $b);
}
 
11:28 AM
i agree with you @samayo
i think this rfc shouldn't be passed
 
Anonymous
It seems everyone who starts learning C is using php and the rfc as a playground ..
 
In Doctrine how do you go about getting the many side of a one to many relationship with a custom query? I need to do more than just simple order the many side by a field
 
Anonymous
it wouldn't bother me that much if these rfc were not just syntactic sugars
 
@samayo show me an example of it implemented in userland
 
^
It's not just sugar, it's a feature I would really really love to have
 
Anonymous
11:34 AM
@DaveRandom Please tell me you are not kidding.
 
this syntax seems like Golang
 
The lack of the ability to express signatures for delegates is a huge hole in the type system
 
i felt write a Golang code instead of PHP code
 
function foo(callable $arg) I have no clue from this code what the callable is expected to do
 
delegates seems generics
am i right?
 
Anonymous
11:36 AM
@AdilIlhan Because that is the number 1 excuse most present if they want to push something to the src. X in Y programming language, so we must implement X.
 
No, X in Y programming language and it's useful because Z, so we must implement X
 
@AdilIlhan they are not but variadic generic classes could be used to represent this
 
Seriously, go write some C# for a while, you will be a little depressed when you come back to PHP
 
C# is really fun actually
If you know your OO PHP, you can pick it up in a few days, seriously
 
Anonymous
@DaveRandom If that feature is as critical as you make it sound to be, then how come nobody muttered any mention of it all these years?
 
11:38 AM
All the concepts you know transfer easily. There's just a few shitty things like if you want to inherit from the parent object you need to have the same constructor and call :base or something daft. Little niggles like that.
 
Anonymous
I'm genuinely curious.
 
but it is C# and this is PHP. they have different concepts
 
C# + R# > PHP + PHP Storm, precisely because of things like this. You can write correct code without having to think about the correctness, leaving you free to focus on the business problem instead of playing the language
 
how many years have you been listening so closely for @samayo ?
 
The more expressive your code is, the easier it is to read and the easier it is for tools to help you write it
@samayo this has been talked about for a long time
it's a huge bonus to async programming, for one thing, because it uses callbacks so much
@Jimbo yeh this is annoying
That said, the base() construct itself is great, enforcing that the child must call the parent ctor before it can attempt to do anything relying on the parent state is a good thing to enforce
 
11:44 AM
@JoeWatkins got my ping from before?
 
missed it
 
Anonymous
Ok, fine! I give up. I just don't want newbies to get easily discouraged from learning the language due of all these new features, being brought from every language.
 
27 mins ago, by bwoebi
ping @JoeWatkins … do you think we should expose a getUnions(): array<ReflectionType> function? … Or any other proposition for the signature?
 
Anonymous
I've been on this for ~4 years, and I'm barely keeping up with the changes.
 
@samayo That's a good thing about PHP. You don't have to do anything
 
11:45 AM
I'm not totally sure about that, what was done seemed to fit with the rest of everything ...
the reflection type is really strange
 
You can still write PHP4 compliant code that will run on 7, you just can't do as much with it
The only things which go away are the things that imply you are writing bad code by the very fact that you used them at all (e.g. register_globals)
 
@JoeWatkins it's correct, but you'd have to still explode and trim on the string to get the individual classes
 
I don't object whatever
yeah, but reflection seems to want it to be that awkward, there's no ReflectionType::getType, it only uses __toString magicalness ... it's 'orrible ...
 
@JoeWatkins You can call __toString directly though
 
Anonymous
@DaveRandom Yeah, but once you fill the php manual with all these new concepts, things can become really scary for beginners. Just sayin..
 
11:47 AM
true yeah, probably expose individual reflectors then ...
but doesn't then ReflectionType need additional methods ?
you should be able to tell if you are receiving a single ReflectionType if it was once part of a union and you have incomplete type information, right ?
 
@JoeWatkins why/what for?
 
stackoverflow.com/questions/37589878/… someone can help me pls? im new here
 
@samayo PHP5 has been around for a long time. I remember when I started I read the PHP5 OOP section at least 20 times before I had any vague clue what it was about, I basically ignored OOP for 3 years and then eventually started to understand it, and many years later after a lot of practice I semi-understand it. The manual has always been full of things that are scary to beginners, but you can ignore those bits if you want to.
 
@bwoebi it seems necessary, right now you would get one reflector and know it's a union, whereas with suggested API you will get an array of types, but not know if they are a union, and when/if intersections come, it becomes really messy ...
 
@JoeWatkins well, that's why you pass the root ReflectionType around
 
11:51 AM
oh, so this is a method on ReflectionType, I missed that ...
yeah, makes sense
 
@JoeWatkins oh, yeah… yes
 
Anonymous
@DaveRandom I guess that's one way to see it. I've been scared of the manual, so .. much that I got all of the documentation from w3shools. But it started to make sense after a while.
 
hello im new here. someone here can help me pls? stackoverflow.com/questions/37589878/…
 
Anonymous
@alainmardo give the chartjs the json data.
 
Regarding that too_few_args RFC, I feel like we could convert most warnings straight to errors… (and degrade a few non-exceptional ones to notices)
the discussion about the RFC about too few args on internals is surprisingly constructive…
 
12:17 PM
@JoeWatkins That array_seek() function is an excellent idea … I've already missed it so many times…
 
12:29 PM
evenin'
 
Anonymous
\o
 
12:40 PM
May 15 '14 at 10:53, by DaveRandom
@bwoebi I don't understand why array_seek() doesn't (yet) exist
Not really sure how that still hasn't happened
 
@DaveRandom github.com/krakjoe/php-src/commit/… at least there's a branch now…
 
If an interface specifies a given type for a parameter, why can't I implement it with a derived type instead?
 
Moar array_* :feelsgood:
 
@QuolonelQuestions Because PHP type declarations are (currently) invariant everywhere
But also implementing it with a derived type would be an LSP violation
If you implemented it with a supertype that would theoretically be OK, but PHP currently won't allow this
 
How do you know a derived type is an LSP violation?
Never mind, I can see why
 
1:13 PM
Hi 11
how can i pass query variables in facebook og share?
 
the little girl went to school with my boy ...
the world is a desperately sad place ...
 
:(
 
Anonymous
Read about that, really sad... It sounds like a murder so I'm shocked it's not headline news atm
 
was reported yesterday on the island, but no names ...
 
Anonymous
@JoeWatkins Looks like they've just named, starting to headline now news.sky.com/story/1705808/dead-father-and-daughter-are-named
 
1:21 PM
why would a murderer kill the dogs
yeah, I just read the names about an hour ago ... and they released photos, I recognize the little lass ...
 
@JoeWatkins murder? There's no words of murder in the article?
 
probably a psychopath?
 
sounds like carbon dioxide poisoning to me, or something of that sort
 
Anonymous
Yeah I just read a bit about the dogs, so now I'm thinking maybe carbon monoxide or something? No idea
 
yeah monoxide, that's it ...
it's probably that ...
 
1:23 PM
Why monoxide?
If the oxygen supply is too small, you have problems too…
 
is leaked by faulty gas mains equipment, by law everyone is supposed to have detectors for it ...
I saw them twice a day, nearly every day :(
 
Anonymous
Sorry dude :(
 
Anonymous
@alainmardo Here you go. pastebin.com/wxUETqTD
 
Anonymous
my 20 minutes
 
1:41 PM
twitter.com/vote_leave/status/725016387257831424 @DaveRandom just to inform you that we are coming.
@JoeWatkins you too, don't think you can ran away on some Isle.
 
@DejanMarjanovic I've got a bunch of Nerf guns downstairs, don't think I won't use them
 
I am unsure how to vote
 
@DejanMarjanovic What are actually the rational arguments of leaving? (Not these monies which are saved somewhere and lost otherwhere…)
 
nobody is presenting a logically sound argument for either case
 
I'll swap you one of my Nerf assault rifle things for a gold plated AK when you get here @DejanMarjanovic, can't say fairer than that
 
1:44 PM
@bwoebi Well, the Balkan is coming is pretty rational :P
 
@JoeWatkins It's IMO pretty simple: the risks of leaving are incalculable; remaining is easy - and what's actually so bad about status quo that it would warrant a leave?
 
Anonymous
@bwoebi The status quo is pretty fucked to be fair.
 
@DaveRandom Well, Saddam gold plated 'em, I can only arrange poor man version :(
 
think we can be pretty sure turkey aren't joining the EU ... I think I read the president said that it was not natural to treat women as equals, and that birth control is unislamic ... whatever the fuck that means ...
 
1:47 PM
@bwoebi Well apparently a bunch of people are really upset about a bunch of rules about bananas. I fact-checked these rules (by going to the supermarket and looking at the bananas on sale), and concluded that either these rules don't actually exist or we are ignoring them.
 
bureaucracy is a real problem imposed by the EU, but not like tabloid news papers make it out to be ...
 
Anonymous
:P
 
Googling that brought up: en.wikipedia.org/wiki/Euromyth
 
@DaveRandom That's the feeling I got too. And they make everyone believe these bananas rules would matter.
@JoeWatkins Oh, is it a problem?
 
@JoeWatkins Yes, all that while drinking beer and fighting for pig's tail from spit roast.
 
1:49 PM
Yes, maybe it is. But then the bureaucracy is just shifted back to the national governments… @JoeWatkins
 
Anonymous
Weird eu will soon share borders with Iraq, and Iran
 
The strategy of the voteLeave campaign sounds pretty much like "We're wasting time here! Spending money there! That has to stop!" without actually showing up what the benefits of the time and monies invested are…
But simple minded people just believe them…
 
in those cases where it's confined to government dealings, I don't care, but, that's not the case ... the effects of laws are felt by normal people, those laws governing business for example .... other laws governing for example, the safety of vehicles, these effect nearly everyone ...
 
And it is hard to fight in favor of the EU, if all what you can do is re-acting to the defamation of the leaving campaign…
 
Anonymous
From Paris to "^[a-z]{3,88}kistan" in a day :)
 
1:52 PM
the amount of money we spend on it is literally fuck all in comparison to any other big bill (health service, policing, etc)
 
@JoeWatkins Even enforcement of EU laws is not that bad. There are nations who are minimizing the enforcement of certain EU laws if they don't like it…
Also, EU law is somewhat important to not have loopholes. "I don't like business laws here, thus I go there" etc.
 
there is some kind of deal where we can implement laws gradually, or veto them, but we don't veto them, so eventually we feel the full effect of the law, as everyone does, but so slowly that nobody notices ...
 
@bwoebi This is my major issue with the whole thing, there's a bunch of people complaining that the rules are stupid, but no-one explain how they could make the rules better and/or why making those changes outside the EU would be somehow better than actually co-operating and making the changes higher up. The whole thing is based around people making deliberately opaque, vague statements about how other things are vague and deliberately opaque.
 
@JoeWatkins right, you can veto them. You're not a too small state, so your nation has a certain weight.
 
but we don't veto them, to retain that standing ...
 
1:56 PM
@DaveRandom precisely.
@JoeWatkins If you don't, then you wouldn't either if you weren't in the EU and possibly decide on it yourself.
 
Hello
Is good tutorial this? it.phptherightway.com
 
hey guys, so I'd like to know the best way to insert data into two related tables with a primary/foreign key, is there any better way than insert-select-insert? given that we're using plain SQL with phpmyadmin
 
@Blazed wow, didn't know there was an Italian translation :O
 
I know html, css and a few JS. In which time I can learn php goodly?
4
 

« first day (2056 days earlier)      last day (2906 days later) »