« first day (2028 days earlier)      last day (2920 days later) » 

8:00 PM
@Andrea links please
 
the centre-right do not talk about shooting Muslims with pig's blood and building impossibly high walls with nonexistent money
 
Ekn
well, meanwhile in Turkey
 
@Andrea his rhetoric is far-right, yes. Is he too?
 
@tereško that's not how the US constitution works
@bwoebi the rhetoric alone is worrying enough
even if Trump is not "truly" a fan of these things, he's curating a follower base who is
 
@Andrea The worrying part is that he reaches people with that rhetoric.
 
8:01 PM
**Checks on the Executive branch:**

Impeachment power (House)
Trial of impeachments (Senate)
Selection of the President (House) and Vice President (Senate) in the case of no majority of electoral votes
May override Presidential vetoes
Senate approves departmental appointments
Senate approves treaties and ambassadors
Approval of replacement Vice President
Power to declare war
Power to enact taxes and allocate funds
President must, from time-to-time, deliver a State of the Union address
 
@tereško all of these have exceptions.
executive orders, in particular, Congress can do nothing about
also, the President can straight-up invade any country they want to
 
since neither of us is a US constitutional scholar, the point is moot
 
@tereško *moot, and no, I studied this at school :)
 
riiiiight
 
no, really. you can learn this at school in Scotland, if you want to. (I chose to.)
 
8:05 PM
Trump is a buffoon, Clinton is a warmonger (and corrupt at that)
 
@tereško Trump isn't a buffoon.
He's calculating.
His success is no accident.
 
ehh ... maybe a miracle happens and Bernie get the nomination
 
@NikiC @bwoebi why does opcache omit to save the constants table ?
wrong isn't it ?
 
@JoeWatkins because it gets recreated every run?
 
I don't think so
 
8:08 PM
@JoeWatkins hmm?
 
constants don't have a file scope do they
 
@JoeWatkins constants aren't early bound as far as I can see
 
and included files
yeah but if there is an existing constant and code calls define() what happens ?
 
@JoeWatkins warning about redefinition?
 
I'm not sure why we don't see that
 
8:13 PM
Can I get a review on the Nullable Types RFC before it goes to vote?
 
Why we don't see what?
 
Oh, need to update voting choices first.
 
@JoeWatkins But yes, we probably could make it a compile-time thing for const … I guess. As const is a pure top-level statement, it's probably even fine to early bind them in compiler
 
@LeviMorrison go for it!
How long will you leave the vote open for? I'd suggest until the Sunday after next
 
@Andrea I'd suggest a day more … :-P
 
8:19 PM
@LeviMorrison I would recommend reordering sections
To return values, parameters, default values
You are kinda jumping into details before covering the important stuff
 
true
 
Or not ... looking at the examples, the whole RFC is actually details
 
it is
I think it would be fine if we added one or two basic examples at the top of the Proposal section
function returns_null(): int {
    return null; // ERROR!
}
function returns_null2(): ?int {
    return null; // OK
}
function returns_int2(): ?int {
    return 1; // OK
}
 
@NikiC I still think it makes sense to re-order.
 
user5992646
what should we use first chdir() or opendir() in PHP?
 
8:41 PM
-ZEND_API void ZEND_FASTCALL _zval_dtor_func_for_ptr(zend_refcounted *p ZEND_FILE_LINE_DC);
-#define zval_dtor_func_for_ptr(zv) _zval_dtor_func_for_ptr(zv ZEND_FILE_LINE_CC)
-static zend_always_inline void _zval_ptr_dtor_nogc(zval *zval_ptr ZEND_FILE_LINE_DC)
-#define zval_ptr_dtor_nogc(zval_ptr) _zval_ptr_dtor_nogc((zval_ptr) ZEND_FILE_LINE_CC)
^ @NikiC I'm about to remove these from zend_variables.h
(I'd preferred removing zval_dtor() in favor of zval_ptr_dtor_nogc(), but that's going to break too much IMO)
_nogc() is used in Zend/ only as far as I see
 
Wes
@PaulCrovella pong
 
