« first day (1623 days earlier)      last day (3329 days later) » 

11:10 AM
So I've been working on a canonical JSON decoding/data access question for SO... gist.github.com/pcrov/9f18fa6cebc1efa0e621 - am I missing anything?
 
@PaulCrovella seems pretty explanatory, but could you add some examples?
 
@PaulCrovella is that supposed to be "How to I do" on purpose? :)
 
BTW is there any streaming json encoders in php?
 
hi, is there any Kendo ui "merlin" here? , i really need help with this: stackoverflow.com/questions/29299365/…
 
11:14 AM
@Leigh missed a "the" - thanks. fixed.
 
Maybe give some examples? 1) "Fuck you" and then for 2) A link back to your own answer? :D
because recursion is fun
 
@Danack I love things like this, mostly because they tend to be full of people on teh internetz publicly proclaiming themselves to be anal
 
11:31 AM
Meh - copyright and other license legal stuff isn't that hard. Once you get exposed to the words used, it's usually pretty clear. Though in this case that terminology has been removed from the license apparently github.com/facebook/react/blob/master/LICENSE
 
Or not.
 
About to do my first push directly to php-src ... slightly scared
merging 5.4 into 5.5 there's a commit that's missing (from 5.5), not sure what to do about it - since it's not my commit
 
@Leigh remember to use the -f flag just in case it's needed.
 
Nik
Uhm hi guys, I was just wondering Is PHP worth learning?
 
11:34 AM
No.
 
@Nik If you don't know the answer, then probably not. Not for you
I hear Java is looking for new developers to bolster their numbers
 
Nik
@Leigh Really? Cuz I know it's used a LOT. It's like almost everywhere I look. Why does everyone frown on it though?
 
@Nik Yea, so why don't YOU decide if it's worth learning for yourself
 
oh, I had some stuff for this..
 
11:39 AM
@Nik it depends. What is your goal and location?
 
Nik
@tereško Location is shit. Goal is image gallery.
 
learn wordpress
 
oh, so your goal is: personal use
and not "working as developer"
 
@Nik Clearly the wrong place to ask that question if you want an unbiased answer.
 
Nik
@DaveRandom I never wnted an unbiased answer. If I wanted that, why would I be here?
 
11:40 AM
Also the wrong place to ask that question if you want a remotely sensible answer, but for different reasons.
 
Nik
@DaveRandom ah, well, that's.. thanks for the heads up.
@tereško no my goal is to make an image gallery as easily as I can make a wedding cake.
 
making a wedding cake is hard
 
then you do not need to learn programming
 
Nik
@FlorianMargaine That's a sensible answer. I always feel wp is bulky though.
 
@Nik Well more or less everyone here is a professional developer who uses PHP at least some of the time. So obviously, we think it was probably worth our while learning PHP. It gets a lot of stick from a lot of people who are, surprise surprise, not PHP developers. It also gets a lot of stick from us. These are things which are true of an arbitrary programming language.
 
Nik
11:42 AM
@FlorianMargaine and making an image gallery i easy for you?
 
@Nik very
 
Nik
@FlorianMargaine I'll teach you wedding cake if you teach me image gallery.
 
why would I care about making wedding cakes?
 
hi
 
that's a cool barter
 
11:43 AM
my wedding is already done, I don't need it anymore
 
my mysql extension is not loading in php.ini file
 
bleh, SO doesn't support webm uploads
 
Nik
@FlorianMargaine You can dress it up as birthday cake to give yourself when you're lonely.
 
@FlorianMargaine Yeh, but everyone needs cake
 
I have uncommented line extension=php_mysql.dll
 
11:44 AM
@Nik my wife does better cakes anyway. Not interested in the deal, sorry.
 
in php.ini file but still its not working
 
yesterday, by Feeds
posted on March 26, 2015 by kbironneau

/* by flazer */

@Nik ^
 
