« first day (4209 days earlier)      last day (743 days later) » 

Wes
6:59 AM
\o @Danack
 
7:12 AM
@cmb I believe you emailed me to ask if I've already registered as a new Wiki user. Do I actually need to do this -- to be able to potentially submit my RFC for array_transpose()?
Is this how the karma business is handled?
 
@mickmackusa All RFCs must be published to the wiki - as well as a record of the RFC, it serves as a status tracking and voting system. So yes, you'll need a wiki account with RFC karma to propose an RFC. There's a "HOWTO" of the RFC process at wiki.php.net/rfc/howto
 
@AllenJB After filling the form at the bottom of the do=register page, I'm getting "That wasn't the answer we were expecting". What the heck is this weird sentence: "To which email address do you have to send an email to now?"?
Is that a poor man's captcha or something?
 
Sort of. I'd say it's more a test of whether you've read the howto
 
 
1 hour later…
8:47 AM
@cmb my Wiki username is mickmackusa
 
cmb
9:01 AM
@mickmackusa RFC karma granted. Best of luck! :)
 
 
1 hour later…
cmb
10:28 AM
I just created wiki.php.net/todo/php82. According to that preliminary plan, there are only 6 weeks to alpha1. We need RMs!
 
 
2 hours later…
12:38 PM
Guys, I need help on PHP and Netbeans 8. I have a project which has a "config.php", it defines a PDO connection object as $conn. When I am editing this file in netbeans, writing $conn-> brings up the methods. But when config.php is included in other file then this auto-complete doesnt work at all. Can someone help please?
 
@Wes you know, the cost to host it is superior :)
 
I mean, use a VPS, cost to host is negligible
I say this as someone who's never attempted to host a python app...
 
Wes
@Sudhir if you can afford a paid IDE i suggest PhpStorm
 
@Tiffany are VPS is free?
 
@Wes, thanks for the suggestion, but I cant. Further its puzzling me why its not working.
 
12:47 PM
@Sudhir have you tried using __DIR__ to include the config.php file?
 
thanks @syahid246, I will try that
 
I hope it helps
if its still can't, you can see in stackoverflow.com/questions/10157133/…
 
thanks again @syahid246, I tried using " DIR" but didnt help. Had also seen the link you posted, there @previous_developer had exactly same problem 10 years back. I tried adding the include path in Netbeans and it complained saying my path is already part of project. My config.php resides inside "includes" folder in my project
 
@Sudhir Can you not just type hint the variable? /** @var $theVar TheType */
 
1:06 PM
@Sudhir Sorry @Sudhir I didn't get it, you mean did you try any of the answers and get the error "the path is already part of the project" or already got an answer?
 
@syahid246, yes I am getting the error "the path is already part fo the project", so cant add that "includes" folder to include path.
@PeeHaa, I will try that after few hours, need to go offline now, thanks for the suggestion.
 
@Sudhir what about this answer, are you already check it? stackoverflow.com/a/10251766/14809952
 
@syahid246, yes thats what I tried first.
@PeeHaa, thanks a ton, you made my day. Type hinting did the trick!! Thank you so much
 
already got an answer @Sudhir?
 
Yes @syahid246, I tried adding type hint as mentioned by @PeeHaa and it worked
 
1:21 PM
@Sudhir 👍
 
I thank both of you, @syahid246 and @PeeHaa, for spending time on my question. Logging off now
 
Morning
 
ormings
 
mogmin
 
gninrom
my area is night 😅
 
😮😶🤐
 
1:57 PM
So when we type hint like: (int $input) if the input was '1' it will cast to int 1 right? Does php website mentioned this ?
 
Yes it does, that's just regular type juggling due to numeric strings (I've got a PR to improve that page tho)
strict_types disables this
 
@Mwthreex not if you use declare(strict_types=1); in that case you'll get an error
 
@Girgias Ah ok didnt know about the term 'juggling' php.net/manual/en/language.types.type-juggling.php
 
3:00 PM
@cmb if we get enough candidates for RM, can we have two newbies and one veteran, I'd like to keep increasing the pool of RM's by two every release, if possible ... plus it worked really well for 8.1 from my perspective - I had more to do before GA, but much less after it, the newbies can handle the majority of the release ...
that's a nicer kind of commitment for the veteran I think ...
 
cmb
@JoeWatkins yeah, sure, more than 1 newbie is fine
 
