« first day (3749 days earlier)      last day (1182 days later) » 

12:21 AM
Incorrect type checking behaviour ・ *General Issues ・ #80649
 
1:12 AM
#TeamPHPIterableNamespace :-)
 
1:22 AM
#TeamPhpIterableNamespace :D
 
 
2 hours later…
3:45 AM
macos m1芯片安装sqlsrv扩展编译失败 ・ Compile Failure ・ #80650
 
4:11 AM
I'm definitely in favor of Spl\*, as I proposed it. The SPL is home to iterator functionality, and I really don't think it will pass under PHP\*, and if it's under some other namespace then I think it's too small of an RFC to claim a whole namespace...
I don't know why he wants to put everything to vote by committee.
It's like the 3rd vote .
 
 
3 hours later…
7:36 AM
morns
 
8:20 AM
Allenph hasn't logged into SO for like 6 months now, I really hope he is alright.
 
9:06 AM
@Danack Things changed a bit since then ^^
 
9:18 AM
Who would have guessed our barrier to 8.0 would be Zend Framework.
oh well shit it's actually a barrier to 7.4
 
@Stephen "Zend" translated to English means "legacy"
 
ugh thats annoying. well I guess at least it gives impetus to approve the migration work.
I wonder how much patching I need to do to get it working in 7.4 without warnings...
 
cmb
10:06 AM
@NikiC thanks! just fixed it
 
 
1 hour later…
11:20 AM
Morning Room 11 dwellers!
 
11:51 AM
morning
 
12:18 PM
How do I delete spam comment on bugs.php.net?
 
cmb
12:51 PM
@Dharman go to the developer tab; there should be a delete link
note that it is a link (i.e. GET request) :/
 
GET request for delete?
I don't see any delete link. Could it be a permission problem?
 
1:31 PM
Hello, is there a certain way to return an array. My arrays keep returning empty and I'm not sure what I'm doing wrong.
 
return $myArray;
 
yeah that's what I thought, I'm not sure where I went wrong
 
Can you show the code? Maybe you made a typo
 
<?php
$array = array();

function arrayReturn($arry){

$arry[] = "a";
$arry[] = "b";
$arry[] = "c";

print_r($arry);
return $arry;
}

arrayReturn($array);
echo '<pre>'; print_r($array); echo '</pre>';
?>
sorry, I dropped it in chat. I didn't read the rules yet, my bad.
 
Your only ever assign $array to an empty array
 
1:37 PM
You mixed parameters with return values
 
You're getting mixed up with references, you would need to do function arrayReturn(&$arry) { ... }
 
function arrayReturn(){

$arry[] = "a";
$arry[] = "b";
$arry[] = "c";

return $arry;
}
$array = arrayReturn();
 
@MarkR references D:
 
@Tiffany Well I assumed that was the intention :P
 
to expand on Dharman's example, the function that returns a value needs to be assigned to a variable
 
1:42 PM
Thank you. If I wanted to pass something else into the function could I do that?
 
if you wanted to manipulate the argument somehow, sure
function add(int $a, int $b) {
    return $a + $b;
}
$c = add(1, 1);
var_dump($c);
 
Again, thank you, everyone, for the help, it's much appreciated.
 
You're a cup of Java, you are already suffering enough. The least we can do is not make you suffer more
 
it's a wild life being a cup
 
😂
 
1:50 PM
for example, I got mugged the other day
5
I couldn't handle it
 
You had obvious bean to the wrong neighbourhood
5
 
@PeeHaa What about website?
\o
 
XD this is a fun place
 
misery loves company
 
Speaking of mugs. Our company did a remote team building thingy and once it was all over it resulted in this:
user image
5
cc @Ekin
I think I did it correct
 
1:53 PM
shameless @Wes promotion
 
