« first day (3557 days earlier)      last day (1381 days later) » 

3:18 AM
It's middle of July. How.
What happened.
 
A wild pandemic appeared.
 
Are you talking about how the year has gone so fast?
 
It attacked with global-economic-meltdown... It's super effective.
I just looked at my security cam and saw it's starting to get light again x_x
 
The number of infections and deaths are going up out here. There still a lot of people that believe its a hoax.
 
3:34 AM
People are stupid. More so now than in the past thanks to the internet.
When exposed to vast quantities of information, your average smart person gets smarter, your average dumb person gets considerably dumber.
 
Is racially motivated here thanks to our great leader.
Almost feels like what happened in the last election is happening again. How they used Facebook ads to divide people before the election. A lot of posts about how the virus is a way for the government to control ppl.
 
It's a bit deeper than that... Trump claims that it's both a hoax, and a chinese bioweapon, it cannot be both, yet his supporters blindly believe it's both when "but ma liberties!11" are waved in front of them... it's ultimately a deep cultural issue of individualism vs benefiting the group.. and the US is quite far behind the curve on benefitting the group (healthcare etc) as it is
 
How is it looking over there? Are people in a hurry to go back to work for the sake of the economy?
 
In the UK? Not so much, there's been a lot of people being irresponsible, but there's also a deep distrust of the government saying it's ok to go back to doing things like eating out
Our government has been extremely wishy-washy, highlighting the danger but refusing to take necessary steps coming out of it such as enforcing wearing face coverings
 
They are learning that mistake here. They opened things too soon now the numbers are rising higher than ever.
 
3:49 AM
They've poured hundreds of billions into schemes to prop up employment, but now they're trying to put things back on track, but spending even more in the process.
 
I've noticed a lot more people within people I know to be infected.
 
I just hope that over the pond the giant orange buffoon gets removed, and ideally imprisoned
 
They did something with unemployment here where people would get an additional 600 dollars. That is more than they ever made in their regular jobs for some. Costing the government billions of dollars and a lot of people don't want to go back to work.
 
Which country are you from Sal?
 
It's looking like he will end up losing this time. Never know that's what everyone believed last time. That Hilary was going to be a sure thing.
US, California
 
3:54 AM
ah
 
Orange County
 
In the UK (and most of Europe) people that were furloughed were given up to 80% of their salary, up to £2,500
 
Home of Disneyland.
oh wow
 
(each month)
Obviously we're going to be paying it back in taxes for a long time, but it was preferable to instant massive unemployment
 
Our there they gave bailouts to small businesses It's been a disaster. Managed by Trump's idiot son and law. A lot of that money went to big companies not small.
 
3:57 AM
Yeah, lots of corruption for sure
Not that I expected anything less tbh
 
The freaking La Lakers got some money from that.
There worth over 5 billion dollars.
How that happend.
 
Here businesses that took money to ensure people were kept employed and didn't are being made to repay it
 
See that's good.
At least you guys have transparency.
Out here it was more like favors for friends.
 
It's not all sunshine and rainbows, the UK is run by a PM who is completely subservient to his chief advisor
a guy who makes Dr. Evil seem positively well adjusted
 
lol
With his mini mi.
 
4:00 AM
 
haha
close
 
his name is Dominic Cummings, he's completely unelected, has god knows how many conflicts but is completely untouchable
 
Chief Advisor when does his term end.
It's that the equivalent to here when the President elects his staff.
 
Yes, except he's appointed directly by the PM with no oversight and no limits
and the PM doesn't have a term limit in the UK
 
@MarkR you looked at your security cam to see that the sun is rising.... as opposed to looking out of a window...
 
4:04 AM
That doesn't sound good.
 
@Tiffany Curtains closed :P
 
@MarkR getting up and opening them? Lol
 
@SalOrozco The UK PM is not like the US president, they have their role by nature of leading the largest party. Their party can remove them whenever they so please, and do, quite often
 
Ohhh is it a 2 party system?
 
