« first day (1600 days earlier)      last day (3348 days later) » 

2:00 PM
A bit like Room 11
 
nah... room 11 makes things somehow achievable
maths? no freaking way.
 
Bobs-MacBook-Pro-2:php-src-X bob$ ./sapi/cli/php -r 'function gen($a = 0) { yield 1 + $a; if ($a < 1) yield from gen(++$a); yield 3 + $a; } function bar($gen) { yield from $gen; } $gen = gen(); $gens[] = bar($gen); $gens[] = bar($gen); do { foreach ($gens as $g) { var_dump($g->current()); $g->next(); } } while($gens[0]->valid());'
int(1)
int(2)
int(4)
int(4)
Okay, first complex test seems to work \o/
(yeah, iterator API for foreach works too)
I'm going to pause a bit now… then writing tests…
@NikiC fyi: your initial structure was very helpful… thanks! :-)
 
@Ocramius For your enjoyment / interest
 
user895378
@bwoebi and arrays?
 
@NikiC oh, and the tokenizer ext IS the only issue that prevented from doing what was planned originally (the first discarded patch) :(
 
2:06 PM
(was just reading up on the JIT thread)
 
@rdlowrey Nikita already did that in his initial patch
 
user895378
oh right.
 
user895378
I will update the RFC this evening with all the stuff that has been discussed.
 
@rdlowrey also note my example which shows multiple yield from on the same Generator without issues :-)
 
user895378
@bwoebi I did notice that. Pretty sweet :)
 
2:10 PM
Which was the only thing which I spent less than 10 minutes debugging on…
 
as a spectator reading through that thread after I can confirm that your initial mail sounded harsh and lacked any good faith on Zend's part about the output buffering.
usually if you are trying to keep the discussion on the technical level, it is better to not jump to conclusions right away.
just my 2cents
 
But I still have to add Exception handling and some checks to prevent iterating a child of the currently executed Generator from otherwhere during its execution…
 
@Jimbo where is "Object" in this ORM?
 
@Ocramius Thought you'd like it :P
Related reddit
It's basically a query builder, then? Not an ORM
 
it's a DBAL
 
2:19 PM
My thoughts exactly
 
not gonna comment, I just attract a lot of hate when I'm criticizing other libs near my area of expertise
 
user895378
^ I have the same problem :)
 
I think the guy made a nice thing, he just has a naming mistake
 
Upvote my criticism then, I'll do it
 
user895378
When you're an expert on a topic it's difficult to avoid unceremoniously dismissing suboptimal attempts by others in that area.
 
user895378
2:20 PM
And people get offended.
 
yup
@Jimbo negative comments have also much more influence on the author. If you want to criticize, word it so that it looks like a doubt of yours
 
We can't avoid educating people lest they get offended - that's their issue if we do it right
 
user895378
/me shares righteous expert high-five with @Ocramius
 
hello,
i need to make auto complete textbox that get data from mysql
the autocomplete list should also has images from DB
Any Recommended Links ????
 
user895378
But I know I personally can do a better job of being more diplomatic with my criticisms ... so I'm working on that :)
 
2:22 PM
 
... I almost did
 
Not big enough
 
I did a search for "Internet E.T. - place finger here" but couldn't find anything :-(
 
@Ja͢ck ... resists... joke...
 
hehe, I got it :)
I was thinking "hey, let me just look at a memory leak issue" ... looked at the test ... "Nvm"
 
user895378
2:25 PM
That moment when you forget git rebase --continue and have a mini freak-out because you thought you lost a bunch of work.
 
@Ja͢ck lol
 
@Ja͢ck what the eff
 
Yeah, that's a bit too much fishing for me ;-)
 
hello,
i need to make auto complete textbox that get data from mysql
the autocomplete list should also has images from DB
Any Recommended Links ????
 
2:27 PM
Welcome to my ignore list.
Anyhow, time to catch up on House of Cards :D
 
user895378
@Ja͢ck I binge-watched the first five episodes of season three a couple of days ago :)
 
It's awesome :)
 
Oh man I forgot HoC released. Damn. That's one guaranteed night without sleep.
 
Good mronging
 
Hi there! Anyone else thinks Bootstrap's interactive TOC on the right side of the screen is pretty neat? (getbootstrap.com/getting-started) Anyone knows how to copy that behavior? Is it described anywhere? | Thanks. ||| Update: found something here: stackoverflow.com/questions/12140001/…
 
2:34 PM
@Tyrael I'm happy to discuss it, but I do firmly believe the code was disingenuous.
 
Ah… everyone has new priorities now… :-D
 