hi humans!
I need some help over here :-) I set my cookies and what you think? no cookies are actually set yet my set cookie seems legit:
Set-Cookie:BaytMe[token]=ZdYiNUs1LA%2FzGaoX7gnO.KuSMcWm5e6SDJ5gwW.EGgc3y2Y74AIAhysN5APj..ajroVSk3gOKbcrEFpofMXkMVhcu2KzJimZOS.BINu9UdH8C7hhLutXSKNCd6%2FsdJ1HWssIti0O59fg5KBbT1s50CjvQqw2.iAop%2FALGft7mfmSIe.whEDJb0swEDxs5C6XPGT1.7dS; expires=Fri, 27-Mar-2015 23:00:00 GMT; Max-Age=40501; path=/; domain=http://www.baytme.com; httponly
Set-Cookie:BaytMe[uid]=1; expires=Fri, 27-Mar-2015 23:00:00 GMT; Max-Age=40501; path=/; domain=http://www.baytme.com; httponly
 
Nik
@DaveRandom Ever since I've come into stackexchange, everyone is so objective. I'm not the kind of guy who asks what he wants, I just tread around the subject till something useful pops out of it. What I really wanted to know was how great PHP has been for you.
 
yet My url is also:
http://www.baytme.com/index.php
 
any idea why this happens?
this is my cookie setters:
$url = explode("/", str_replace("http://", "", Contents::getArray("settings")['url']), 2);
//die(var_dump($url));

$url[0] = ($url[0] != "localhost") ? "http://".$url[0] : false;
$url[1] = ($url[1] == "/" || empty($url[1])) ? "/" : "/".$url[1]."/";
//die("URL: ".$url[1]);
if($result){
setCookie(Contents::getArray("settings")['title']."[token]", $session, $timestamp, $url[1], $url[0], false, true);
setCookie(Contents::getArray("settings")['title']."[uid]", $userid, $timestamp, $url[1], $url[0], false, true);
 
Nik
@Leigh What's with all the Rebecca Black today? Every room I go to.
 
@Nik ....
What day is it Nik?
 
@Nik You mean, it's not just a Room 11 thing?
 
@Nik it's some form of virus-trojan-worm that infects humans, but makes copies of it's self via keyboard and the internet
 
11:51 AM
You see, normally everyone is happy it's Friday, this is our way of taking their joy away again.
 
Nik
http://i.stack.imgur.com/BKjYm.gif
 
@Leigh, are familiar with cookie usage?
 
@Nik also, if you get burned, the guidelines state you star the pacient-zero link
 
@MikeM. Absolutely
 
11:53 AM
@Leigh Would you like to take a look at my question asked above, I have no clue what's going wrong...
@Jimbo Yup felt for it (^_^)
 
@MikeM. What's wrong with just letting the session handle it?
 
@ircmaxell Fatal error: Return value of Collections\AvlTree::toBinaryTree() must be an instance of Collections\BinaryTree, null returned in /home/nikic/Ardent/src/AvlTree.php on line 83 in /home/nikic/Ardent/src/AvlTree.php on line 83 That error message ... does not look right
 
@Leigh The header says the cookie is being set, but the actual website says it's not however "EditMyCookie" also says it's not set.
 
It has a bit too many files and lines ;)
 
Yet the path and url seems correct in my eyes.
 
Nik
11:54 AM
@CSᵠ whoops, sorry. I didn't read those guidelines
Nice meeting you guys, toodles.
 
@MikeM. Are you sure the domain it's being set on matches what is in your browser?
 
@Nik PHP has a lot of problems. So does everything else. Simple as that really. It's very widely used and has a lot of useful applications, and it's incredibly easy to learn, especially if you are already familiar with another dynamic programming language, so it's probably worth learning.
 
except for the http:// part yes.
 
If you're getting a Set-Cookie header, but it's not visible in the browser it could be because the domain is wrong, or it's set to secure and you're over http
 
secure = false
 
Nik
11:56 AM
@DaveRandom Thanks, I'll get to that codecademy course I'd been holding back on.
 
http only is true
 
And, are you absolutely sure you need a cookie for what you're doing? :)
 
domain is set to: http://www.baytme.com
path to: /

it's a login so yes :-)
 
not necessarily yes
is this a "remember me" feature?
 
indeed.
1 day remember me.
 
11:57 AM
I have been trolling the android room too long for fridays now. They don't bite anymore chat.stackoverflow.com/transcript/message/22338304#22338304 :(
 
