« first day (1839 days earlier)      last day (3335 days later) » 

Hello everyone!
10:4
How's the new glasses? I am going for laser eye surgery in 2 hours. I am shitting myself tbh.
12:21
@PaulDragoonis I'll be interested to hear about that ... do report back ...
If I can see, i will.
hehe, you'll be alright, it's a proper thing now ...
@PaulDragoonis i am too afraid for eye surgery to remove glasses... :D
I voted YES for void ;-)
yeah @Andrea is already wrong ...
half-life of php facts is real low ...
4
12:24
@JoeWatkins go with this man vespa.com/en/the_choice it loooks cool ( almost feels like driving in gta) :D
@NullPoiиteя that's the worst thing I can imagine ...
@JoeWatkins ^^
@PaulDragoonis is that @ me?
Anything interested tbh :)
@JoeWatkins :( it looks cool atleast
I bought glasses yesterday but I don't get them until next week :)
@PaulDragoonis eye surgery seems interesting. Scary though
12:28
@NullPoiиteя it looks like something that should be given to the elderly as a mobility aid ...
whenever I see someone, or worse, two people on a scooter, I give them a wide birth, and feel a little sorry for the passenger ...
I could never get used to tiny wheels ... too scary ...
in blue it doesn't look totally horrible ...
they feels fun
how old are you ?
are you very light ?
I'm much heavier than I should be, and they have never felt right ... if you can keep it in a straight line, it's all okay ... but so is a shopping trolley ...
@andrea yea maybe I will find more bugs with my x-ray vision
12:38
@PaulDragoonis certainly won't miss bugs for being without your glasses or contacts :)
a few times every summer, I am caught in the dark, hundreds of miles from home, with only sun glasses ...
@JoeWatkins i am like 82kg and 6... scooter feels quite cool and weird
I'm disorganized, sure, but it's not really natural to remember two pieces of face equipment everywhere you go, every time you go anywhere ... they really are scary nights, driving in the dark with sunglasses on is not an activity I recommend ...
plus, glasses are much more expensive than the surgery over the course of just about 5 years ...
@salathe pHP⅂
12:47
@Danack :)
@NullPoiиteя I don't like weird ... I like stable and predictable ... or I'm not getting on ...
Mornin'!
its fun to try new things :)
agree, it's fun to live long enough to try new things too ... they are that scary to me ...
if every time a lorry goes past, you are certain you will die, it's not the form of transport for you ... I am, certain, every time ...
I had a go on a lambretta, not even a tiny engine, pretty powerful thing ... but at road speeds, too scary ...
so you are nice person behind the steering, i was like crazy dude want to overtake every vehicle :D
12:57
I've been making screencasts recently :) ppi.io/screencasts
Going to make some more over the weekend
screencasts are sooooo much effort ...
probably alright if you are recording your own screen, but I done some with threedevsandamaybe guys ... effort, the first one took a whole morning, we've done whole sessions and then haven't recorded ...
difficult to track conversations, or plan ... so hard ...
You called it PPI... well I don't even need to look at it to hate it ;)
I'm sure someone will phone me and try and sell it to me later
Anyone else here with TalkTalk ?
posted on October 29, 2015 by nlecointre

/* by proton938mev */