@Tiffany It was 4am and I'm sat here half dressed in a giant fluffy bear onsie :P
 
4:06 AM
The light of the morning wakes me up.
 
@MarkR this better explains the Thick of It... thought the idea of "shadow government" was weird but after enough context, I figured it out
 
@SalOrozco Technically no... there are 2 main parties but there are 4 effective major parties
 
Debating on unstarring that
 
I probably should cover my windows better.
 
@Tiffany In the UK the official purpose of the second largest party is to be the Queen's loyal opposition. They are meant to scrutinise and challenge the power of the main party, to that end they have people in certain positions that are responsible for challenging their counterparts, the people in these roles are callled the shadow cabinet
 
4:08 AM
You guys are weird
 
That was my next question. It was going to be whats the purpose of the royal family.
lol
 
They're our apolitical representatives of the country.
 
Does the shadow cabinet have any power?
Or is it the equivalent to our minority parties in Congress?
Though, the minority party has no power in the executive branch
 
@Tiffany They have certain powers to hold the government to account, in our parliamentary system they have the right to issue "urgent questions" where the speaker of the house demands that their appropriate minister responds
 
Minister = elected official of an area?
 
4:13 AM
Right, appointed by the prime minister to represent a particular area.
Ministers have a fair bit of power exercising what's called the royal prerogative (powers granted theoretically by the queen), but ultimately parliament is the source of most power.
 
By area I mean location like a physical part of the country. I dunno if you guys have counties.
Or what the equivalent of county is
 
ah, not quite. The closest comparison would be cabinet secretaries, such as we have the minister for education, the minister for defense etc
 
Do you have state governors?
 
They don't have states....
But there are parts of the country... Essex, Sussex, etc
 
Nope. Certain towns and cities have their own mayors but there's no equivilent to the individual states in England, if you go a bit further up to the UK and England / Scotland / Wales etc, they have their own regiional parliaments which have certain devolved powers
 
4:15 AM
yeah
ahh ok.
 
But their power all derives from the parliament
 
Comparatively, England, Scotland, Wales and Ireland are separate countries but united under a kingdom or something silly like that
 
and in the UK parliament can and will rebel as it so wishes, and does so quite often
 
lol something silly like that
 
I watched the Special Relationship (referring to Tony Blair and Bill Clinton). I guess there were some pretty nasty riots in Ireland in the 90s...
 
4:18 AM
the so called troubles.. riots would be one way of putting it, it was full blown warfare + terrorism.
 
California could be Its own country. One of the largest economies in the world.
 
en.wikipedia.org/wiki/Brighton_hotel_bombing - It may not be a surprise that a lot of the IRA's funding came from the USA
 
Yeah, the movie touched on that, like the leader of the IRA was given a soapbox over here
Which supposedly helped Clinton call the leader out as a favor to Blair (but that part could be fictional as part of the movie, I'm not sure what's true and what wasn't)
 
Clinton and Blair together came up with the peace process
Brexit has thrown something of a spanner into the works
 
Yeah... amongst other things
Someone orange
 
4:46 AM
Geez, Brighton hotel booking bombing is crazy
And on that note, goodnight
 
nn
 
 
4 hours later…
8:44 AM
@bwoebi I have a VM question, I hope it's ok to ping you :) When passing ?-> to reference params (or returning them from functions that return a reference) I want to error if the expression is an r-value. Currently, "should be refernce" errors are implemented by passing a flag from the compiler to the VM by looking at the AST (github.com/php/php-src/blob/…).
If the expression is -> it never errors. This doesn't work for ?-> as $foo?->bar->baz should still error if $foo is null. I could pass a flag if the value is possibly short-circuited but that wouldn't work either because $foo?->bar should be fine if $foo is not null.
I hope my question makes sense :)
 
9:42 AM
@Girgias I'm reading the saner string RFC, and I'm wondering what the distinction is between 123 + "string" (which will only emit a warning), and foo("123abc") as well as $str['string'] which will throw a TypeError? So in my opinion either the TypeError is one step too far, or the warning is too lenient. Especially considering that "string" seems to be a much worse number than "123abc"
 