right, then you probably need a cookie ;)
 
(^_^)
I didn't have problems in localhost but man live environments...
 
Got an example login I can use to see the response? (also, SSL is dead cheap, if this isn't just something for you to personally use, logins always over SSL please)
 
it was actually the the http:// part (^_^)
 
ah yes, that's the scheme, that's not part of the domain
:p
 
12:02 PM
<?php

class X {}

interface A extends IteratorAggregate {
    function getIterator() : X;
}

interface B extends IteratorAggregate, A {

}
// Fatal error: Declaration of IteratorAggregate::getIterator() must be compatible with A::getIterator(): X in /home/nikic/php-src/t030.php on line 9
@LeviMorrison That error is wrong, right?
I don't see why IA::gI() must be compatible with A::gI(). Only A::gI() must be compatible with IA::gI(), which it is
 
Looks wrong to me
should just inherit what A provides
 
ha!
in Android, 1 min ago, by OcuS
ᶠᶸᶜᵏᵧₒᵤ :)
 
But how come so.
every url starts with: http://
on localhost it works fine...
 
@NikiC Isn't that just an issue with the (currently) invariant nature of return types, though? It's logically valid but explicitly not implemented as valid in the engine yet, afaik
 
@DaveRandom no, return types aren't fully invariant
 
12:06 PM
Is this to get around the "cannot implement previously implemented" error?
 
The error does not occur with just interface A
 
@MikeM. As an addition to the post above: Not into seo, but apparently google likes ssl, so if you want to make money from the site you might want to think about ssl in the long term anyway.
 
@NikiC ...in that narrowing mixed should be an exception or more complex rules than that?
 
@NikiC IteratorAggregate, A => A, IteratorAggregate will give you something different
 
It's a site my trainnee company wanted me to make.
They can configure it if they want it to be over SSL :-)
I got the job to make a site doing this and it did :-) added functionality for them so they can use ssl if they want.
 
user895378
12:08 PM
morning
 
@MikeM. UX is someone else's problem too right? :)
 
@Leigh Always saying yesh :-)
if about designing, I am not good in that shit...
 
Mornwrey
 
@NikiC @rdlowrey some git advice please. I committed my LibreSSL compat fix to PHP-5.4, I'm merging up to 5.5 and it is including some other commit from December in the merge, that isn't mine. I'm guessing it's not being merged on purpose since it is so old, should I merge with --no-commit and reset the affected file?
Or should I cherry-pick my commit
 
user895378
@Leigh Are you sure it should be committed to 5.4 at all?
 
12:19 PM
well, it's kind of a security thing? :x
Not sure
meh, you're right, ignore 5.4, problem solved, ty :D
 
user895378
I always have problems when I try to merge things including 5.4
 
user895378
They generally disappear if I just say, "screw it" and start from 5.5
 
user895378
But yes, I almost always use --no-commit.
 
user895378
If nothing else it makes dealing with changes to the NEWS/UPGRADING files easier because I can go in and update those files as needed in each branch before committing the merge (and avoid needing a separate commit to modify those files).
 
@MikeM. if you copy the url from the browser and paste somewhere else you'll see the full url http://localhost
 
12:22 PM
You don't want to include the scheme in the domain section of the cookie
 
user895378
Hmm ... reddit tells me I have 4 new messages in my inbox. I'm going to completely ignore that until the end of the day in the interest of not ruining my productivity (and not elevating my blood pressure).
 
:D
 
@rdlowrey maybe they're love letters from admirers <3
 
user895378
If by love letters you mean, "people telling me I'm an idiot because I have exactly 1 reddit reputation point on my account and they think that means I'm a noob and don't know what I'm talking about," then yes.
 
user895378
The problem with reddit is that all opinions are equal there.
2
 
12:34 PM
@rdlowrey I think the real problem is not that all opinions are equal there, but that all opinions are equally loud there. It's like a high school gym where everyone is talking at the top of their voice
 
user895378
That's probably a better way to phrase it, sure.
 
user895378
HTTP2 is nice, but its implementation is so much more complex for the relatively small benefits it provides.
 
