« first day (1601 days earlier)      last day (3338 days later) » 

12:35 AM
OK, found a new wart I need to fix in php.
 
@ircmaxell That's this bug report right ? bugs.php.net/bug.php?id=62042
Or at least seems related.
 
@ircmaxell yay, proper module system in 7.1 ;D
 
Awww… I hate opening zend_vm_execute.h in browser/lxr…
 
12:51 AM
Are there any alternatives to OpenGrok that don't use Java?
Just thinking it would be handy to have something locally on my laptop for when I'm offline
 
@Danack no, but that's related
 
1:22 AM
@Danack That one will work if you switch the order of both namespace clauses ;-)
@Leigh and you don't have Java installed?
 
@Ja͢ck Why would I do something silly like that
going to check out cscope
 
Jack
-1
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...

Hi
 
1:43 AM
Answered :)
 
aaaa.... it's not uniq...
 
Yeah, unlike array keys there can be more than one same value.
 
hello
 
soundcloud.com/ficklefriends/for-you <-- euro-house remix plz @PeeHaa
 
good moaning chris :)
 
1:54 AM
3v4l.org/3Me8o#vhhvm-331 - has different algorithm: sort $b array, then starts binary search values from $a inside $b.
 
@Ja͢ck just to lay your mind to rest, I'm 100% sober
 
that's awesome :)
 
No alcohol or other things here, no sir
 
okay, now you're becoming suspicious already heh
 
1:56 AM
@Ja͢ck do you ever make it over this of the world any more? Want to see you at a conference or two... or just a bar would be fine
 
There's a funny smell in my apartment building on the landings and in the lift shaft... smells like a burning out motor / electrical burning, I had a poke around but can't see any smoke anywhere... not sure it's fire department material
 
Are you sure it's not the massive joint you just smoked?
 
I smelled it on the way outside, not the way back (well both, but it was there beforehand)
 
@DaveRandom such would be a good idea at any time .. i do journey to my hometown once a year.
conferences are harder, because i'd have to convince my boss it's really imp't heh
 
@Leigh following on from teh conversation before... maybe it was one of those tesco value joints
 
1:59 AM
If I'd ask my boss now, he would wonder how a php conference would help with iOS development heh
 
@Ja͢ck well just make your annual journey coincide with a conf :-P
 
Perhaps if I'd spin it like "Boss, I need to head over to the UK and get really drunk"
 
hard to argue with that
 
@Ja͢ck in fairness, most server-back mobile apps are PHP powered at the back end, because it's easy
 
well, php or node
 
2:01 AM
There's an angle for you
@Leigh sshhhh
 
Our backends are, so far, done up in Java ... eheh
brb
 
@Ja͢ck oh the irony
youtube.com/watch?v=oEw_0QXa2Ek <-- recommended listening (you may hate it)
@Leigh you got a job yet?
 
no, you offering? :)
 
I actually could be... but you wouldn't like what I have to offer, for many reasons :-P
 
working remotely solves one of them
 
2:05 AM
Unless you enjoy unfucking an old and a knackered AD you're probably shit outta luck
Or doing cold calling
I can sort you out there
/hides
 
If it pays my asking salary, I could do it. Considering at least 100% of cold calls end up with the other end hanging up, I could even automate it
 
I have tried writing predictive diallers a few times, turns out it's pretty hard
tbh the entire world of CTI is fubar atm, people either know how to write phone systems or the they know to create UIs, there's very little congruence
If you could create a softphone that both works and is easy to use for mere mortals, instant $$$
You know you've had too much to drink when you elect to put All Saints on
#NoRegrets
 
Did you change jobs or something? I thought you were at docuwhatsit
didn't know they were the cold calling types
 
hello
 
2:23 AM
@Leigh long story short, money makes people behave like assholes
And by people, I almost exclusively mean me
 
@DaveRandom I always act like a dick when I feel I'm undervalued
another reason why I quit
 
i wanna feel like an asshole.
where can i get me some of this "money".
 
I think you'll find it's the lack of money that makes people arseholes
 
@Leigh not sure that's the right term... more could-be-valued-more-somewhere-else
I don't actually have anything bad to say about docnet, and I behaved badly when leaving
Or, well, discourteously at least
 
But you're so mild mannered! I find that hard to believe
 
2:33 AM
Only in terms of not honouring my contract, and only by like a week
But I'm pissed off with myself for unintentionally burning a couple of bridges
 