13:26
@PaulDragoonis is there a english version of the screencast? eg
@Danack Fortunately, no.
The original hackers who got the database of customers months ago (not the kid that presumably found a backdoor opened by the hackers) have started calling at 7:30 am....because fuck humanity.
Hello all, I Love Php so i join this chat...!!!
13:33
How r u all ?
@Danack they called you? :D
how is it you love php? dont you think thats a bit unnatural?
@Leigh we get an average 1 call a day for the past two months.....and I do mean average as they sometimes go days without calling, and then have 3 scam calls in 2 hours.....which is not exactly subtle.
13:35
@chozilla Exactly. (it could be phpexual)
I did my trick of asking one of them whether they were religious, answer yes they are. And then asked where bad people go after they die in their religion. Answer "they go to hell sir".
@chozilla Do you say the same thing to parents who love their disabled children?
I said that was a shame.
Can someone explain to me the appeal of laravel? As a former codeigniter user i find it very frustrating to setup.
12:7. God, things change so fast
13:39
@CurtisJ.Malainey A lovely framework, but I don't use it.
Yea, thats the trend I'm seeing, it just looking like a overkill which makes it more irritating to use, that why I liked CI till it went belly-up was cause it was drop and go.
Abe
Abe
wasn't expecting @JoeWatkins and @NikiC to vote for void... :P yay, a new magic type! it's not a tragedy but if i'm honest i'm far from being happy about it. as i said earlier, null in php is more like void/undefined than null already, and i dislike the idea of introducing a new name for an already existing concept, just because other languages named it that way (@Andrea sorry :D i like your rfc's, i just dislike the name)
Hello friends... can any one help me to solve this issue ? stackoverflow.com/questions/33409924/…
@Abe null means something different from void. Having a return type name of null is weird and inconsistent with every other language out there (not just a few, every bloody one, including our own documentation!!!)
@piya $curr_detail->prod_type = $prod_type;
13:55
oh no you sound exactly like me
@piya see specifically example #9 on php.net/manual/en/simplexml.examples-basic.php (but also, read that whole page)
(I don't object to you agreeing with me, it just seemed weird)
Hello everybody
Ok I will try thanks
I'm totally going to submit an RFC for allowing null return type declarations. (Not.)
13:59
@Andrea ?
@ircmaxell never mind
@CurtisJ.Malainey Not a lot of framework users here. It's dangerous to go alone here take this.
peer_fingerprint supports md5 fingerprints, but no sha256 and was added in 5.6? php.net/manual/en/context.ssl.php
@kelunik it supports sha256
using array syntax. You simply can't reliably tell sha256 from other hashes by length (though md5 and sha1 you can)
Ah fine, I knew I missed something, thanks.
14:06
["sha256" => "hashvalue"]
Was actually searching for OCSP stapling, but I think @rdlowrey didn't have time to add it for PHP 7.
@NeoThermic I've seen something with sha3 in it in a recent bug report
hi
can I set primary key of the table by using alter query ..Actually I have some rows which are added while testing and actual live table is having same primary key rows
@John do you mean change the auto increment value?
14:16
@andho yes
I know this is non sense question
@John I bet you can do that. I'm just too lazy to find out how.
but still if its possible
It's possible. I remember from my MySQL days.
otherwise I have to update that row with actual live data
14:27
@PeeHaa got a minute?
or someone else ^^
so, apparently disabling GC is a valid way to get around segfaults
@Naruto sure
We've all had that brain freeze.
That's enough cats from me today :P
@ircmaxell which GC related segfault this time? :-(
14:35
@PeeHaa hold on, I just found the reason to my question :P So let me look for some answers now :P
@ircmaxell well, it's a valid temporary solution.
to Drupal's problem, yes. To PHP's problem, no
yep.
Abe
Abe
@ircmaxell to me is much worse having another magic type. and by the way null is not the same in every language. null is just a name. other languages have null nil none nix undefined void and none of them cares of what others do. why php should? (i'm being totally undramatic, though)
14:41
it's not a type
and it's not magic
it's a declaration
Abe
Abe
it looks like a type, though
I'm not talking about null's behavior here
I'm talking about using void as the decalaration for "this function does not return a meaningful value"
which people seem to keep blowing up out of proportion
Engineering level genius
Abe
Abe
@ircmaxell but isn't what you mean when you return null already? aka: why would one return null to use the value?
when you return null as part of a return statement, it's because in that path you want to return it. But there's a difference between saying "this path doesn't produce a value" vs "this function doesn't produce a value". void means there is no value, null means there is an explicit lack of a value for that branch
there's a reason types in PHP are not nullable by default
14:51
Hi,

Anyone helps for URl validation.It accept only video url only.
Anyone helps for URl validation.It accept and allow only video url only.(all video url format).
Hi, what's the easiest way to prevent little bobby tables?
8
Abe
Abe
instastar
@joryl contraception
Abe
Abe
@ircmaxell
function(Foo $foo = null){}
adapted to the return type to me is the union:
function(): Foo|null{}
14:53
:DD
can you help me?
Hi all,
Anyone helps for URl validation.It accept and allow only video url only.(all video url format).
what
that code didn't make sense
why did it switch from parameter to return ?
@joryl Can I help you with contraception?
Abe
Abe
@ircmaxell then i'm expecting using the return type of this function(): null{} to be an error
@Abe precisely. But in that case, you are saying "I intend to return something and here is its value". Returning a unit type by itself makes no sense because there's nothing for it to be, hence it's "void"
@Abe as am I
"null return type" is a non-sensical statement
14:55
geez xD
no, i'm beginner I just want ot know how prevent that because my query is "UPDATE newsletter SET agree = 'y' WHERE email = '".$_GET['email']."' and token = '".$_GET['token']."'|
Abe
Abe
but why not calling it null then :P
@ircmaxell so you want function(): Banana|null ?
I don't think null is a type ... there, I said it ...
@salathe yes, but potentially with a method to abstract that union away. Like being able to do a typedef
I prefer ?int
14:56
@JoeWatkins it's technically not a type, but a value. Just like False isn't really a type, but it's also used in that context frequently.
not function(): Banana|void ?
Abe
Abe
@JoeWatkins null should be a type
user895378
@kelunik nope, wanted to but didn't have time :/
Abe
Abe
anyway gotta go, good luck with the rfc
@Abe well I don't think it makes sense to talk about a null type ... as mentioned, it's a placeholder for the lack of a value, or a value ... not a type ...
14:58
@salathe correct. Because A|void doesn't make sense. The void is describing the entire function, saying no value will be returned. A|null (or ?A) the |null part actually says that a value is being returned, and that it can be null.
@rdlowrey So we do not have any support for certificate transparency currently, right?
user895378
@kelunik Define "transparency"
@ircmaxell so why against function(): null (being literally the same as function(): void) ?
user895378
Your cert will still have the info a client needs to look it up itself (like before OCSP) ... you just can't staple the response in the handshake
user895378
15:00
It just adds overhead for the CAs and whatever amount of time is required for the client to check the validity of your cert themselves
@salathe because saying "(): null" is saying that the function is returning a value of null. Which is not what void implies. An example: return $a; in a "(): void" function should be an error, even if $a happens to be null at the time. Because you've explicitly said "I don't return anything. Whereas the flip isn't the same.
Anyone helps for URl validation.It accept and allow only video url only.(all video url format).
Abe
Abe
@JoeWatkins there is no "lack of a X value", but you can have "X|null" if you want
@ircmaxell good, so why against function(): null (as it's different from function(): void) ?
It is possible to validate allow only video url only.(all video url format). ?
15:02
@salathe because if we agree that void is different, if we implement void there is literally no benefit to adding null.
and there is more benefit to adding void than there is to adding null
hence why would we want to add an inferior type?
anyway, I'm going to go walk around the city
We might want void-without-error?
@salathe and I will disagree strongly there
ok, I'm only poking the hornet's nest :)
enjoy your walk
It is possible to validate allow only video url only.(all video url format). ?
@KarthikKeyan define: video url format
user895378
15:04
@kelunik it should be relatively straightforward to add support for the TLS extension needed for servers to deliver the STC to the client during the handshake but I'm not sure how many clients will support that.
thanks for the discussion though @abe and @salathe
user895378
The best thing to do is probably just for us to add ocsp stapling support since that's widely used already
posted on October 29, 2015 by nlecointre

/* by The coding love */

@salathe sometime the video id not with extension on that time what we do ?
@rdlowrey Yes, here's the site I wanted to link: certificate-transparency.org/how-ct-works
15:06
@salathe sometime the video url is not with extension on that time what we do ?
@KarthikKeyan is "http://bbc.co.uk" a video url?
Abe
Abe
@ircmaxell discussing is great :D everyone who votes shouldn't do that blindly but be responsible and do that only if they considered all options. [unrelated] how do you think the new autoloader should work with future typedefs?
@Abe I don't have clear vision for typedefs yet. Working on the underlying tech first.
@Abe new autoloader?
Abe
Abe
@ircmaxell okay, good luck with that! have a good walk
@salathe yes, for functions and constants as well as classes
15:10
ahh
@salathe actually if a video file url with extension like. example.com/sample.avi can be checked and verified..! But what can we do for video sharing sites..?
Abe
Abe
that's going to be my most loved php 7 feature :D no more requires!
@PrassannaD you can start by, defining what a "video url" is!
Abe
Abe
@salathe did you notice how i put a space between php and 7 xD
15:11
@Abe you used a space! *thumbs up*
:)
Abe
Abe
ahahah
now to work on your capitalisation :P
@salathe I hope @KarthikKeyan is mentioning that.. Video url.. is just a link to a online video.. as mentioned above..
Abe
Abe
:P
Abe
Abe
15:13
@AlmaDo :( ikr
CSS stands for Common Shit Sheet, right?
@salathe Yes..
@PrassannaD what makes that a video URL?
Abe
Abe
i believe it is Colossal Shit Sheet @AlmaDo
15:16
Because when you do everything in javascript (even the shit you didn't need to do in javascript)...ƃuᴉpoɔuǝ! https://t.co/TKZQtX4puh
@salathe You son of a bitch. I fell for that one.
@Sherif :)
It's not even Friday yet? You getting warmed up early?
I needed a YouTube page... for some reason, that one came first. :)
not youtube page only...we give the any remote page based video link.we find that link have video
Abe
Abe
speaking of naming things
http://php.net/manual/en/language.oop5.anonymous.php
isn't better calling this anonymous objects instead? (cc @JoeWatkins)
$x = class{}; // anonymous class (doesn't work - yet!)
$x = new class(){} // anonymous object
15:23
Anonymously instantiated object instance
@salathe not youtube page only...we give the any remote page based video link.we find that link have video Ex video link : dailymotion.com/video/x3bakq4_lol_fun
Abe
Abe
lol
@PeeHaa I figured it out (read: reworked the domains on the server to get it to work :D )
@KarthikKeyan So, is this a video URL... bbc.co.uk/news/world-asia-china-34664827 ?
@salathe Yes correct, how to validate this type of url
15:26
@KarthikKeyan So "video URL" is any page on the internet that contains a video?
Ok, I'm backing away from helping at this point!..
@salathe Yes correct, how to validate this type of "video URL"
@salathe, Thnk you i am waiting for u r relay .
@Abe It's not that anonymous: 3v4l.org/mOOD1#v700alpha1
@Naruto \o/
15:33
yipeeeee ...
Abe
Abe
@kelunik yes, but it's anonymous enough. afaik also jvm gives them a randomly generated name
Joe's got a new bike? Has it been a month already? :P
Abe
Abe
@JoeWatkins congrats! what is it?
Yay, we're finally doing a version bump for PHP!
/logs into new box, php --info
5.3.3
Fuck you.
sdfsf
15:35
4 hours ago, by Joe Watkins
user image
hello
Abe
Abe
@JoeWatkins hot
@Fabor hehe ... I'll have this one a long time ...
kkkk
bugs.php.net/bug.php?id=70776 @Joe any input what solution would be better?
@JoeWatkins nice :-) I hope you're going to have fun with it :-)
15:52
@bwoebi break
@bwoebi thanks :)
@JoeWatkins okay, that's what I preferred too… great :-)
0
A: PHP 7 introduced a new class feature called the Anonymous Class

Joe WatkinsAnonymous classes are classes without programmer declared names, they are otherwise identical to normal classes. Syntax allows them to be nested, just like functions: function name() { function sub() { } } But just as the code above contains two globally accessible functions, the fol...

@JoeWatkins congrats :)
user924016
16:12
mornings
Anonymous
o/
user924016
\o
afternoon :)
Evening
Abe
Abe
naming help. is there a technical term that i could use for "try to merge everything you can discarding invalid stuff" - as opposed to "if one or more are invalid don't merge anything at all"
16:34
@DanLugg …not even the latest PHP 5.3? Wat?
@LeviMorrison It was a misfire, we're supposed to be on 5.6
@ircmaxell Except it is technically impossible to not return anything in PHP. It's guaranteed behavior to return null.
And I think we should keep it this way because of return $callback(...$params);
16:57
@salathe are u there ?
@hakre poke <_<
posted on October 29, 2015 by nlecointre