I reordered some sections and added more examples to the proposal section. Thoughts? /cc @NikiC @Andrea
 
@LeviMorrison looks good, I think
 
@bwoebi is there a standard URI resolver baked in to artax (or in another lib) that I can access?
Like I have an absolute URI and a relative one, I want to resolve the relative one to absolute
 
@DaveRandom not that I'd know
 
8:54 PM
I love you PHPStorm
 
oh there is, There's a URI class with a resolve() method
 
@DaveRandom damn… I had been looking at that class, but not seen it
argh
 
@bwoebi err, just keep it as aliases
 
actually I hate PHPStorm
 
@NikiC we already have too many aliases
 
8:57 PM
it renamed the interface and its file, and it renamed the implementations… but not their files
 
The less aliases the better
 
@bwoebi No need to make this a controversial change
Especially as the zval_ptr_dtor_nogc name is better (just not backwards compatible)
 
mhhh, okay
 
Wes
'nings
 
@Andrea I pushed things ...
File is really badly named
 
9:02 PM
omg
this is what I wanted, thank you :D
 
getEntries and getGlobals are really bad, they should be returning iterators ...
I'll do that sometime ...
yw
 
don't worry too much about it :p
 
I'll try not too :D
 
for now, though, I'll just turn clobbering back on
but maybe tomorrow I'll use it :)
 
If I wanted to splice gifs into mp4's programmatically, where would I look to read/learn about doing that?
 
9:04 PM
yeah, still works ... cool
 
oh yay it segfaults
 
@bwoebi @JoeWatkins Nullable types should go to voting soon -- just pending one last communication from Dmitry.
On that note is there anything blocking union types that you can think of?
(I know we have some blockers on intersection types)
 
@Andrea awesome
 
@LeviMorrison on unions themselves, no. We just shall decide on scope.
 
@LeviMorrison not that I can think of
 
9:07 PM
@JoeWatkins if you wanna try and debug it, you could go grab ELC and use the same command I did (~/Projects/2014/PHP/php-src/sapi/cli/php main.php -inspector ../test.php)
@Joe test.php is the example PHP code in the README file
 
@Levi I'd be in favor of having an additional vote for true/false support (in that RFC).
 
not to say you should do this yourself, just if you want to. I could do gdb tomorrow. but I'm gonna go watch anime now.
cya, and again, thanks a ton @Joe for Inspector :D
 
where is test.php ?
 
<?php
declare(strict_types=1);

function factorial(int $n) {
    return ($n > 1
        ? $n * factorial($n - 1)
        : 1);
}

var_dump(factorial(7), factorial(15));
It's this, I think.
yep, verbatim
also for all I know your code might work fine and it's just me having broken the build.
and again, you don't have to debug this.
anyway. gonna actually disappear now :p
 
why do I get phpinfo() ?
 
9:10 PM
phpinfo()?
 