user895378
@ircmaxell morning
 
user895378
stream_context_set_option($ctx, 'ssl', 'fail_weak_signature_algos', true);
 
:-)
 
user895378
Any problems with that API?
 
2:40 PM
Morning
 
user895378
I figure we can just manually update the list of disallowed algos internally as needed to make it future-proof (instead of requiring people to list algos themselves).
 
Yeah, sounds fine :-)
 
I'd rather it default to true, but :-)
 
user895378
Yeah, but that would break everyone's code since most certs still have sha1 lol
 
that'll teach them to do dumb shit
 
2:43 PM
@rdlowrey you prefer the md5 certs from tests repo?
 
user895378
;)
 
@JoshWatzman we do "drink-ups" in NYC when people from the community come into town. Basically just a bunch of people going out for cocktails and/or dinner. Interested in doing something like that?
 
morning \o
did you guys catch the big Laravel drama on Twitter last night? Boy... that was almost better than Fight Club
 
Laravel? No… and I don't think anyone would be interesting in that
 
what drama this time?
 
user895378
2:47 PM
People kept tweeting about some kind of frameworky drama last night but I was too busy ... you know ... actually improving php-src to care.
3
 
Typical Taylorisms, fwiw
 
@rdlowrey you mean… failing to? :-D
 
user895378
@bwoebi I was failing forward by that time :)
 
ah… well, It's your night time… okay ^^
timezones, yea…
 
For people who like drama:
@philsturgeon go away. I don’t respect your opinion of anything at all seriously
 
2:51 PM
@ircmaxell I think it all started with the question whether laravel should ship with javascript components by default and ended with several people being insulted by the great Lord. Grumpyprogrammer and Phil Sturgeon were among them.
 
fuck
 
the
 
pony unicorns
my missing PC part will be shipped only on 10th
 
s/pony/unicorns/
 
@thpl wow
 
2:56 PM
@Danack now I see why people say that "community" is one of the best features of Laravel ... they have had to lower the standards quite a bit
 
@tereško That's mean :-D
 
But who is this Lorotwell Tay?
 
user895378
Some dbag who thinks he's Framework Jesus.
 
@Danack wow
 
3:01 PM
@thpl lol "get down on my knees and gravel" :D
 
@rdlowrey Some Laravel dev or what?
 
@taylorotwell @philsturgeon Well, at least I value his opinion because he's one of the smartest devs that I ever talked to.
 
user895378
@bwoebi He's the laravel dev, apparently
 
@taylorotwell @philsturgeon Oh the drama. Will Laracon be awkward this year?
there's a laracon?!
 
for tomb raider fans
 
3:02 PM
yes
 
@rdlowrey there's only one...
 
@FlorianMargaine Yeah - it's pretty big.
 
well,
 
@rdlowrey oh well…
 
3:02 PM
I kinda understand Taylor's ego then
 
they do 2 a year (1 in europe one in US)
 
I mean, I don't condone it
but... I see why he has a big one now
 
Now explain Ze'ev...
 
user895378
Framework conferences are like tent-revivals; all the crazies get together in one place and perform self-congratulatory rain dances.
 
Laravel 6 will come with a poster of Taylor :)
 
3:04 PM
lol wordpress laravel
 
@Sara I don't think Zeev has a bigger ego than @ircmaxell for example... it's just that he's playing another game (i.e. not technical enough and too much politic, imho. Imho.)
 
posted on March 04, 2015 by kbironneau

/* by LukasR */

 
0
Q: Trying to understand array_udiff behavior

sectusLet's continue. Why array_udiff compares values of first array after sorting? function compare($a, $b) { echo("$a : $b\n"); return strcmp($a, $b); } $a = array('a', 'b', 'c'); $b = array('x', 'y', 'z'); var_dump(array_udiff($a, $b, 'compare')); Output b : a // sorting $a st...

 
@ircmaxell nice
 
3:13 PM
Ffs
No wonder he's not taken seriously any more
 
24 mins ago, by Danack
@philsturgeon go away. I don’t respect your opinion of anything at all seriously
 
Tbh, I just think that's extremely arrogant. That you can say that, and not care what the community thinks
 