@cmb that blurb we use to solicit rms, I think it should mention, or somewhere "flexible schedule, good communication" should be mentioned ... case in point, the 8.1 rm's have had some difficulties making punctual releases, because of either or both of scheduling and communication problems ...
I also struggled my first time round, 3 (2+~1) years is a long time to keep a rigid schedule item, that's why it's best to have a backup newbie, and the newbies need to communicate well with each other ...
 
I've been doing it on my own for 3 years. Couldn't have done that if the pandemic wouldn't have happened as I'd be traveling a lot more.
 
I was basically left on my own the first time round because davey bailed, it was not easy and I did fail sometimes
 
cmb
Yeah, I think we can clarify if we even get enough applications (we're really very late). We may need to take what we get, though. :)
 
3:36 PM
Is there a function in GD library that auto scale font size in different images/resolution ? The font size (20) on 240p image is different when the image has 1080p pixel
 
 
1 hour later…
5:00 PM
Does it make sense to use a static closure outside of a class? Probably not, right?
 
Like, put static on a closure when you're not in a class when writing it?
That would prevent the closure from being bound to an object later. Probably not much of a difference, but many static analyzers tell you to put static on it anyway.
 
good point. I think that's all there is to it, really
 
 
3 hours later…
8:10 PM
Hi! Trying to boldly move a Drupal 6 site from PHP 5.6 to 8.1.5 (sury) on Debian bullseye[-backports]. I fixed curly array brackets and error handlers, now I got a SIGSEV in timelib_fetch_timezone_offset - https://pastebin.com/H2hZ3uVX

Perhaps relevant: it also says "Invalid date.timezone value 'Europe/Berlin', we selected the timezone 'UTC' for now." This is with a chroot set in the pool.d file.

It was suggested in IRC that @Derick or others here might be able to help to point me in the right direction, either to fix what I'm doing wrong on my end (which is probably a lot :-), or to file
 
8:36 PM
Aha! Indeed, it seems to be assuming the timezone DB can be read/tz is not null, and this causes the crash. I added the following to /etc/fstab:
/usr/share/zoneinfo /var/www/flayrah/prod/usr/share/zoneinfo none bind,ro,noatime 0 0
and then mounted /var/www/flayrah/prod/usr/share/zoneinfo and it proceeds past this point... to another error, triggering the error page, but not a PHP crash.
 
BLARG
 
Quite.
Any indication who will be the RM senior for 8.2?
 
I suspect the crew will hold elections soon.
Honestly, should have opened the call for participants by now
/me looks at 8.1 RMs....
@JoeWatkins @BenRamsey @PatrickAllaert ^^
 
CMB already opened it on internals earlier today
I'm tempted to put my hat in, but 3 years be a long time and i'd probably get bored before then and try to automate it all
 
8:54 PM
"Three years is a long time." Fact. And technically, it's 3.5 years when you count pre-release duties.
I'll be eligible again come 8.3, but I'm strongly tempted to take a year off. :D
 
I am kinda wondering why it hasn't been automated by now... I mean we've got some pretty smart people, can't we throw github actions at it and push a button to make a new release?
 
9:16 PM
Hey does anyone know a tool which measures network latency (DNS resolution, server response time) for command line ?
 
apache benchmark etc?
 
Or mtr (mtr-tiny package on Debian) for actual lower-level network latency.
 
Will check mtr
seems similar to traceroute
Can do that with cURL xD
should've figured that much, so awesome
 
Yeah, wasn't sure it's what you wanted. :-/
I was thinking with curl as well, curl --trace-time --trace out.txt -o might help
 
yep yep thank you @GreenReaper and @MarkR for the kind suggestions
 
9:44 PM
PHP Warning:  PHP Startup: (null): Unable to initialize module
Module compiled with module API=0
PHP    compiled with module API=20160303
Well, that did not work...
 
10:17 PM
How did you hit that O.o
 
Wes
11:06 PM
elon musk bought twitter
rip
 
11:32 PM
@GreenReaper I don't understand what you're trying to say? PHP does not need any system files.
 
11:42 PM
Well, it seems to be crashing without them. >_>'
I'm not sure if I'm reading it right (not expert with gdb) but it seems like it is passing timelib a null pointer where it expects a valid timelib_tzinfo *. https://github.com/derickr/timelib/issues/126
PHP-FPM (which I guess is outside the chroot), knows that it is a valid timezone, but that data cannot be accessed from within the chrooted subprocess.
 
Again, PHP does not need any system files.
@GreenReaper You need to talk to the debian folks, they probably patched this.
 

« first day (4209 days earlier)      last day (743 days later) »