user895378
This was always the main issue with the protocol: it imposes large costs in exchange for marginal benefits that only really add up when you're a huge outfit like Google :/
 
Yeah. And Apache's only option is mod_spdy, which means you HAVE to use FPM or FCGI
 
@rdlowrey I'm currently of the opinion that it's going to be IPv6 all over again in that respect :-(
 
12:39 PM
@Machavity That's a plus, right?
 
@NikiC If you can reconfigure your servers easily, sure. For me that means I get to rewrite the apache2 and PHP Chef recipes
 
user895378
@Machavity Well to be fair the protocol isn't even official yet ... it would be kind of ambitious to expect apache to fully support it at this stage right?
 
@rdlowrey True
 
user895378
Also ... something people don't seem to talk about is this: HTTP/2.0 is a bit of a rejection of the PHP Web SAPI model. The traditional web SAPI approach of process/thread per request severely limits the benefits you can get from h2 as a server.
 
user895378
The whole point of h2 is allowing you to multiplex many request/response cycles on a single TCP connection. But you still have the same thread/process bottleneck for a php web sapi app.
 
12:44 PM
@rdlowrey I'll repeat this elsewhere so that it's recorded a bit more permanently; I hereby bet $5 that HTTP2 will not be used by the majority of sites before HTTP3 is released against whoever wishes to take the opposite position.
 
I'm curious how HTTP/2 will interact with the new Chrome using multiple threads for download
seems like it defeats the purpose
 
user895378
It shouldn't really have any effect ... parsing is a local CPU bound operation. Regardless of the number of javascript files you're retrieving concurrently you can still parse them much faster than the IO-bound network retrieval.
 
user895378
That article is just saying, "we're going to parse these files as we receive them instead of waiting until the entire thing arrives so that it takes less total time."
 
user895378
To summarize my earlier point: h2 largely addresses the TCP connection bottleneck. But that is not the bottleneck for php web sapi applications where you're limited by concurrent threads/processes. So if you use the php web sapi you don't really benefit from h2.
 
@Jimbo gdi
@rdlowrey It could make a big difference to front-end simplicity when combined with a load-balancing reverse proxy, though
 
user895378
12:54 PM
@DaveRandom define "front-end simplicity"
 
hello
 
user895378
h2 also introduces new problems for the web sapi. Traditionally you would just limit the number of concurrent connections in your server configuration to avoid overrunning your machine's capabilities (e.g. MaxClients 256 in httpd). But you can't do that with h2 because you could have one client opening 256 streams on the same connection and now you're screwed. The php web sapi approach is just really problematic in a world with h2 (because it was fine in 1996 but it's stupid now).
 
i have a problem that when i try to take a backup of mysql through CPanel
it download a file with 1 KB Contain that error
mysqldump: Got error: 1449: The user specified as a definer ('username'@'ipaddress') does not exist when using LOCK TABLES
 
user895378
You're really forced to limit the number of concurrent streams on a per-client basis to one or two if you want to use the web sapi (which defeats the whole purpose of h2).
 
12:57 PM
@rdlowrey Being able to rid yourself of CDNs and have everything within the same domain. Of course, I'm not sure whether that in itself is a good thing, since public/shared CDNs also effectively allow distinct websites to share resources (I don't need to host a local jQ/bootstrap/whatever, and the client only needs to keep a single cached copy of it).
 
user895378
@DaveRandom sure, but your actual php application still can't benefit from it.
 
I dunno about removing the need for CDNs. Half the reason we use them is the edge locations tend to be closer to the client
 
Indeed, at least not in the current ring-fenced synchronous model
 
user895378
Yeah that's my point: the progression of modern web technology is rejecting the web sapi model ... it's why I've been working on a better alternative for the last couple of years so I can continue writing php on the server side :)
 
user895378
It frustrates me that the php community as a whole hasn't recognized the web sapi model is not future-proof and needs to change.
 
user895378
1:01 PM
Writing blissfully inefficient code won't keep working forever.
 
and my boss is away again he's off and saying "good weekend and see you mondays"-.-
 
@MikeM. Is it because of the electricity problem?
 
@HamZa ??? no???
 