Wes
how is that related :(
i feel i am being shamed for something
 
@PeeHaa we're never hiking together :p
 
@Wes nope, it's an awesome design. Also he's a cup of java, might as well be a cup of PHP :P
 
What size keyboard is that (66, 72, or 88)?
 
errrr 61? yeah, 61
 
1:56 PM
Mello
 
cmb
@Dharman could be indeed premission problem :/
 
Could you add me too please @cmb?
I guess I could add myself either way? :P
 
@PeeHaa But are you trustworthy? :P
 
cmb
2:11 PM
oops, already added him; will revert right away :P
 
It doesn't say anything about being trustworthy. Just trusted :P
 
^always trust the mugs.
 
... I'll go add myself as trusted dev
 
hehehe
 
2:50 PM
hello o/
 
ThW
morning
 
was thinking if there was a was way to implement a shorter unique ID
 
@cmb Hi, do you remember what is a blocker on this? https://bugs.php.net/bug.php?id=52065
I'm currently looking for a ticket that I can do something with.
I've noticed that you made a patch in 2015 but haven't sent a PR yet.
 
currently using UUID, want to make something shorter
 
2:55 PM
gracias @MarkR
 
cmb
@sj-i not sure; might just have fallen through the cracks; anyhow, difficult and security related code :/
 
I mean the is the disk read bug which seems like "fun" to solve too :|
Tried looking at the code as I hit the test failure and was very dumb found
 
@cmb Thanks! Then I'll dig into it a bit.
 
 
2 hours later…
4:54 PM
Can anyone tell how to use specific PHP version with Laravel project?
I have 7.4.9 installed globally
but my project doesn't support the latest functions inside the vendor when I use php artisan serve
 
do you get an error message?
 
laravel array_key_exists(): using array_key_exists() on objects is deprecated. use isset() or property laravel
It is inside vendor
on server its running PHP 7.3
so no error there
I have 7.4.9 running globally on my local machine
 
why can't you use isset()?
it's better to solve the error instead of trying to find a workaround
 
Its inside the "vendor" folder
Its a package
 
ah
 
5:02 PM
So, any solution?
 
it depends, are you trying to change the version of PHP specifically for the project locally? because I don't think that is possible
you can change the version of PHP your system uses and you can have multiple versions of PHP installed, but generally it's one or the other
 
I downloaded php 7.3 from internet
I can do /path/to/php7.3 artisan serve
 
first, it depends on your OS
 
I'm using Ubuntu
 
5:08 PM
I tried and when I use php --version
its still using 7.4.9
 
Send a PR to laravel to fix the issue.
 
that feels like the sort of thing that would have been fixed long ago tbh, are you sure you are running the latest lara code?
also, it is a deprecation warning about something inside the black box, you could safely just suppress it
not recommending that tho
 
5:23 PM
No, the laravel is old but my PHP is latest
cant update laravel in middle
 
you can either upgrade laravel, downgrade PHP or suppress the message
the former would be far and away the more preferred option
 
okay
 
 
2 hours later…
7:14 PM
@sjon I suspect the answer is no (as they don't seem to be in the dropdowns), but are the RC candidates for PHP 8 still available for running in 3v4l ? Just wanted to check something before saying something wrong on internals.
 
7:37 PM
@PeeHaa Agree... he is sus
@PeeHaa Also great segue.
 
8:04 PM
@GabrielCaruso btw; late to the review, but just FYI 8.0.2RC1 looks good and solid to me. 👍
 
8:24 PM
@Sjon Did you ever get that branch working? :)
 
8:50 PM
apparently brexit also included leaving sane weather, missed that memo
 
9:13 PM
@StatikStasis <3
 
@PeeHaa want.
 
Come work for us :)
And do bad at team building activities :P
 
@PeeHaa you're probably good, honestly
 
9:43 PM
@PeeHaa I thought you were freelancing, and working on laravel and what not
 
@mega6382 I think I've been working here for almost a year now
 
Oh, I think then I am remembering something from over a year ago :D
 
actually, no.
 
:(
25?
 
lol
@PeeHaa seems like a fun workplace, but what did you do to get featured like that?
 
9:55 PM
Some (rigged if you ask me) choose your own adventure game
Most of my team members died (most of them got eaten)
Obviously none of it was my fault
 
nothing to do with you being horrific at teamwork exercises?
said the pot to the kettle
 
@PeeHaa yeah, totally of course ;)
 
@DaveRandom For the very first question I wanted to sacrifice a team member, but I was not allowed and had to use "an item" instead. Rigged I tells ya
 
I mean... the first question you were fully on for just killing people off?
*dialling emergency services* ...and where did you say you were again?
 
tbf he's internet was wonky so at that point your are just dead weight for the rest of the team
It was a fair executive decision IMO
 
10:02 PM
"ping of death" taken to a whole new level
 
10:16 PM
this is mint (live UK power grid stats): gridwatch.templar.co.uk
 
Can I turn the power off from here? if not then what's the point? :P
 
@DaveRandom for the first 25 years of my life I thought both the pot and kettle were black.
I was shocked to find out otherwise
 
@CupOfJava wtf are you talking about, they are both black(according to the proverb at least)
 
@CupOfJava ...is that not the case?
 
The pot is looking at it's own reflection in the kettle
 
10:29 PM
(I am 36)
ooohhhhhh lmfao
I am dumb
idk if you are familiar with Frank Skinner's radio show but that is an epic Big Moment
 
@mega6382 Now I'm questioning this but don't care enough to do the research into it
 
kettles are shiny though
that makes so much more sense
 
@CupOfJava The proverb is from an era where the pots and kettles were used with wood fire, and the smoke/char from that would turn them black
 