I think I'm having language barriers with Yasuo, maybe he is misinterpreting what I say or the opposite
 
I have one more question about udiff : )
 
@DaveRandom nice voice :)
 
@marcio I often fail to understand yasuo, but from a personal PoV I'm not sure about strict arg counts, and something he said is exactly what I thing, namely:
> Looking into function body and checking certain function existence seems just too much for a language.
^ this
I don't think that level of analysis at the engine level is healthy
esp since that impl is incomplete
 
@DaveRandom ok, what part you think is incomplete?
 
2:43 AM
The proposal itself is okay, up until the part where it needs to inspect the function body :)
@sectus you sure about that?
 
I am working on it...
 
@marcio Well re-reading the RFC I see that you've largely addressed one of my big issues (dynamic calls) but it still seems to me like something that is wrong unless you first fix a smaller but related issue: func_get_args() and co should be lang constructs, not functions
i.e. dynamic calls should be broken anyway
 
@Ja͢ck well, we already "inspect" function declaration and bodies when we compile then. We even set flags like "is variadic", "returns by ref" so it can be used at run time.
 
I know, I know.
 
2:47 AM
@Ja͢ck Ahh yes, the ballad of PHP
 
haha
 
You really think that checking the implementation while compiling it is too weird?
 
I am a man of const SORROW = "all my days"
3
 
:)
@marcio didn't say it was weird; just, unfortunate ... but that's just because I love the ... :)
 
yea, if it had chance I would just deprecate func_get_args but... no dice for now. Maybe when we reach 7.1+ :)
 
2:50 AM
\o/
 
@marcio doesn't need to be deprecated, just make it a lang construct
 
@DaveRandom what difference would it make, in the context of the RFC?
 
wiki.php.net/rfc/context_sensitive_lexer will make that even less of problem than it already isn't
@marcio none, but in terms of sanity... lots
same for extract()
Things that are aware of scope other than their own, in other words
 
@DaveRandom ok, agreed. But it seems to me like a case for another RFC "Make func_get_args a language construct" :)
 
@marcio to be clear, I've intentionally refrained from comment and will abstain from the vote because my objections are not strong enough to validate a "no"
@marcio My issue is that this should come first, esp in light of the ctx sensitive lexer
(if it passes, which it will)
If func_get_args() etc were already broken because they'd been fix for the right reasons then I obviously would have no issue with something that would cause not further breakage
if you see what I mean
When I read that back it sounds like bad logic, but I stand by it
 
2:57 AM
@DaveRandom oh, but the feature freeze is too close, there is no chance to have things in the "perfect order" anymore. I like the idea though and will put it on my RFC whishlist.
 
@Ja͢ck youtube.com/watch?v=3wRv7wxpn2w because alcohol
@marcio again, certainly going to vote against it on what I concede are pretty shaky grounds
 
Definitely.
 
Just at the moment feels like a band-aid
 
0
Q: Trying to understand array_uintersect behavior

sectusLet's continue. Why array_uintersect does not compare values of first array after sorting? By my humble opinion array_udiff and array_uintersect should have similar algorithms, but they have not. Why? $compare = function($a, $b) use(&$iteration_count) { echo("$a : $b\n"); $iteration_...

 
@sectus You're on your way to become a sensation like "Kim Jung Il looking at things"
"sectus trying to understand things"
 
3:00 AM
@DaveRandom ok. thanks for sharing POV anyway.
Getting late here. Bye :D
 
@Ja͢ck we could reuse the same photos for illustration
 
:)
 
@marcio lol, that should have read certainly not :-P
nn
 
@sectus if no values in $a are > $b[0] then there is no intersect
 
^ wat?
 
3:03 AM
both arrays are sorted, I guess the optimal check would be $a[max] <=> $b[0] (first)
 
Yeah
 
Ahh I see
But the func doesn't know that they are sorted/sort them before the comparison?
 
it sorts them :)
 
oh... yes it does
 
Please, check previous questions.
 
3:04 AM
I should probably put the baggie down and go to bed
 
@sectus Intersect does the opposite of what diff does, isn't it obvious then? :)
 
@Ja͢ck , no... it's could skip values too.
 
@sectus you should go read about quicksort. then you should put the computer down and walk away, and then a week later read about quicksort again. rinse and repeat for ~3mths and then if you're lucky you will still care
I kind of get it, and it still took me a good 5 mins of staring at it
 