he's just lame and messes with that because I have to stay...
Nope, he's just going home he lives in Roosendaal same as where this comp. is...
 
1:10 PM
Is it an internship?
 
yup
 
Don't worry too much then :)
 
@HamZa I am not, I just leave at 3PM :-)
 
which is quite early I guess :P
 
I worked 3,5 hours more than my planning tells me to :-)
 
1:12 PM
hmm...
 
I sometimes forgot the time and made days of 9,5-9,75 hours {sometimes not always}
 
@MikeM. 9.5 hours? part timer!
 
a day.
 
@PeeHaa show off :-)
 
@MikeM. Yes part timer
@HamZa :P
 
1:16 PM
@MikeM. Don't worry @PeeHaa get's away with tons of stuff as he's sleeping with his boss.
 
@Fabor I am not worrying but 36-40 hours a week is not part time, that's full time...
 
Does @PeeHaa even have a boss?
@MikeM. he's showing off lel
 
@HamZa SSSHHH I wanna crush something ^_^
 
@HamZa He's called Pieter ;)
 
@PeeHaa Says enough... @Fabor you're correct (^_^)
 
1:20 PM
I've made a challenge for a CTF (security competition). Can you find the input needed to get the flag?
https://eval.in/private/f79e18b87f2da6
 
Oh the title is "PCRE_DOLLAR_ENDONLY", it's also a small hint to find the input
 
What am I doing wrong here with Generator::send() and yield? 3v4l.org/O8pV3
 
@HamZa "flag\n"
 
@PaulCrovella Correct. Was it easy? I gave the challenge the "least" amount of points when completed
 
1:27 PM
I mean, why doesn't it give 1,"a",2,"b" but 1,"b",2,NULL instead?
 
if($input === 'flag'){
I lolled @HamZa
 
@PeeHaa why?
 
@m6w6 You aren't accepting any params like $a = yield;
 
@SergeyTelshevsky You forgot the jQuery dependency :P
 
@HamZa "Easy" here depends on what you know. I happen to know a bit more regex than a lot of developers, but also a bit less than a lot of others; so I have no idea how to rate it. It's something you either know or don't.
 
1:29 PM
I see
 
user895378
That internals thread whining about ternary associativity is stupid. If you're writing nested conditional ternary code that way you deserve to have your code not work.
 
@HamZa As in fun (but easy) :)
 
@Danack huh? I'm dumping them
 
@Machavity if run in the js console on this page works fine :)
 
meh, if the user inputs "flag" then it will not show the flag. The point of the challenge was that php + regex is weird.
So it happens that `$` will match end of line, it would also accept \n
To get around this you need to use the D modifier.
/^flag$/D would reject "flag\n"
 
1:33 PM
@m6w6 tbh I don't understand what you're trying to do. But if I see a send on a generator, I would expect to see at least one place in the function where the send would be used via $a = yield;.
You're only yielding stuff, so there's no receiving in the function?
 
I do var_dump(yield) as you can see in the output
@Danack e.g. 3v4l.org/CAKEj same output
 
@HamZa it's not that "php + regex" is weird, this is a pcre thing. Not at all specific to php.
 
What that ^ guy said
PHP is great and does all the things!
 
@PaulCrovella hmmm correct. It seems I need to improve the description :)
 
@m6w6 The URL of this fragment leads me to believe that it is A Lie.
 
1:40 PM
@rdlowrey heh :)
 
@krakjoe @asgrim @SaraMG That's like me not going to USA because wars still exist. The community I'm visiting has nothing to do with that.
 
@DaveRandom it is!
 
user895378
@m6w6 Yeah disregard all that. I confused myself and that explanation is wrong.
 
is it, is it really like that !?
 
user895378
3 messages moved to Trash
 
1:41 PM
@JoeWatkins It's russia. It's not really a vote as in other countries :P
@rdlowrey hehehehe
 
This makes sort of sense: 3v4l.org/vkgs1
 
