« first day (3807 days earlier)      last day (1141 days later) » 

12:46 AM
MIME type is changed for archives created by ZipArchive ・ Zip Related ・ #80887
 
 
1 hour later…
2:13 AM
@FélixGagnon-Grenier if only they were side quests...but instead they block progress until done.
 
 
5 hours later…
7:32 AM
@JoeWatkins around ?
 
yo remi, what's up ?
 
@JoeWatkins
can you please check last commits on pcov, so I can release 1.0.7
oh, already answerezd on the commit, I miss the notif
 
 
1 hour later…
8:49 AM
@RemiCollet np
 
9:27 AM
Chinese translation is wrong about "Limited return type covariance and argumen" ・ Documentation problem ・ #80888
 
9:52 AM
@IluTov github.com/php/php-src/commit/… for the return types
@Danack Ah yes, and that is why we use shared nothing architecture ;)
 
@NikiC Nice!
@NikiC I've also been thinking if maybe there's a ways to elide parameter type checks. That would require flagging the send opcodes and passing that information to the recv call. However, since most param type checks are probably relatively cheap I'm not sure that's worth it as it would make all other param type checks slightly slower.
 
 
1 hour later…
11:25 AM
Morning, all!
 
11:42 AM
Cannot set save handler when session.save_handler is invalid ・ Session related ・ #80889
 
 
2 hours later…
1:14 PM
Happy Friday 11ers!
 
2:02 PM
@Girgias @MateKocsis I've tried to finish up wiki.php.net/rfc/deprecations_php_8_1, please take a look
I dropped the $http_response_header deprecation (see notes at the end), but I can move it back if you think we should give it a try
If all is well I plan to submit it today, to get discussion started
 
@NikiC I think introducing new functions and then deprecating $http_response_header is a better approach, I didn't know it was that complicated to achieve the behaviour it was providing, so looks good on my end
Want me to PR the PGSQL deprecation implementation?
 
@Girgias I think @MateKocsis maybe already did that?
But otherwise, sure :)
 
2:18 PM
@NikiC What do you think about including github.com/php/php-src/pull/6409 in there too? Or should this be a separate RFC?
 
@Dharman Sounds reasonable, feel free to add it
 
Is laravel best framework?
 
@Orhan Sure is, but there are also other best frameworks
 
like ?
 
cmb
@NikiC, I'd like to deprecate the $num_points parameter of imagepolygon and friends; could that be part of your RFC?
 
2:27 PM
@cmb sure!
 
@NikiC Nah was my branch I linked, it's a bit ugly by abusing the macro usage but eh
 
@Orhan symfony
 
The php-src git workflow page is still up-to-date for workflow, right? (obvs the images are out of date)
I should merge this PR into PHP 7.4, then 8.0, then master?
Also, am I supposed to add anything to NEWS or is that done by RMs?
Usually I just fix things for master ahaha
 
cmb
yes, apply to 7.4, merge to 8.0 and then master
and yes, needs NEWS entries for 7.4 and 8.0
I add the NEWS entries as amendment, but you can also do that in separate commits
 
2:46 PM
@cmb Maybe add a before/after call example?
 
3:03 PM
Is Stig Bakken still active in PHP development ?
 
The name doesn't sound familiar at least
 
Derick knows him I think
I think he was part of PHP way before you
2001-2004: Founded PHP Extension and Application Repository (PEAR) and built the initial infrastructure - later retired and handed off the project to The PEAR Group
Waaaay before you lol
 
That's unpossible. NikiC was writing PHP back when it everyone was about personal home pages
 
Then he should know the guy I suppose
 
We'll find a way to harvest the electricity from the shocks...
 
@Machavity Well, that totally makes sense
 
@NikiC Thanks! My only question is how I can proceed with the proposed factory methods for ReflectionMethod and DatePeriod? github.com/php/php-src/pull/6754 Is it not ok to vote about their inclusion in this RFC?
 