@DaveRandom , please, check this question and answer: stackoverflow.com/q/28857862/1503018
 
3:13 AM
seriuosly though, I have no idea
on the face of it looks like a bug, but way too drunk to read src atm
 
@sectus in fact it does make sense
> Returns an array containing all the values of array1 that are not present in any of the other arguments.
oh, no it doesn't
well it sort of does
 
@sectus answered ... yet again :)
Btw, you've helped me earn the sorting badge :)
 
Yeah
 
Basically, it can do either of two things; it picks one :)
 
3:22 AM
@Ja͢ck What's interesting about that is... didn't Xinchen reimplement the sorting algos in 7?
 
For fun it could pick randomly hah
@DaveRandom Yeah, I believe so ...
But that shouldn't affect the end result.
 
I know there was a (minor) BC break, I'm a little surprised that produces the same result in terms of the callback invocation args
since we still seem to have a semi-inefficient impl
(not that I could do any better)
 
@DaveRandom it doesn't :)
 
E_INSUFFICIENT_WINE
 
it does some things backwards
 
3:25 AM
Actually, I'm not entirely sure what was changed ... doesn't it still use qsort? :)
 
Yea it uses quicksort, but it was optimised somehow, I think there was something to do with locale based sorting that was broken too
 
@Leigh ahh, misread 3v4l dates
@Leigh it's something to do with not re-visiting identical buckets, so you create an array of linked lists and then flatten it instead of hitting each applicable bucket at every stage
or something
definitely roaming into an area I have a tenuous grasp of at best
I did try to understand it when it happened, though
 
Can't wait for quantum sort :D
 
my brain always starts to hurt when I try and do real computing, I'd really like to go get a pure maths and/or comp sci degree at some point, I could do with some foundation knowledge that I generally try and cobble together when I need it atm
@Ja͢ck I'm finally going to get some time to get back in to pgsql next week... it's the single most exciting thing I've been able to do in the last few years (for work with a real use case)
 
I've thought about that, too ... but refrained each time after considering that I have major issues with things I can't see practical purposes of what's discussed.
 
3:33 AM
^ we're discussing the practical purposes right now ;-)
 
Cool ... I should probably read up on Postgres, just for the heck of it.
@DaveRandom Yes, and that's exactly what makes me feel I should know more math ... however, I can also totally imagine that my tombstone will read "death by math"
 
@Ja͢ck srsly. You know how MySQL always comes across as kinda retarded? And how SQL Server is extremely retarded? And sqlite seems like it would be kinda cool if it was in any way scalable? Well imagine that someone took all the best bit of those engines, glued them all together in a way that worked properly, and then added a whole bunch of cool features on top of it... that's what pgsql was when it started out. Now it's way better than that.
I am a huge pg convert
 
@DaveRandom Okay, name me two retarded things about MySQL .. :)
For argument sake
 
ohh.. you don't as for it...
 
@Ja͢ck MyISAM
 
3:39 AM
I would exactly call that retarded ... and we do have innodb now.
 
@Ja͢ck 1) non-clustered multi-columns indices which actually required the statement to specify the columns in the correct order to use the index 2) timestamp fields which don't understand dates < 1970-01-01 or > 2038-xx-xx (whatever it ise)
seriously, a signed 32 bit int that doesn't understand negative numbers
E_WTF
 
Recent pitfalls for me. Spatial indexes not working on innodb. Poor stored routines syntax.
 
I've used stored routines once; didn't seem all that bad, though.
 
oh yeh, and the inability to do multi-column sequences without full table locks
 
So, Postgres supports spatial index?
 
3:42 AM
pg does (almost literally) All The Things
 
:D
Oh, well, and it's not owned by Oracle :)
 
Aggregate functions?
 
The only thing I've found so far that it doesn't do is ALTER TABLE ... ADD COLUMN ... BEFORE <othercol>
 
Then how do you insert a column as the first?
Or does it support FIRST?
 
recreate table. Like mysql does implicitly.
 
3:44 AM
@Ja͢ck I was equally outraged when I discovered that I couldn't do this, then I realised that there's actually no need to do this
Nov 17 '14 at 17:48, by DaveRandom
♥♡❤ PostgreSQL ❤♡♥
@sectus really? across all engines?
 
@DaveRandom , many alter tables just recreate table.
 
I suppose that would make sense, but at the same time I'm pretty sure that doesn't take long enough on innodb to copy the whole table
MyISAM does all sort of weird shit
 