9:52 AM
@IluTov I do not understand why you want to forbid r-values there?
Sounds pretty arbitrary to me
 
10:15 AM
@bwoebi Some people have mentioned this on here a while ago. gist.github.com/iluuu1994/7596fa93e08b62dad1989f762715b1ba I think most people would expect option number 2.
?-> is a little weird in that it could produce an l-value but only if the lhs is not null.
 
10:28 AM
posted on July 04, 2020

My socks are expiring. All of them. Many years ago, I discovered the wonders of buying socks in bulk. Same brand, same style, same color. If every sock is identical, there will never be a second wasted on finding a matching pair. No decisions, no accidental asymmetry. I just grab two and go. This is convenient. It saves time, it saves effort. It’s the only reason why I have my com

 
11:15 AM
@MátéKocsis Arithmetic operations use explicit cast semantics but warn, string offsets did a very weird thing of checking for numericness, warning if it was not, but then still using explicit cast semantics with no warnings
 
I'm lost... @NikiC Can you help? Is there any way to see if a tmpvar is an l-value? In SEND_* they might not be references yet and just get converted to references on the fly. I could just forbid ?-> with references completely but not sure that is expected either.
 
@IluTov No
Whether something is allowed to be used in a reference context is determined at compile-time -- with the exception of function return values
For function return values we base this on whether the return is a value or a reference
 
@NikiC Exactly, but property accesses (including nullsafe) are never references. So something would have to convert them to references before the SEND_* instruction does.
I think I'll just forbid ?-> by reference completely... I don't see any other simple solution.
 
11:59 AM
@IluTov that seems sensible.....as takes_ref(null); isn't valid code.
 
@Danack Yeah, and ?-> with a lhs will always fail anyway, so you might as well just use -> and assume the lhs will never be null.
 
@IluTov ah got it, thought you meant $foo being a ref, that's what confused me
@IluTov yeah, forbid it completely
 
@bwoebi Hehe np. Luckly forbidding it completely seems to be quite simple. I think that's the right approach.
 
12:14 PM
@Danack Cool, thanks!
 
12:37 PM
Morning
@Danack when are you going to merge my PR on RfcCodex?
Or at least comment on it if I need to make changes :P
 
@IluTov ($foo?->bar)->baz can be passed by ref though, right? (note the parens)
Not that it'd make much sense
 
@bwoebi I don't think so, no.
The nullsafe operator doesn't stop short circuiting at the parens but after ->baz
 
oh okay
 
hey, i have a question, dont know if can ask here, So ignore if i cant.
is it possible that any router between server & client to respond timeout but server did finish that request ?? (But, was too late to respond)
i know its weird as it sounds
 
12:58 PM
Like an HTTP code for a gateway timeout?
500 something, I think, I can't remember offhand
 
1:10 PM
ok, the source of this question is,
I saw many sites to do a OPTION req first and then submit sign up form and ....
Why do they perform OPTION req ??
they could directly post that data, Wouldn't it been much easier to remove that OPTION
less work in backend
 
1:53 PM
@aXuser264 did you try looking up what the options http status is?
 
anyone ???
 
it gives a pretty clear explanation by googling
 
trying
 
also you might want to read a book about HTTP status codes oreilly.com/library/view/http-pocket-reference/1565928628
^ will hopefully give a better understanding on the "why" of using different HTTP codes, but pocket guide is also nice
but you must read the entire article, otherwise it won't make much sense
 
2:09 PM
checked that options thing, that responses nothing but some headers
going to read your refs, thanks
 
Union Type in argument reports types swapped in error message ・ Scripting Engine problem ・ #79840
 
2:34 PM
@Jeeves @GabrielCaruso I think this is known. A union of primitive types will be compiled into a single zend_type with the given bitmask flags toggled. From this you can't know which order they originally appeared in. It's probably not worth it to store more information just for the error message.
 