Free electricity is clearly a feature to allow you to mine bitcoins
5
 
3:31 PM
😂
 
Guys, would you mind checking out my code? I can't figure out whats wrong with it. Im calling a parent:: method inside a child but it says that Non-static method should not be called statically. I know that i can't call non-static methods statically but shouldn't i be able to call it with parent::??

Here's a link to my fiddle, i made it easily understandable. Is there something wrong with this logic?

https://codeshare.io/aJZkqy
 
Or I suspect people who have access to an electricity supply also make a bit of money from charging the little scooters available to hire.
 
So I supose the answer is no
 
@drpzz parent refers to either the parent instance, or the parent class, depending on whether it's called from an instance or static method. It doesn't magically make an instance appear.
 
@MateKocsis Hm, this doesn't seem like a great fit for the deprecation rfc
It already combines many changes, I think that including feature additions (even if they are kind of deprecation-related) may be stretching things too far
 
3:36 PM
@drpzz Method get all in parent is not static and you are calling an instance method from a static method
 
@Danack Okay, thank you! But is there then a way i could call this non-static parent method inside a child's static method? Without actually making the parent's method static?
 
so either make getAll static or don't make method all static
 
@NikiC Alright, I'll try to write a separate RFC for them. In case @Derick agrees with the DatePeriod changes. I'll also search for other possible candidates to get rid of overridden signatures.
 
@drpzz Another option is to :

return (new static)->getAll();

But I have no clue what getAll does
 
Ohh, i haven't seen that kind of logic before. I'mma try it out. Thanks alot guys!!
 
3:39 PM
Or you could figure out why you're trying to mix and match static and instance methods....and split them up, probably.
 
@drpzz There's a code smell in that code anyway, you should really think about what you are doing
"It works" is not acceptable
 
I undetstand
I think there is actually no reason for my methods to be static. That would solve my problem right? Because all i'm trying to do is call a parent's method inside a child, this is not considered a bad practice or is it?
Also i have multiple parents is that a bad practice or not? Like idk great granparents :D
grandparents*
 
It depends
You may benefit from reading a design pattern book. "Prefer composition over inheritance" en.m.wikipedia.org/wiki/Composition_over_inheritance
 
Alright, thank you. I'mma check that out!
 
4:00 PM
Damn.. I just realized how bad my design is
 
I'd suggest just using functions, until you actually have some state that needs to be stored, and passed around.
 
I'm building a whole cms from scratch soo...
Luckily i don't have too many classes so i'mma rewrite them
 
5:11 PM
lol
 
phpinfo should make it clear what files define local and master cofiguration ・ *General Issues ・ #80890
 
5:26 PM
> Some of our hosts use cPanel and unfortunately cPanel gets a bit excessive with how many copies of php.ini files they have all over the file system. In fact the file system is a mess!
 
lol
iirc that info is currently not retained, like extensions the engine only records what was loaded, not where it was loaded from
 
Apr 16 '18 at 0:47, by Danack
Or we could just deprecate supporting shared hosting.
 
skimming it, looks like a bug that should be opened with cpanel, not PHP
 
agree wholeheartedly
though also I must admit I actually don't hate the feature that is being requested
 
yeah, it's not a terrible idea, but come on
 
5:30 PM
it would make the ini system a lot more heavyweight tho, not worth the trade off
 
6:16 PM
@DaveRandom Happy Friday!
 
6:49 PM
@MateKocsis Which DatePeriod changes?
@ln-s Yup, I know him fairly well.
 
@Derick guy had a Dachshund right
 
Yes, I think so. Trying to remember her name...
 
Nadia
 
yes, exactly
How do you know Stig?
 
Easter egg logo history, I'm a dachshund fan
 
6:52 PM
ah lol
I might have added that one
 
Someone did
:)
 
Back to making dinner
@MateKocsis Shoot me an email with your suggestion?
 