/* by Dad */

@ salathe...Still we r wait for your reply.
17:25
Any one please help me...we give the any remote page based video link.we find that link have video for validation purpose.
17:44
@Abe "Fail on error" vs "Continue on error"
Hi Guys, I am getting the highest value in my array using "return $a['totalNup'] - $b['totalNup'];" But I wonder is there a way i can do - get the highest number that is %2 ?
-1
Q: How to find that a given link provides video source either direct stream or from direct available url | cakephp2.x or php

Ananthaselvam PIts bit complicated to explain but I try my level best to explain it clearly. In my scenario, Get or provide any valid remote video url. example : Direct stream url: http://www.dailymotion.com/video/x3bakq4_lol_fun https://vimeo.com/143133493 (or) Direct available url, http://www....

please help
Abe
Abe
@Danack that's perfect, thank you
@AnanthaselvamP i saw your post unfortunately i am not help to you sorry
@AnanthaselvamP Hope some here can help him..
17:59
@PrassannaD i am also hope surely somebody help to ananthaselvam
@KarthikKeyan Yes you're right..!
18:20
It's time for a red-diff party. hg rm this/path that/path #yolo
18:41
Evening everybody
@Sara :D
Removing stuff is always fun. I remember when I refactored the menu system in a certain game, the diff was so nice :)
Ooh, no, this was the best:
That was the most evil and despicable thing I ever did. I destroyed PHP with that commit.
3
Nobody has ever taken PHP seriously since. I'm a monster.
@tpunt warnings would still make higher-order functions have trouble, and don't forget that many projects convert all warnings to exceptions
@Sara what's the green:red ratio?
Hmm, a thought on void and whether to prohibit in expressions...
What if we only prohibited it for non-variable names?
$foo = returns_nothing(); // error