Gosh finally Phil blocked me thank heavens.
:-(
 
@taylorotwell he seems like a whiney little bitch sometimes.
 
:-/
@FlorianMargaine He identifies himself as a "laravel lover". Hardly going to be objective, is he?
 
3:19 PM
@taylorotwell he's not presenting at @LaraconUS then? ;-)
@CodingItWrong @LaraconUS I wouldn’t even let him buy a ticket
I'm in awe at how far the rabbit hole goes down
 
The problem is he doesn't even care about how others in the community view this... how high is that horse?!
It brings everyone down...
Lead by example my ass
 
There is only one thing I wonder about: why is Otwell using his dad's picture for the avatar ?
2
because the tweets sound like made by teenager
 
sigh, I need to not be looking at this
 
I wonder how much money he earns with laravel
 
It must be a lot to be so up himself... power, responsibility and all that
 
3:29 PM
Last night I did a bunch of work on a version of PolyCast that uses boolean functions instead of ones that cast and throw exceptions. github.com/theodorejb/PolyCast/tree/boolean-functions /cc @Danack @Leigh
The library is a lot simpler now.
 
And yet more useful! (imo)
 
@Feeds that's hilarious.
 
it looks like a flaw of php performance...
 
I'll never understand shutting someone down in a manner such as that
 
@Rican7 In which you top post.....
 
3:36 PM
it gets nothing done
@Danack shittttt, I didn't mean to :/
 
Yasuo is spamming the list.
Even if it is a reasonable idea - bringing it up now, two weeks before RFCS for 7.0 are meant to be finished, is just not a good idea.
 
:-/
 
Anyone want to fork PHP RFC Watch so you can count the number of No votes from Zeev? Bet the ratio is astronomical.
 
sure, that's a bit more constructive way of responding, though
 
@Rican7 That list is sent to many people - spamming it with ideas that just can't be thought about in time for the next release, wastes a huge amount of peoples time, or just makes the list get ignored. Yasuo does need to stop what he's doing (imo).
And I think there will be much clearer path to refactoring the string functions if/when scalar type hints pass: en.reddit.com/r/PHP/comments/2xtept/…
 
3:42 PM
@Danack I agree on the clearer path: en.reddit.com/r/PHP/comments/2xmawu/…
 
I don't think it's really possible...
 
@Danack I thought as long as they get into voting before the freeze it was ok. I have one or two to unleash, I just need to find the willpower for
but they're small changes
 
@Leigh tbh I'm sure there will be other RFCs coming forward, but the 'deadline' is March 16th, which means any RFC that needs to be in voting before then, needs to have already been announced...
 
@Leigh allowed? yes. Should?
 
@Jimbo ["Yes", "No", "Yes", "No", "Yes", "Yes, with custom exceptions"]
 
3:47 PM
@Danack but I'm so lazy :(
I'm still not 100% clear on what needs an RFC and what doesn't tbh
 
@Jimbo very dirty code...
var obj = {};
$('.timeline-body > strong:first-child').each(function() {
    if (!obj[this.textContent]) { obj[this.textContent] = [this.nextElementSibling.nextElementSibling.textContent] }
    else { obj[this.textContent].push(this.nextElementSibling.nextElementSibling.textContent) }
});
var zeevArr;
var zeevArr; Object.keys(obj).forEach(function(k) { if (k === 'zeev') zeevArr = obj[k]; });
console.log(zeevArr);
["Yes", "No", "Yes", "No", "Yes", "Yes, with custom exceptions"]
 
@Leigh no one is - it's all done completely ad-hoc.
 
I was also under the impression that small self-contained changes would still be allowed after the feature freeze
 
@Jimbo for more information...
var obj = {};
$('.timeline-body > strong:first-child').each(function() {
    if (!obj[this.textContent]) { obj[this.textContent] = [this.parentNode.textContent] }
    else { obj[this.textContent].push(this.parentNode.textContent) }
});
var zeevArr;
var zeevArr; Object.keys(obj).forEach(function(k) { if (k === 'zeev') zeevArr = obj[k]; });
console.log(zeevArr);
["zeev voted Yes on RFC Improve array to string conversion", "zeev voted No on RFC Improve array to string conversion", "zeev voted Yes on RFC Remove PHP 4 Constructors", "zeev voted No on RFC Scalar Type Declarations", "zeev voted Ye
hm wait. There's a problem in my code :D
 
Omg, what am I reading?
:P
 
3:50 PM
weird, it works for everything except the first/second...
actually, no, it works
 
@FlorianMargaine how about not using someone's name in it? That's kind of nasty.
 
13 mins ago, by Jimbo
Anyone want to fork PHP RFC Watch so you can count the number of No votes from Zeev? Bet the ratio is astronomical.
 
If you're going to do a tool like that, don't target an individual.
 
it's not a "tool"... it's a 5-lines thing to run in the console
 
@FlorianMargaine It's tool-ish, some kind of a tool-ette
 
3:53 PM
more specifically: it's an answer for Jimbo :)
 
reddit.com/r/PHP/comments/25p43u/community_just_a_longer_c_word/… lol, "Thank you, you're free to leave me alone now."
 
but yeah, @Jimbo he doesn't vote "no" that often
 
Hmmm
@Danack Yeah, that was me >:P
It wasn't for an individual though, for the option of specifying who
Not just Zeev :)
 
function votes(name) {
    var obj = {};
    $('.timeline-body > strong:first-child').each(function() {
        if (!obj[this.textContent]) { obj[this.textContent] = [this.parentNode.textContent] }
        else { obj[this.textContent].push(this.parentNode.textContent) }
    });
    var answers;
    Object.keys(obj).forEach(function(k) { if (k === name) answers = obj[k]; });
    return answers;
}
there you go
votes('zeev'), for example.
votes('rdlowrey').map(function(e) { return /voted No/.test(e); })
[true, false, true, false, true, true, false, false]
fun stuff ensues!
 
Productive day at work @FlorianMargaine? :)
 