@nikic @MateKocsis @Girgias with the 8.1 deprecation RFC, have you guys also considered nl_langinfo() given the other deprecations on the list like strftime()?
 
Trying to make sense of Joomla data in a CSV format gave me a migraine. How is this possible -_-
 
@Kalle I haven't made those ones, but it seems reasonable
 
7:03 PM
@Girgias in the wild and even at work, I have seen the tendency to use array dereferencing on localeconv() rather than nl_langinfo() to get an individual category. I assume part of that is the cross platform availability of localeconv() as well
 
Makes sense, not that I know anything about locales :p
 
I mean I have a certain bias against it, as it is a mess to work with and have always prefered libicu over that, so take it with a grain of salt :>
 
for once I actually do have some direct relevant knowledge and I agree with all ^^ I would rather get rid of most locale/encoding stuff that lives outside of intl, but nl_langinfo() is particularly superfluous
and also very badly named
well, a very thin wrapper with an unfriendly passthru name
 
@DaveRandom amen to rid PHP of locale stuff outside of ext/intl
 
7:28 PM
@NikiC in your namespaces in bundled extensions, what would your approach be in developing an API for each type of "extension"? Is this something you are thinking to bring up for an RFC to flesh out each API if you are considering to change naming (like the in_array to \Array\contains example proposal)?
 
@Kalle I don't have an interest in changing existing extensions at this time
 
@Nikic I see, I just find it a good opportunity to consider this if an effort is being made in the first place. Benjamin Morel's point about the usefulness of varadic array_map() is an interesting one but the downside is that just switching from say array_map to \Array\map() is no longer 1-to-1 is a minor inconvinence considering the potential to cleanup some APIs to reflect more common practices (personally I have never seen a varadic array_map in the wild, but I am sure it does exist)
 
IMHO Array\map would have a lesser effect than $array->map
Downside is no polyfill
 
7:52 PM
@Derick sorry, i linked the PR where I implemented my suggestions a few lines above my previous message: github.com/php/php-src/pull/6754
 
DGF
Hey everyone. I saw this autoload function for when we want to show files in browser from subdirectories: gist.github.com/Head0nF1re/ddae5e82d11f7501713e4c46cb2abaea. But, I also saw this in php.net and got me a little confused: php.net/manual/en/function.spl-autoload-register.php#92514
from php.net "When you create a subfolder structure matching the namespaces of the containing classes, you will never even have to define an autoloader.

`<?php
spl_autoload_extensions(".php"); // comma-separated list
spl_autoload_register();
?>` "
So my question is, is this enough? "spl_autoload_extensions(".php"); // comma-separated list
spl_autoload_register(); "
 
Just use composer's autoloader
 
DGF
Arrrr, can't format the code here
@PeeHaa Isn't composer for Laravel?
 
not sure where you got that impression
Composer is the de facto standard package manager for PHP
 
> Arrrr, can't format the code here
"You are Blackbeard the Pirate and I claim my five pounds."
 
DGF
8:02 PM
@IMSoP Oh, for some reason I thought that. Thanks
 
@DGF No, composer is a package/dependency manager for PHP. Laravel is the poop you step in when you are walking on the sidewalk
Different things really :)
 
DGF
@Danack lmao
 
@PeeHaa ok so I will refrain from asking about laravel to you
lol
 
so yes, install Composer, and lay your classes out according to PSR-4 php-fig.org/psr/psr-4
 
@ln-s :P
 
8:04 PM
I never tried it tbh, but what I saw
was a bunch of static calls everywhere
when I saw the code some years ago
 
Laravel is designed to be developer-friendly
some of its decisions are controversial, but that's true of any framework
 
DGF
Hmm, okay then, thanks. But if I would do it without composer, is this correct in php.net or I'm getting confused? If I namespace I just need this: spl_autoload_extensions(".php"); // comma-separated list
spl_autoload_register(); ?
 