user895378
(don't want to confuse anyone with my incorrect explanation)
 
github.com/php/php-src/compare/… - This is something we added to 7 in the CSPRNG functions, backported to mcrypt
 
so, the prior example makes sense, too
I guess... uhm...
 
@PeeHaa halp, I'm trying to make that "how do I php the JSON" canonical question maybe actually something we can use... effort so far gist.github.com/pcrov/01953d75917874ff4351 ... fixit fixitfixit
 
1:43 PM
let it be.
 
@PaulCrovella JSON array? It could be an object?
 
@PeeHaa maybe, but it doesn't really matter does it ... you can't expect anyone to feel comfortable in a country whose laws makes a point of persecuting them, for whatever reason ...
so its still legitimate for someone to say "I'm not going to Russia", if they are gay ...
 
@HamZa That wording is based entirely on the 99% of questions about this on stack overflow. The reality is explained in the answer. The question still needs... work.
 
@PaulCrovella bookmarked for tonight. I'm in the process of finishing a project o/
 
I see
 
1:45 PM
$item = (int) (bool) $item;
 
@JoeWatkins No argument there
 
because friday
 
@m6w6 Because auto-priming ... I admit it turns out a bit weird in the send() case, maybe that one should've been excluded
 
$a = yield "a"; breaks up to yield "a"; and $a = yield; so this makes sense, too: 3v4l.org/RZCZM
 
1:50 PM
@NikiC Oh, well 3v4l.org/isWfl -- not sure this is handsome
 
@Danack coooooooooooool
 
I wish I'd thought of doing that.
 
@m6w6 That case looks okay
 
@NikiC Yes, it's working, but it doesn't look very intuitive
 
1:53 PM
Anyway, mystery solved, thanks for all your eyes
 
Going home, good bye and have a good chilling weekend :-)
 
@NikiC did you see the error when you reverse the order of the interfaces after extends?
One of the errors should happen all the time right? Not one or the other depending on order..
 
@Fabor I would caption that "Scalar Type Hint Opposition"
 
lol
 
@Leigh Fatal error: Class B cannot implement previously implemented interface IteratorAggregate
 
2:03 PM
Yes. that one
Shouldn't it be order agnostic?
 
yeah, no idea really
 
... because PHP. It's fine how it is :D
Isn't this just because the LSP check comes before the previously implemented check? So the simple solution is to move the previous implementation check ahead of it. I don't see how this would cause a problem
 
@NikiC Yeah, that does look off. Dmitry redid the error messages, I'll take a look at it tho
 
2:29 PM
It is almost the weekend!!!!!!
 
@NikiC Gotta make sure you got the file and line.
 
2:44 PM
@NikiC @LeviMorrison order is more important than I thought I guess... 3v4l.org/HHH8Q
 
You have it backwards.
Line 5 should not error, line 7 should (maybe) error.
Kinda depends.
 
Expected behaviour: both error, or both don't error
 
If I suspect that a compiler is generating incorrect code from inlining a function, is there a way to force it to not inline?
Also, I hate computers.
2
 
@Danack What compiler? GCC?
 
@LeviMorrison Care to explain why?
 
2:48 PM
@LeviMorrison Yes GCC 4.4.7
 