4:04 PM
@Fabor very much. I finished at noon what I had to do for the day, and finished what I had to do tomorrow this afternoon.
 
Nice. So you're in the "pretend to still be working" mode. :P
 
nah. I still got work to do.
but I can take a break
 
Leisurely pace development.
Off t'Latvia tomorrow. Hopefully it's a nice flight.
 
@Fabor work or pleasure?
 
Pleasure sounds seedy so I will say tourism :P
 
4:18 PM
@Fabor So... invasion then?
 
I'm not Russia.
 
going to get a drink with @tereško?
 
What did the programmer say to the sterile dog?
Will not fix, cannot reproduce
 
heh, not sure what I am doing over there. A friend has organised the thing.
 
what did I say to @ircmaxell's tire? You just fell flat.
:P
 
quick poll, csprng functions, should they contain a "crypto" indicating keyword, and should it be "crypto_random_*" or "random_crypto_*"
personal opinion is: yes, and crypto_random_*
 
@Leigh my personal opinion: not really... Unless we want to make a crypto package...
 
mornings
 
Trying to think of the user, and making it clear these functions offer a higher quality random
 
@Leigh tesco_finest_random_*?
 
4:37 PM
That works, but only because it's outsourced to real brands and relabelled
 
How about i_cant_believe_its_not_random_* then?
 
Misleading :)
 
gourmet then, that makes everything sound better quality
> Chris Wright, Gourmet PHP Developer
 
gourmet_random_bytes, I like it
 
we had some past with 'real_' prefix, like mysql_real_escape_something
 
4:41 PM
randomi
 
poll result: no consensus was reached, not changing anything
 
@Rican7 For reference, an analysis of who's been sending emails to the list recently - tbh this is a shitshow.
 
user895378
@Leigh I have the same preference as you
 
user895378
Though after thinking about @ircmaxell's point I guess it makes sense to avoid the crypto_* faux-namespace unless we plan to add an entire package.
 
user895378
Also: pecl/crypto is a thing ...
 
4:47 PM
Andrea and a few others are on the list because they've been responding to people's questions about RFCs. The rest are just time-wasting.
 
It is, but I don't like the name crypto for that particular lib, because it's openssl only
@Danack fu
 
user895378
@Danack Still, I think the increased community participation is a good thing for PHP.
 
user895378
It's better than the alternative
 
Diverse involvement is good. The same few people, saying the same things over and over again is not useful.
@Leigh ?
 
'Lester Caine 164' oh...
 
4:48 PM
@Danack I'm on the list :) and I have barely touched any of the "popular" threads
 
@Leigh suggestion: for 7, simply name it random_bytes. Then for 7.1 we work on an entire crypto package for core with a plugable backend (like Python's crypto package)
 
I'm game for that
 
ARGH - STPO USING COOKIES to process formss.
 
because I think we need both, and it's not reasonable to build an entire package for 7.0...
@Danack what timeframe is that?
 
This year - the url taken from is markmail.org/search/…
but apparently clicking on that doesn't take you to the same thing.
 
4:51 PM
ah, I missed the date part
 
You can click+drag the timeline, but it stores it internally, despite altering the url.
 
since 2010
 
Yes, please tell me more about Firebird and how it drives PHP development.
4
 
user895378
@ircmaxell +1. Count me in to assist.
 
4:54 PM
@rdlowrey sweet
 
user895378
I think the whole mcrypt thing just kind of happened too close to 7.0 to put together something good in the remaining timeframe.
 
@ircmaxell that is not entirely accurate - Stas was using a different email address for a bit....so some are missing.
 
yeah
@Danack which is why he's on that list twice :-P
 
/you expect me to read the whole thing?
 
@Danack fyi, no beer for me today, as I need to catch up with sleep :-\
 
4:59 PM
@Ocramius np - I'm coming down with a cold so am thinking about going for a nap.
 
5:29 PM
@Ocramius Sleep is for the weak
 
And the sleepy.
 
(you skip to the part that says "to all")
 
@marcio This isn't specific to your RFC, but a general statement; people are massively underestimating how much effort it will take to get PHP 7 in a state where it can be shipped.
 
@marcio I think that's reasonable.
 
@NikiC hey, could you take a look at github.com/nikic/PHP-Parser/pull/180 ?
 
5:36 PM
why does that matter?
 
@ircmaxell :) this would make me feel much more comfortable and motivated too, since the implementation would be properly scrutinized by capable people (technically) independently of the "yay" polling.
 