@DGF Use composer
 
@IMSoP By stabbing you in the back with a blunt knife and giving your first born to satan?
 
Otwell has kind of that satan smirk tbh
 
8:07 PM
@PeeHaa sure, as opposed to Symfony, which tricks you into stabbing yourself in an organ you didn't know you had, but you found yourself examining while 10 layers deep in a callstack :P
5
 
haha
Would say that otwell is the hide the pain harold from the PHP world
 
or Drupal, which converts each line of your code into a database table ;)
 
Oh hell no
There's a place for frameworks and another place for the trash
 
lol
I mean, you could use plain PHP, where HTTP requests are represented as mutable global state
basically, everything's horrible, and we should all just give up
@DGF back to the point; the other step to use that is to set your include path: php.net/set_include_path
note that the manual still references __autoload in some places, but that is removed in PHP 8, so ignore any reference to it
 
@IMSoP :D
@IMSoP Drupal is the worst. Well Wordpress is, but it comes really close
 
8:14 PM
I've never used anything for autoloading other than a) a custom autoload function which was loading classes from an application that was originally written for PHP 4; and b) Composer
 
Well soon we might have composer... but 5% faster :P
 
:)
I do wonder if in the long run autoloading is a dead-end, and we should be pre-compiling code a package at a time
to go back to hating on frameworks, the number of classes loaded in the average Symfony request certainly exceeds the number of include statements in the first professional PHP application I worked with
 
8:31 PM
DOMDocument::registerNodeClass contains wrong information ・ Documentation problem ・ #80891
 
DGF
@IMSoP set_include_path for Composer also?
 
@PeeHaa What, you don't like globals?
 
@DGF no, for Composer you just put something in a JSON configuration file, and it generates all the code for you
 
@StatikStasis *10CC* I love them!
 
8:33 PM
=P
 
{
    "autoload": {
        "psr-4": {"DGF\\Application\\": "relative/path/to/classes/"}
    }
}
 
DGF
@IMSoP That's what i thought, but just checking since you guys were hating on not using composer ahahah
 
DGF
@IMSoP I saw something like that in an article about composer. With composer it seems you end up writting all the relative paths to your files, or am I wrong? So what's the difference between that and using spl_autoload_register?
 
Composer's main job is managing your dependencies
it autoloading your own code is just a nice side effect
 
8:37 PM
the difference is basically compile-time vs run-time
spl_autoload_register() you have to write and maintain all the run-time autoloading code yourself, composer you just write compile-time decls and if they don't make sense your project won't even build
 
@DGF go and try using composer, it'll be easier than explaining it in words....
 
btw there is a new version of friday, and wow is it "not good".
 
tho it depends what your objective is, if you wanna get stuff done use composer, if you are trying to learn how autoloading works then by all means write an autoloader
@Danack don't wanna ruin the magic
 
@Danack Best thing that you can do nowadays with these "artists" it's not even paste a link to show a critic
 
DGF
8:41 PM
Yeah, for learning purposes, since I'm learning php for OOP
Thanks for the help guys/girls
 
once you get your head round Composer, you'll get a lot of value from pulling in other people's code, even if you're deliberately keeping things simple to learn with
for instance, if you want to play with calling APIs or scraping websites, you're much better off learning to use Guzzle than PHP's frankly terrible curl functions
 
@Danack it's a bit "RnB"+earnest for me tbh but it's definitely objectively at least "fine"
I think she should do more work with proper club dance producers tbh
 
@Danack we even have an emoji for that at work
not sure if that's public actually, probably is
 
it is now
 
8:47 PM
excellent
 
@Ekin and what does your HR department think of this? hmm?
 
oh they were amused
 
it has an air of Ming the Mercliess crossed with the Mongolian invaders from south park, needs an evil moustache
 
we already had a fridaypieter before the remix
 
that's horrifying
 