It could be too long. And... if you have enough space ...
 
My favourite thing about pgsql (that I discovered yesterday) is that if you call NOTIFY in a transaction and then roll back then changes made by listeners to a locked table are rolled back as well
Oh also: transactional DDL @Ja͢ck
 
The real magic happens when you can still access the table while it's being altered :D
 
3:48 AM
that alone is a good enough reason to use pg
 
@DaveRandom Oooh, neat!
 
/me bails
nn
 
night!
 
It almost launch
 
what are you launching? ;-)
 
3:59 AM
damn.
 
Oh, a few more upvotes in either c++, iphone or obj-c would finally unlock generalist badge :)
Damn, Google is phasing out OpenID =(
 
I could add c++ tags to my questions ^ )
It's a little bit relative...
 
haha, not really ...
 
4:25 AM
Hi, i hv got a problem..
I am working on a php site with codeigniter
it is working all fine on a localhost (wamp) . But when i upload it to my server.. when i head to my site's url.. the page keeps on loading..
It loads the title.. but not rest of the content..
any suggestions..
 
Explore error.log
 
4:55 AM
@sectus Btw, what array_uintersect() does can also be applied to array_diff() like this.
it's okay if you don't completely follow, but it just proves it can work either way.
it starts to matter with more than one other array, though.
because by skipping values from the first array you have cached the fact that at least one of the other arrays contains that value.
 
5:35 AM
morning
 
user895378
@RonniSkansing morning
 