yeah
 
Many of the "technically capable people" are going to be fairly busy until our feature freeze.
 
@LeviMorrison I don't get the quotes... but for instance, @NikiC is capable of doing the review and others that care enough are too (cc @bwoebi). I don't think human resources would be an issue.
 
timing is though
 
5:48 PM
sure, but we have to review the patches before merging right (hopefully)? the review will be made in any way.
 
s/have to/should be/
 
@SammyK New commit in my branch for you to pull in. Adds file descriptor caching and boosts speed quite a bit for random-heavy apps
 
user895378
@Leigh oh good. I was going to suggest descriptor caching there. you're way ahead of me :)
 
I can eek more perf out of it, but we're going to get into a huge ifdef labyrinth
 
user895378
6:02 PM
Also known as "the openssl maze"
 
oh @ircmaxell, thought about the userland rng. Keep the state request-local. Init on first call to get random bytes, throw away at the end of the request. Keep a short reseed time on it (i.e. 1 second) to act as a throttle, and it limits the impact for long running processes too.
 
user895378
Is 5.6 branch building for everyone else right now and am I just doing something stupid?
 
@Sara Around?
 
hello
anyone installed libpuzzle extension
?
 
user895378
@LeviMorrison have you tried to build 5.6 on the new leviathon system? I'm wondering if I'm missing some build dependency in 5.6 that's not necessary in master.
 
6:08 PM
@rdlowrey Since I updated it I haven't used it much.
 
user895378
I can build master just fine but I'm getting implicit function declarations with 5.6 even after a buildconf --force && make clean
 
Hmm. Did you download a release or are you just on the git branch?
 
user895378
git branch trying to build from source so I can merge a bugfix up from 5.6 to master
 
@rdlowrey I don't trust "make clean" or "./vcsclean". I just do "git clean -xdf". But that's "scary" :-)
 
user895378
> configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 3.0, min: 204, excluded: 3.0).
 
user895378
6:11 PM
sudo yum list bison
Loaded plugins: langpacks
Installed Packages
bison.x86_64                                                         3.0.2-3.fc21
 
user895378
What version of bison do I need for 5.6?
 
I often download specific bison versions. I know 2.6 is good because that's what I use on my Mac.
 
user895378
Yeah I'm using 2.6 on my local box
 
user895378
The potentially hazardous defaults of running an OS like fedora I guess :)
 
@JoeWatkins hey, i added a test showing off traits github.com/php/php-src/pull/1118/…
6 days until vote. anything in anon classes you folks feel will get no that could be solved?
 
6:14 PM
Talking about traits: I ran into bugs.php.net/bug.php?id=69180 today.
 
@Leigh oh, I would be 100% against it if it wasn't request-local
 
Not sure a remote memory read is particularly useful against it at all then
Still, I don't want to implement for 7.0. It's just the result of me thinking about it
 
sure it is, because you can compute multiple secrets in the same request
session id, csrf token, tec
 
@SebastianBergmann the entire "declaringclass" stuff for traits is also kinda broken right now
 
@Ocramius The fundamental idea of traits is obliviousness. There must not be any notion of the trait at runtime.
 
6:18 PM
@rdlowrey vim configure /3.0 And change to something like... 30.0
 
++
 
it still compiles fine, you just get a warning about deprecated pure parser
 
user895378
6:33 PM
@Leigh I couldn't get it to work so I just eventually downloaded 2.6 and built with that :)
 
6:55 PM
@ircmaxell lol, nice one, and I hope it's not related to what we were talking up there. No one is trying to fool anyone here ;)
 
@marcio no, it was unrelated
 

« first day (1600 days earlier)      last day (3348 days later) »