@Danack Dunno how recent this is but void __attribute__ ((noinline)) foo()
GCC will still on rare occasion inline that.
(I don't understand why)
(But that's how you are supposed to do it)
> This function attribute prevents a function from being considered for inlining. If the function does not have side-effects, there are optimizations other than inlining that causes function calls to be optimized away, although the function call is live. To keep such calls from being optimized away, put asm ("");
 
ta
 
Anonymous
@Fabor ping
 
pong
 
Anonymous
3:03 PM
how are you? Long time no see.
 
Indeed ltns. I'm good thanks you?
 
posted on March 27, 2015 by kbironneau

/* by Frankie */

 
OPCache is certainly a high quality piece of code and doesn't make me want to become a chicken farmer.
 
Anonymous
@Fabor I'm doing ok. I needed to know, if you were still working with the dating-site thing
 
Oh no, I stopped that years ago.
 
3:06 PM
@Danack Goats, man. Goats.
 
@PaulCrovella Yes, yes, I've heard about your 'love' of goats.
 
@PaulCrovella chrome saturated the market with goats.
it's too late now
 
Anonymous
@Fabor I can't find any good software, did your company made its own from scratch or did they get one of hotscripts.com :)
 
From scratch. Not that it was a particularly good build.
 
morin
 
3:17 PM
@Danack s/farmer//
 
so, I made the quick experiment with PHP templates - class List<Type> { /*...*/ } - and my conclusion is - seriously, why do we think we need templates in PHP?
 
@marcio You type argument is at the wrong place
 
Anonymous
one does not edit/fix intentional typos :) @marcio
 
@NikiC fixed :D
 
Good, I was afraid you were intentionally using that syntax, because PHP
 
3:19 PM
@marcio can you elaborate?
 
So, what is your conclusion based upon?
 
no, quick typed
apart from the return types support, it's just so much easier to have a parameterized generic class - new GenericList(MyClass::class, [$item, $item]); - unless I'm missing something?
 
By easier you mean easier to implement the "generics system"? ^^
(By means of not having to implement it at all)
 
in part, but mainly because PHP is already so big that adding templates just to have something that can already be done seems overkill, and using instanceof or reflection doesn't seem so problematic
 
3:24 PM
@marcio that's the same reason you shouldn't have scalar types in 7
 
@ircmaxell not really, the strict mode adds a lot of value
 
Generics also add a lot of value for type checking ^^
 
@marcio you can do that without engine modifications though
function foo($int) {
    if (!is_int($int)) { throw new BlahException(); }
}
 
hummm... I'm just not so sure anymore. But I still think the preprocessor idea for other stuff is nice enough ^^
@ircmaxell but this requires you to do the manual type checking everywhere :/ implementing a list class is a "do once" thing
 
@marcio is it?
generics are useful in more areas than that
 
3:29 PM
@marcio It's as much a "do once" thing as implementing scalar type checking for a single method
 
@ircmaxell ah, that's what I would like to hear
because I only saw the "templates vs arrayof" debate on PHP land. Do people really want templates or they just want to have templates so they can do their arrayof?
 
oh no, it's not just for the arrayof
 
@NikiC the internals discussion on the old "arrayof" thread sounds a lot like that
 
that's one really useful reason to use it
 
@marcio It's been a while, but presumably the argument there is that introducing generics would cover arrayof and much more, in a better way, so introducing arrayof now doesn't make sense
 
3:33 PM
(BTW that thread was a mess, almost painful to read )
 
Unlike every other thread on internals?
 
@NikiC that's a very optimistic (and valuable) interpretation of the overall tone on that thread
but after reading the thread I started to depress wondering whether it would be just a waste of time to revive it
 
Reviving arrayof? Yes, that would probably be a waste of time
 
definitely would be a waste of time ...
 
"Reviving" generics? That would probably also be a waste of time :D It's a lot more complex topic and will have to fight against the usual type checking resistance
 
3:46 PM
oh I dunno, just reviving arrayof is a waste of time, but implementing generics and array of on top of that, is probably the way to go ...
 
@NikiC that's what I meant.
 
nothing is easy ...
 
Nah, there are easy things
 
sure, such as doing nothing ...
 
morning @Sara
 
3:47 PM
I mean even if the patch takes an hour, it will be a battle ...
 
Mornin'
 
moin
 
@JoeWatkins That's actually pretty hard
 
@NikiC :)
it is actually ... nothing is the most boring thing in the world
 
Hey I have recently installed nginx and I am having some trouble with it. When ever I visit 127.0.0.1 I receive the heading 403 Forbidden, this only happens when my index is a .php format. I also tried going to 127.0.0.1/index.php but all that did was download my index.php file, can anyone help with this?
 
3:53 PM
@LiamHardy Maybe compare your configuration against this one - blog.basereality.com/blog/11 ?
 
@DanLugg did you see dmitry's mail on the internal ctors thread?
Basically it means that you should drop the ZEND_CTOR_MAKE_NULL calls that are littered around in places
And looking at the list on lxr, I'd say you missed some classes
 
E_WRONG_DAN.
 
In some cases the CTOR_MAKE_NULL was just redundant, but in others there is no EH_THROW and your patch doesn't seem to add it
 

« first day (1623 days earlier)      last day (3329 days later) »