I appreciate @CupOfJava's explanation a lot :)
 
I like the modern version better
it's more nuanced
 
but I also grant you @mega6382 is probably not wrong
 
I like my way better
I'm changing history
 
\o/
 
@CupOfJava honestly, I like the philosophy of that, and its definitely interesting
 
Can somebody please update the wikipedia entry and credit CupOfJava?
 
10:35 PM
I'm changing .history
 
As found in the chronicles of R11
 
@CupOfJava nit: its :P
 
ah yeh the possessive apostrophe exception
fuck "whose" as well
I don't mind people making that mistake, it's a stupid rule
 
who'm
 
We all know anything before 1905 was fake
 
10:36 PM
innit
@CupOfJava no 1900-01-01, the MS epoch is the dawn of time
 
@Tiffany :P
I was going to pick a closer date but didn't want to seem like I was denying any recent major historical events. XD
 
@CupOfJava What? like 2002 and saying 9/11 was fake :D
 
11:00 PM
nah man, tuesday was #fakenews
 
sarcasm the inauguration was fake
 
@mega6382 let's just say I made sure it was before the first World War.
 
:P
You are saying there was a second one?
 
Damn it!
 
There was a world war 2, but people have been questioning if it was real or not, as apparently it claimed we defeated the Nazis.
 
11:13 PM
this is what I was trying to avoid
 
oops, sorry :P
Where's Dave to have a witty exchange to break the tension? D:
 
being afraid of the weather, sorry
 
Probably hiding behind a closet in a wall
 
Are you in Manchester?
 
there was literal actual flooding 3 roads away from me like 4 hours ago, there is now ~6" of snow
I am not convinced I am not going to wake up in the morning to a plague of bees
is this the apocalypse?
 
11:18 PM
FFS, I'd like there to be just one year where it isn't snowing or pouring it down with rain when I need to take my car in for MOT
 
Are you riding a horse?
 
@MarkR looooooooooooooooooooo
.......ooooooo....
ol
 
It pisses me off. They could afford to give people a 6 month extension to their MOTs for Covid, why won't they give me a 6 month extension so my MOT can be in the middle of summer
 
:D
 
11:20 PM
@MarkR even 6 weeks tbf
 
Aye
 
is there a minimum time between MOTs?
they aren't expensive
you could just have it done in the summer
 
@DaveRandom Unless they find all kinds of things magically borken
 
it's not about broken, it's about safe
they only pull you on bald tyres/brake pads/shit like that
shit that you should actually want to know about :-P
 
yes
magically
I go faster on slicks
 
11:23 PM
MOT = ministry of transportation?
 
meh, I have a really trsutworthy guy I have used forever, I have taken really broken ass cars to him and he is good at (legally) getting it through the test without it costing shitloads
@Tiffany maybe, I actually don't know
actually the T is probably "test"
 
oh huh, yeh
til as well
good pub quiz fact that
 
@DaveRandom ministry of test? lol
 
I was thinking more like motor something test
 
11:26 PM
@DaveRandom Yeah, can only have it done at most 1 month before it expires
 
@MarkR ffs that is such a fucking dumb rule
I wonder if the people reporting the test have the ability to define the next due date?
presumably not but maybe worth asking
 
Although... Googling just now apparently that's only if you want to keep the same renewal date
 
ah yeh, which you specifically don't
I vaguely remember this now
it's a while since this has been my problem because I have driven company vehicles for a few years
 
I took it in once already on Tue and it failed on emissions (yay short trips in a diesel thanks to lockdown) so it's in again tomorrow. Only a 15 minute walk back but with the amount of rain coming down right now, if it keeps up i'll be soaked down to my knickers by the time I get home, and can't exactly call a taxi in peak covid.
 
actually this is not a bad idea, I always used to end up having a month where I got crippled because the MOT/tax/insurance was all due at the same time and it could be £1000 if there was something wrong with it
@MarkR eh, just go before you have a shower
:-P
alternatively... perhaps a good enough excuse to justify purchasing a snowmobile?
 
11:32 PM
I was thinking a kayak
 
no they work on water as well have you not seen the video of the mad bastard Icelandics
 
Turn up to tesco in style. Doing 90mph on a snowmobile
 
I'm just waiting for the first press conference
 
11:48 PM
I don't get it
I'm guessing it's a Yes Minister joke
 
Goodness Gracious Me
I don't think I have watched that since it first aired, I am going to go find it, it was quite good
 
They've been posting the original spitting image videos on YouTube
 
oh mint
 
I didn't look that hard, but I can't find it in my usual streaming haunts
I could dig through the bowels of Google and probably find something
 

« first day (3749 days earlier)      last day (1182 days later) »