ah nvm, I dunno what happened there, was using it wrong :)
(function () {
    "use strict";
    function fun_factorial() {
        var cv_n = { type: 0 };
        var var_0 = { type: 0 };
        var var_1 = { type: 0 };
        var fcallTargetStack = [];
        var fcallArgumentStack = [];
        var jump = 0;
        goto_emulation:
        while (true) {
            switch (jump) {
                case 0:
                cv_n = arguments[arguments.i = arguments.i || 0];
                arguments.i++;
                zend_compare_function(var_0, { type: 4, lval: 1 }, cv_n);
that is ... almost evil ... by the way ... and working for me :)
 
probably just my build being borked then. I'll figure it out tomorrow :D
and yeah, it's evil :3
 
/me sleeps, nn all
 
@Andrea Psh, who writes a recursive factorial implementation and doesn't make it tail recursive? :P
 
night!
@LeviMorrison heh
 
Wes
9:31 PM
i.imgur.com/YmbzezQ.webm meanwhile, in japan
3
 
@NikiC done :-)
 
Ekn
lol
 
user895378
user image
12
 
Don't look at me
woah, actually don't look at me
 
9:41 PM
look at me instead
wrong window :-P
 
@rdlowrey HAHAHAHA
 
ftr there was a serious requirement to ask you something underneath all that
 
@rdlowrey You already did get some time to evaluate ampq?
 
@cv-pls that is actually pretty funny
 
@rdlowrey I love it ^_^
 
9:47 PM
@LeviMorrison you're having that problem too? :-)
 
9:58 PM
@bwoebi Let's see if anyone freaks out
 
@NikiC Typically the only one is Dmitry^^
 
Though I found that I'm pretty bad at predicting what changes people freak out about
Like that change for passing objects by reference. I was sure someone would interpret that change as the apocalypse come early
 
@NikiC what change are you talking about?
 
@bwoebi byRef(new Foo)
 
ah
 
10:00 PM
I actually removed some code this week that had = &new in it
 
@LeviMorrison And you didn't write an email to internals about how we're all literally Hitler for forcing you to do that?
I was convinced you're required to inform the internals list about things like that, judging by Lester's mail history.
 
> The proposal does not, actually, provide enough functionality to be useful.
Seriously, what is he even trying to say?
 
heh
Larry just joined my company since this week
fun to see coworkers out in the wild
 
@Danack "I'm going to vote no and making up an arbitrary reason why"
 
@FlorianMargaine (s/since// - probably. Since isn't used like that) - isn't he working full-time on Drupal? Obviously not, but I thought he was....
 
10:07 PM
@Danack He's saying that this proposal is just going to dump arbitrary AST annotations on people, and everyone is gonna come up with their own DSL for how to actually use them.
 
But he implies that's a bad thing.....
 
@Danack It can be
 
(I get it - I just pretty strongly disagree.)
 
Pretty sure we're going to see <<Foo($bar = 42)>> as an ad-hoc way of implementing named annotation attributes, because the proposal does not natively provide it
 
@NikiC I was so glad to remove it…
 
10:12 PM
@LeviMorrison Clearly something is wrong with your brain then.
 
Ekn
huh I got a fedex from Hudson, MA
it's going to be the very first time postage that makes it here... and I don't know who sent it
can it be SO?
ugh can't even engrish today
 
10:28 PM
Never skip Engrish day bro.
 
Ekn
heh true that
 
Wes
10:56 PM
@Danack decided something about void to null / postpone it to 7.2?
 
Wes
joe also said 1 day left
 
"it was a prank bro".
 
Wes
seriously?
 
Evening All
 
11:00 PM
@Wes aka they realised that there is still time left, and that we don't need to curtail everything that suddenly.
 
I've got a small problem with linking my forum topics to posts, I'm trying to create a dynamic link within a function that will link all topics to the relevant posts. Here is my function at the moment pastebin.com/1B8uy99g. on my test.php page I simply have $_GET['id']
 
Wes
@Danack so i had a "php will never change" day type for nothing?
 
@Wes potentially.
 
Wes
looking for someone to reimburse me the beer i wasted today, then. likely @JoeWatkins :B
 
"reimburse me the beer" - by, buying you more beer?
 
Wes
11:06 PM
clearly
 
Wes
11:18 PM
still @Danack let's spend the time left to improve the RFC as much as possible. I think Paul's draft is very good but i could be wrong as I'm already convinced it's the right move. Do you have any suggestion?
imho the best arguments are null is null, not void, it should just be null consequently
and the function is not supposed to care if and how its return value is used
and, even if void had a reason to exist, it would probably just be "mixed" (ie, no type / any type)
 
> If it turns out that there is a single 'right' way of using them, everyone will gravitate to that way anyway.
^ If that were true @Danack Laravel would not exist :-D
 
@Wes we need to work on it, have some videos of lorikeets in the meantime: youtube.com/…
> And most importantly, if what people think is the 'right' way to use
them evolves over time,
 
Wes
@Danack thanks, that's what i needed. but now i'm hungry. i want some well roast chicken
 
11:39 PM
huh, it looks like php doesn't have a single test for the $http_response_header functionality
There is only a single test that checks what happens if the variable is corrupted...
 

« first day (2028 days earlier)      last day (2920 days later) »