« first day (4344 days earlier)      last day (829 days later) » 

04:46
@scorgn this would be intended for documentation at work, so it wouldn't be in code.
 
4 hours later…
09:11
\ArrayIterator's __construct should have array type hint imo, i passed non array items but get no error about it
new ArrayIterator(new \stdClass()) no error
10:11
I was wrong then, but confused
Anyway, Do we have docs for use case of parentheses ?
priority: (2 + 2) * 2
expression: ` ($a ?? $b)?->call()`
...
 
1 hour later…
11:24
Morning all!
11:37
Started creating the 8.2 doc issue tracker: github.com/php/doc-en/issues/1803
5
11:53
morns
@cmb I remember why we don't usually pre-emptively add links, as they break configure
posted on September 07, 2022

cmb
cmb
@Girgias Ah, right! Ignore these suggestions then.
12:16
Morning Room
God I wish the PHP Manual was easier to use.
12:35
Damn you pagination!
12:46
I am confused how this pagenation is working. When I run it on each page it shows the same items. How does it know to show the next full page of items and not just the same ones? codeshack.io/how-to-create-pagination-php-mysql
12:58
@JukEboX You should learn how to use a debugger, so that when your code is behaving in a way that you don't understand, you can step through it to find where it is deviating from your expectations.
And xdebug is here: xdebug.org/docs/install
@Danack I would but this code I am using is on an non-internet connected machine
And the question I asked is about the example
As far as I can tell in that example: $calc_page, $num_results_on_page will always be 0,5
2 mins ago, by JukEboX
And the question I asked is about the example
I'm not going to debug your code for you.
Telling someone to "answer the question within the scope that you want it answered" is trying to insist someone helps find your keys under the streetlight.
> There's an article documenting how this is possible here.
@Danack So assume the example is broken?
13:14
15 mins ago, by Danack
@JukEboX You should learn how to use a debugger, so that when your code is behaving in a way that you don't understand, you can step through it to find where it is deviating from your expectations.
@_@ so the example showing how to do pageination needs to be debugged to determine if the example truly works as an example. Gotcha :P
@JukEboX We don't know whether the example is wrong or how you implemented the example is wrong. @Danack is trying to teach a man to fish rather than just feed you a fish. Going through these frustrations and learning how to figure out what is wrong by learning to debug will make you a better coder.
I don't believe anyone in this room created that example, so anyone of us would also need to perform the same debugging.
@StatikStasis I understand that I am just saying that as it is written I am testing it and it just shows page 1 no matter the selection you choose. So as I understand what he is saying assume the example doesn't work and debug that.
@TimWolla understood
Need to also make sure whatever you're trying to paginate has enough rows of data that pagination is needed based on the limit you have set per page.
13:20
@StatikStasis I have 41 rows. I am good there. I am going to mess with it again.
If you have the code returning 50 rows per page than you would only see 1 page.
Anyone else excited for the apple event today? I'm thinking about replacing my 2015 mac.....and just waiting to make sure a brand new MBP doesn't get announced, so kind of excited regardless of whether a new one is announced or not.
Eh... my 2019 MacBook still works pretty well. =)
I have dropped my iPhone 13 more than any of my previous phones and it hasn't been damaged, so I am pretty happy about that.
@StatikStasis Agreed. I have it showing 20 items. So it should be showing 2 pages which it does. But when you click on another page it loads the same items. Going to try some other stuff.
@Danack Not an Apple fan but I kind of hate watch it to see what ideas they are calling "revolutionary" they put into things that have obviously been around for decades
@StatikStasis Screen didn't crack? That was normally the first thing that happened to them. HTC has always made a solid device too
@StatikStasis That's one of the small things added value things that are hard to see...I realise this is anecdotal, but iphones seem to be quite significantly tougher then other manufacturers, so last a lot longer. Even if they cost a bit more, not having to replace them after a drop is quite cost efficient.
13:32
Apple really did a great job with it. It feels like a highly advanced piece of equipment, but when I drop it, it has a plastic hollow type of sound that makes it feel light and durable... it's weird to describe. Best version yet, imo.
@Tiffany That's a good question. Looking at PhpDocumentor documentation for @see it seems that ClassName::$variable is a valid way to reference a non-static property on a class.
> :: -- This is the class scope override. Use it to tell the @see parser which class to look in for the element specified, like classname::methodname() or classname::$variablename.
That is from 2002 but the only thing I could find on it :D
But also if you try to access an undefined non-static variable the warning shown references it in the same way
$x = new Foobar();
$x->asdf;
> Warning: Undefined property: Foobar::$asdf
13:50
@Danack It's more cost efficient, to not drop the phone in the first place :-)
As a programmer, I would simply not write bugs.
Exactly; but seriously. I can't remember I ever dropped my current smartphone. My previous one dropped once out of the pocket of my jacket, but didn't break.
@StatikStasis Is that the latest one? Because for sure previously iPhones where more prone to breaking then other phones knowing my friend group
@Girgias I have the 13 Pro Max... I think it's still the latest one. I got it in December. I only buy one about every 5 years. I went from the 7 to the 13 on my last upgrade.
I try to only upgrade when absolutely necessary.
Apple is pretty proud of them. [price tag]
Well my latest phone upgrade was due to me dropping my previous well used phone into the toilet soooo
It still works, except for the touch screen which is a bit of an issue
13:55
So... you have poo water inside your phone? =P
Yeah
Something something too large pockets
My therapist had a good laugh at it at the time lol
Honestly, at this point changing to a droid is not something I am interested in doing. They make migrating so easy from one phone to the next, it's not worth the trouble to me.
I mean I spend like what £200 ish on phones which last me 3-4 years usually?
...I bought the 1 TB version of this phone. $1800.
I'm ashamed... sort of.
Again, I buy one every 5 years... so I have found a way to justify it in my mind.
14:33
@TimWolla (catching up) I dropped a HTC slide phone (think sidekick like) during a massive rain storm in a puddle. That thing didn't crack and the water didn't effect it. Was super impressed
@StatikStasis You don't find the Max to big? When I got my S21 the Pro was so big it was carrying a tablet in your picket
I tried to setup a default server in nginx with:
server {
  listen 80 default_server;
  listen [::]:80 default_server;
  server_name _;
  return     444; # "Connection closed without response"
}
but that seems to make https not work for the actual sites.
It's been a while since I did this type of stuff in nginx, but: How does your default_server for 443 look like?
Is is possible to have a default site that just closes the connection and still have SSL enabled for the other named sites?
@TimWolla ah - hmm. I don't have one.
Okay, are you positive that the server_name is correct for your TLS-enabled listen thingys?
If you actually request port 443 in the first place, then the server you showed above shouldn't match.
14:48
> server_name *.phpimagick.com phpimagick.com;
This is what I used back then when doing this with nginx: gist.github.com/TimWolla/23530d8f59f50ac8697ac932f3456218
This specific TLS configuration will prevent the handshake from succeeding for unknown hosts, because of the aNULL cipher enforced.
For everything else you want supported, you'll need the same listen without default_server and with a proper server_name.
"are you positive that the server_name" - no. It's acting as if the server name is not matching and the config is only working when phpimagick.com is set as the default server.
But I can't see an error in the config.
Did you perhaps put the server block in a separate file you forgot to include?
@TimWolla No, it's definitely included as it's proxying to the right php instance running in a container.......
It's weird....it's working now with default_server on both the default server block and phpimagick server block.
Then I'm afraid I don't have any other idea. I guess that's why I no longer do this type of stuff in nginx :-)
14:56
Caddy?
HAProxy.
I generally pair HAProxy with nginx, with nginx only being a dumb-ish static file server and FastCGI proxy with the minimal configuration required.
...
...
...
...
I'll just leave phpimagick as the default server. works well enough.
15:14
The CGI water in Avatar 2 is just incredible. This part of the video from Corridor Crew really examines it in detail. Simply amazing... youtube.com/watch?v=nN7rk3rj5mc&t=227s
15:29
CGI artists: Creating innovative and exciting new ways to create immersive photorealistic worlds. Web developers: Creating innovative and exciting new ways to concatenate strings.
@Trowski Everyone has their part. =P
Didn't say I didn't enjoy concatenating strings :D
16:11
 