@IluTov ack
 
 
1 hour later…
3:39 PM
@Kalle I sometimes approve them, but they can be a bit dodgy - any specific ones that need attention?
 
4:11 PM
Wassup
 
 
2 hours later…
6:40 PM
@Crell I suppose if the PHP namespace policy gets accepted, \PhpToken class is going to be moved to \PHP namespace (i. e. \PHP\Token)?
 
@moliata it will probably need a separate RFC
Current atmosphere makes me think it's a pretty big 'if' though
 
well, let's hope the policy passes then :)
 
@moliata \PHP\Tokenizer\Token - No first level allowed
 
6:56 PM
@MarkR Gotcha, thanks.
 
Wouldn't an additional RFC be time-blocked by feature freeze tho? =o
 
For internals things I think people would be able to fiddle about as necessary
 
there's a certain amount of discretion given to the RMs
the whole point of alpha and beta cycles is that there's time to fix things before release, after all
 
3v4l.org/LKnKB: Raising this warning to an error, I'd need an RFC, right?
 
/me waits impatiently for all the CI runs to go green on my PR
 
7:19 PM
what kind of BS warning is that O_O eugh
@GabrielCaruso That looks more like a bug
 
@IMSoP Nice, so the whole double colon discussion was not senseless after all :)
 
Well if zend_check_magic_method_attr is part of compile, a compile error would make sense. Looking at zend_std_get_method it looks like the function returns early if __call is used, without checking the access flags
 
7:48 PM
@MarkR I agree, this should be a compile error, however this would break code that is running with this warning for whatever reason. I'll throw it tomorrow in the mailing list, let's see
 
8:02 PM
Ideally that warning wouldn't exist at all, and non-public visibility would just work :)
 
pretty sure this Travis job is just stuck :/ travis-ci.org/github/php/php-src/jobs/707428232
still, all the other builds are green; thanks for the code review Nikita
 
9:08 PM
@Derick There is one, agiroloki95 mentions you as their sponsor specifically (with a misspelled first name)
 
10:00 PM
im trying to get a users rank with the code <?php echo "Your rank is currently" . $_SESSION["user_type_value"]; ?> but i get nothing can i get help?
i get no errors
i would like to make a page for users with a user_type_value of 6 and i would like to get the number so it can be converted to the rank name
 
@EnzoTDZ is $_SESSION['user_type_value'] a string? Confirm it with var_dump or a debugger?
Also you may want to confirm you have errors turned on
 
Did you do session_start() at the top of y our script?
 
i started the session tes and user_type_value is an id
i mean int
 
show us your code.
 
k 1 moment
 
10:14 PM
don't paste it here
 
couldnt go to pastebin.com for a few moments
phpmyadmin says the user_type_value is an int(10)
 
var_dump($_SESSION)
see what you get
Where are you setting this part $_SESSION["user_type_value"] ?
Show us the file were you set that.
 
i get array(3) { ["loggedin"]=> bool(true) ["id"]=> int(1) ["username"]=> string(10) "EnzoTDZ_YT" } even tho it sets my user_type_value upon login
 
Where ever you set the user_type is not working.
check that file.
 
thats part of it
 
10:20 PM
$_SESSION["user_type_value"] = $user_type_value;
var_dump($user_type_value)
 
i get NULL
in phpmyadmin its 6
i just changed $sql to $sql = "SELECT id, username, password, user_type_value FROM users WHERE username = ?";
 
there u go
your sql is wrong
 
but i still get the same thing
 
is the column name correcT?
 
yh i just restarted the server and now i get 6NULL
 
10:23 PM
6null?
 
yht
the code is
<?php
echo "Your rank is currently" . $_SESSION["user_type_value"];
echo var_dump($user_type_value)
?>
oh its the var_dump
thanks sal :D
 
no problem
 
well i'm gonna go now because got to do this but again thanks
 

« first day (3557 days earlier)      last day (1381 days later) »