almost friday! [=
 
user4661379
Hi all
 
user4661379
can someone please help me in the small issue I;m facing with array?
 
user4661379
0
Q: Why I'm getting weird array from another array in following scenario?

PHPNutI've an array titled $request_data as follows : Array ( [link] => http://www.yahoo.co.in [is_activity_feed] => 1 [status_info] => my new yahoo link post ) Then I'm creating a new array titled $aVals based on the above array as follows : $aVals['is_activity_feed'] = $re...

 
5:54 AM
@PHPNut I do not have time to help .. but I would suggest you to add a var_dump of the $request_data also to the question
 
user4661379
@RonniSkansing:I've did the same. I just used print_r() to print the array.
 
and if you dump the content of a specific index like $request_data['link']['description'] you get back a string(1) 'h' ?
g2g
 
user4661379
After I dump $request_data I got following output :
 
user4661379
array(3) {
["link"]=>
string(22) "http://www.yahoo.co.in"
["is_activity_feed"]=>
int(1)
["status_info"]=>
string(22) "my new yahoo link post"
}
 
6:30 AM
@NikiC github.com/nikic/php-src/compare/… first version of yield from. As you see in commit message, stacktraces aren't supported yet. I'd like to discuss that first with you… as I found no obvious solution.
My idea was to eventually add a fake-prev_execute_data frame which is then replaced with the necessary information when a backtrace is generated… but not sure if this has no dubious side effects...
Maybe you have a better idea?
 
6:51 AM
can anyone provide me the code for receving and storing a file through post in Android file format?
 
@Ja͢ck , I got it. Finally.
 
@iPhoneDeveloper what do you mean by Android file format? Default post encoding format is application/x-www-form-urlencoded.
 
@cmnajs the andorid developer says that he is sending data for the image as a file..
 
7:07 AM
@Ja͢ck , now it's obvious.
 
@PHPNut - Just answered your question
 
7:22 AM
@sectus I've updated my answer as well, btw; it wasn't accurate enough.
 
7:35 AM
@PhilSturgeon excellent stuff
 
posted on March 05, 2015 by kbironneau

/* by Reaper */

 
the only real argument against it is that is makes adding first-class support for classes a problem ... not that first-class support for classes is necessary or useful (because we have good reflection) ... I think good to go ...
morning all
 
DateTime, I'm out ...
 
hahahaha
its just a static factory method
for some reason this was added in 5.6: php.net/manual/en/datetimeimmutable.createfrommutable.php
but there's no DateTime::createFromImmutable()
 
7:40 AM
> Its still just as difficult to create mutable DateTime instances from an immutable DateTimeImmutable instance.
read it out loud ...
 
haha
immutable immutable
its 2:40 AM
... I should go to bed
:P
 
@Rican7 you should return false to be consistent with other DateTime factories
(instead of null)
 
I wanted to stay as consistent as possible to the mirror implementation of php.net/manual/en/datetimeimmutable.createfrommutable.php
:/
 
does it return null?
 
yes
emits a warning
and returns null
 
7:44 AM
fair enough
 
yea, not ideal for other factory consistencies
but definitely for its close "cousin"
 
if it's against master, you might want to use fast_zpp
 
oh, right, that's a thing now
 
uh, that's really meant for things that are called a lot.
 
@Ja͢ck really?
 
7:46 AM
yeah, it was brought up a while ago on ML
 
but... I like FZPP API better :(
 
While faster, it also yields a bigger binary, afair
akin to loop unrolling
 
yes, and it's 1984, so every byte costs us a billion dollars more to store on disk ...
oh wait ...
 
indeed
 
7:48 AM
lol
 
also doesn't mean it should be done because shiny and new
 
dunno if you noticed, but internals is stupid ... if you have something fast, you make that the standard; The size of the binary is really not a concern today, and if it is a concern, it's a concern for the people writing gcc, not us ...
 
hmm, before i get further misunderstood, my point is more along the lines of don't fix something that's not broken.
 
yeah sure, in this case it's not worth arguing the case over ... but in general though, we have a superior API, it should be the first option, shouldn't it ?
 
it's new code there
 
7:56 AM
@JoeWatkins i suppose; guess that wasn't made overly clear on ML, but it's reasonable to imply that.
 
it probably wasn't clear ... it probably isn't the position of internals ...
groups of 100 people tend to make decisions much differently to individuals or small groups ...
 
hmm, let me read the RFC again heh
 
hello @NikiC
 
> We don't propose to remove the existing API, and would suggest to use fast API only for most often used functions to get performance boost.
 
@FlorianMargaine hey
 
8:01 AM
sup?
@Ja͢ck "suggest"
 
@NikiC What are your thoughts about stacktrace issue?
 
@ThomasRuiz I'll take a look on sunday/monday, can't merge it now anyway. But looks like a reasonable approach (as it preserves the current isPublic() behavior.)
 
Has anyone ever seen anything like that before?
 
good monrngs
 
.... that var_dump() reported string length
 
8:03 AM
@FlorianMargaine not sure what your point is, there's a reason for that suggestion; not all functions demand a performance boost.
 
@Ja͢ck I think it was more saying "we don't need to go on all functions and use fzpp"
 
@Rican7 how did you get that?
 
hahaha
I just updated my system PHP version from 5.6.5 to 5.6.6
 
probably xdebug…
 
yea, good point
 
8:05 AM
@FlorianMargaine that sounds similar to what i said, unless you think otherwise :)
 
@Ja͢ck I mean that for new functions, using fzpp is fine
sorry... I meant this earlier:
> I think it was more saying "we don't need to go on all old functions and use fzpp"
 
I would argue that it's not necessary.
 
why use a clunky API when a good one exists?
meh
let's sort it out on internals though... if we have this kind of discussion, we're not the first/last
 
Go for it :) I wouldn't use the word 'clunky' to describe the "old stuff" though ... regular zpp is a lot more compact ...
 
@bwoebi With linearization restriction stacktraces shouldn't be a problem, right?
 
8:08 AM
@NikiC in this case, no problem.
But general case…
 
ML threads that are reaching 100 messages are either extremely interesting or extremely mind draining ... mostly the latter.
array_in() ... does he not realise how silly that sounds?
 
@bwoebi Don't think it's (cheaply) possible in the general case. Not sure about lazy approach ...
 
@NikiC came to the same conclusion… I'm just not sure about lazy approach because what does rely on prev_execute_data having meaningful contents?
I'd just initialize EX(func) to NULL and set EX(prev_execute_data) to the Generator calling frame.
Then it's marked as internal? Not sure if that's enough.
 
I don't know either
 
That's AFAIK the only possible workable solution.
 
8:20 AM
Without linearization, yes I don't see another way
 
good mornings
 
Q: What's the idea behind starring one own's repos on github?
 
@NikiC then I'll try that.
 
@m6w6 A: ++stars
 
morning
 
8:29 AM
I see that ext/ereg is being moved to pecl/text/ereg ;-)
 
8:41 AM
@m6w6 offset zero-based index?
 
@m6w6 same as "like" on facebook
 
@m6w6 Bookmarking and liking.
 
I think we need a php spelling bee.
Someone will pronounce the function name and you have to spell it properly.
 
8:57 AM
how will you pronounce printf?
 

« first day (1601 days earlier)      last day (3338 days later) »