1 hour later…
17:25
What is the true desire of having Exception classes in SPL?
None
Some people designed SPL and added exceptiosn to it
So it will last like forevermore?! :/
17:49
You could create an RFC to deprecate and remove them.
 
2 hours later…
20:02
@Girgias if you'll forgive me, I tweeted it out, because I've had more than one interaction from people on twitter looking to contribute to PHP but not wanting to contribute to php-src, and hopefully the tweet will interest them
No worries :p
It is still somewhat a W.I.P tho
PHP in a nutshell :)
20:36
With the the changes of Apple Watch I don't see it worth spending another $400
21:02
Hallo
ay up lad.
tips hat morning sir
So I thought I was going to be spared from the electricity price hikes as:
But no:
Presumably uranium got really expensive.
ouch
That's a lot
yeah........I'm going to visit my dad for a few weeks. and then later in the winter might go and spend some time at my mum's. She has a really efficient log burner which I could help stoke and empty...
21:12
Does there exist a no-op token in PHP?
Something like define("NOOP", null);` but does not require semicolon
@Danack We don't have any central heating at all :D
@OlleHärstedt Semicolon is a noop. github.com/php/php-src/blob/master/Zend/…
@PeeHaa And presumably a building that is designed to have nice cooling drafts?
@IluTov Oh yeah... If only there was another :d
Looking through the list
Why?
21:15
@IluTov Code-golf situation
@Danack Not sure if by design, but yes :D
Maybe I can use "echo" in this case, heh. If only I can get it to shut the hell up
Hm, can't alias print :d
Can I make an output buffer not-flushable?
Not sure about the flags here
Oh, it's the ^
22:07
So Laravel's sail, which is supposed to make it "easier" for docker stuff, is screwing up my bog-standard env vars config. WTF. This is not the first time I've encountered this kind of stupid thing in Laravel. Just use standard tools, and educate people, kthxbye!
@LeviMorrison but how can they lock people in to their 'easy' solution if they don't do it their own special way?
Like... I'm just setting extra env vars in the docker-compose file. WTF are you doing to make those not show up in the actual container application?
I'm guessing they aren't passing the whole env to whatever eventually opens the new PHP process, just certain ones.
So it's probably laravel artisan, not sail, that I have a beef with.
22:23
@LeviMorrison config:clear && cache:clear
23:03
@Danack The problem is that the price on the grid is decided by the last possible production method and how expensive that is (and also who's the highest bidder to some extent)
23:55
@Girgias my commercial provider is EDF, and the company that runs the nuke plant is .... EDF.
I suspect they like money.
I do too.

« first day (4344 days earlier)      last day (829 days later) »