8:49 PM
:P
 
DGF
@IMSoP Will look deeper into composer, thanks :P
 
@Danack wtf
 
@NikiC congratulations on being old enough to not understand the "youth".
 
DGF
Btw, is anyone aware of any plugin like this (send files from host to virtual machine): packagecontrol.io/packages/FTPSync that would work on any text editor?
 
search for "100 gecs" if you want to feel even more confused.
 
8:58 PM
@Danack Rebecca was 24 years old when this was released. The video seems like a weird mix of teen (and even pre-teen) ... and adult. It's just weird.
I don't think "24" is "youth", at least in the "not understand the youth."
 
Any way for a method to be executed before each method call without __call magic ?
 
@ln-s people have been thinking about it externals.io/message/113501#113553
 
Would make sense for some use cases
Would think of a magic method like __before or something like that
 
Okay, I never thought I wanted to see RB in PVC, and now I have, I'm sure I didn't want to.
 
@MarkR ?
 
9:07 PM
@PeeHaa speaking of stabbing in the back, Amongst Us tonight? :P
 
Yes my plumbing is fine
 
hey, i play among us
include me pls
i don't play without audio though
 
Depends if @PeeHaa and @Ekin have time. Also preferably @StatikStasis and @MarkR
And whoever else we can round up
 
just count me in
 
Do you still have discord?
 
9:10 PM
though, what do you mean tonight? it's already tonight here
 
Depends on which GMT you guys are
 
it's 22:10 here
 
Sorry, it's 4pm 16:10 here. And PeeHaa and Ekin work US hours
 
Specify the GMT of your country
 
UTC-5 currently
 
9:12 PM
@samayo GMT +1 I would guess
 
yes
 
I might be up for a round
 
What's up with your nickname tho
 
\o/
 
I always wondered that @PeeHaa
 
9:13 PM
now i am curious as well
 
Dutch pronunciation of Pieter is what I guessed ¯\_(ツ)_/¯
 
pieter hordijk
 
initials in Dutch indeed
 
@Tiffany good catch
 
He pronounces "callable" like "colorball"
 
9:15 PM
It's pronounced PayHah in Dutch
 
Bad news, I thought that for some odd reason you were from spain
 
How is Pieter pronounced PayHah?
That doesn't make any sense
 
peehaa = pija
 
It doesn't I think it's a joke
 
9:16 PM
@Ekin 😂
 
@Tiffany I'm for a round as well, about to call it a week
up* for...
 
I need... 45 minutes... to try and make some more progress
@MarkR, @StatikStasis what about you guys?
 
I might join you on discord for a bit but I'm pretty worn out tonight. Guess I didn't get as much sleep as needed last night.
 
He just merged his first name "Pieter" and last name "hordijk"
I guess PeeHaa sounds better than PieHo
 
Depends in which language
 
9:20 PM
@MarkR oh yeah all the same
 
@MarkR maybe next time
 
btw, that's me in among us
I have short term memory issues, so 90% I can't remember the imposter or I will accuse you because I mix the colors
 
ahaha
 
Colors are so meaningless though. This game is very hard because you have to train your brain to notice colors. For me as a developer, the colors are only to make a distinction between different parts of the syntax
 
The harder part is training yourself not to yell out "<killer> you absolute bastard" on discord when they stab you in the face when you're 5 seconds into your first ever game :|
 
9:32 PM
@Dharman thank goodness, maybe that's my issue
I don't know for the life of me how some people can narrate every single step you have taken during the game. I play in the French lobby and some guys will tell you where everyone was, came from, went to ... with a timestamp
 
9:58 PM
@hakre thank you for gist.github.com/hakre/5147685 <3
 
10:18 PM
@Ekin @PeeHaa poke
 
Yeah I am readyish
 
10:56 PM
@MateKocsis Please email, otherwise it'll get lost
 

« first day (3807 days earlier)      last day (1141 days later) »