$funcName = "returns_nothing";
$foo = $funcName(); // not error

$foo = $deathStar->explode(); // error

$methodName = "explode";
$foo = $deathStar->$methodName(); // not error
This probably still has problems, though
If only because backwards-compatibility. I want internals and userland functions to be consistent, so I think existing internal functions documented as void should have the same behaviour. This would probably break someone's bad code.
19:06
@Andrea This particular diff is pure red. Deleting 178 files.
I'm on a dead-code hunt today.
The followup will be less pronounced, but unlike this one, it'll actually have a small perf impact.
@Sara ooh I see
odd that 178 files would go unused D:
then again Facebook have bajillions of classes.
@Andrea Break their code. Anything depending on return value from a function that only ever returns void deserves to be corrected.
@Andrea It was a project that was abandoned midway through implementation.
@Sara probably... though maybe people did weird things with eval()
@Sara Huh. Why wasn't it deleted?
Since been replaced by something else (ocaml based, in fact)
@Andrea Because SQUIRREL!!!!!
The liklihood of paying off technical debt increases exponentially with the programmer's age.
19:21
^^ Stas is going to make void pass news.php.net/php.internals/89008
he couldn't be wronger about how interfaces work
19:39
He's not quite wrong
Greetings guys..
Greet.
20:01
@Andrea he is wrong to believe that a lousy docblock is better than being able to specify that a method always returns null (or void). So he is kinda wrong about interfaces and about how humans work.
I would disagree with him on that, sure.
No one is going to check if some implementation is doing what the interface intended, people just var dump the return value and use it if possible.
yeah, that's the problem
people often unintentionally rely on these kinds of things
BTW, I'm going hard against void, but it's just because I think null is better. I don't feel like void is a terrible option so ty for reviving the RFC anyway. Passing or not, it won't be a loss.
Morning 11
I think I will have to unsubscribe from unbleBob's blog :(
(was about to edit but then... what might this little guy be?)
it has been becoming worse and worse .. and more patronizing
@Abe The grass is blue.
speaking of that guy @tereško?
20:21
yes
what do you need to do to bind param in PDO that's in this format:
':name' => 'the local pound',':phone' => '123456789',':street' => '123 my st',':city' => 'my city',':state' => 'my state',':zip' => '12345'
though I was referring to a bit earlier article: blog.8thlight.com/uncle-bob/2015/09/23/a-little-structure.html
@3.14159265358... You probably need code
@PeeHaa lol, i'm trying to PDO it
@PeeHaa can you help me?
Your question doesn't make much sense
20:25
@PeeHaa that's nothing new. Just ignore him
How to bind param in this random string of characters
and
To PDO something
i'm trying to do a pdo update, and know how to write the sql, just not sure how to input the update
omp. I need more beer.
@PeeHaa will this help
        $update_sql = "UPDATE `___`.`___`
        SET $sql_update
        WHERE `___`.`id` = $___
        LIMIT 1";
        $q = $pdo_conn->$update_sql;
If your goal was to show something that doesn't make any sense whatsoever. yes it helps
6
20:32
lol, it does, i'm checking for params sent
@FélixGagnon-Grenier everyone needs more beer
yup.
I wonder, how much of us work from home, proportionnaly?
@Andrea True. Well that was really my only point of contention. I'm definitely for the void declaration over null - that change would be a big mistake IMO... So +1 on your RFC :)
oh right. the survey knows www.stackoverflow.com/research/developer-survey-2015
fuck chat formatting
20:48
:P
@PeeHaa he has been posting that code about a week now
and he has been stubbornly ignoring all advice
... either because he does not want to learn or does not understand what is being said to him
@tereško Is there a badge for that? Because I think there should be
@tereško this is every 2nd user we see in JS :(
@rlemon you might have noticed how rarely I pay attention to JS room
Anonymous
we should consider the possibility he could be a bot.
Anonymous
20:54
a Pi bot
@samayo yeah .. it's a project in A.I.: someone has been attempting to make artificial stupidity

« first day (1839 days earlier)      last day (3335 days later) »