Am 23.09.2021 um 18:52 schrieb Nikita Popov:
I believe that this continues to be the default behavior of PHPUnit for
example. This means that in practice, deprecations do break code, even
though they are intended not to.
That is correct: by default, PHPUnit converts PHP deprecations, errors,
Hi Daniele,
Thanks for reaching out to internals. I am curious about your proposal.
Could you please provide some examples of what you think was great in
Classic ASP that you would like to see implemented in PHP? If you have
implemented polyfills in PHP for them, could you share them with us?
Hello Everyone,
I'm not here to to enter in "mysterious RFC processes" nor I want "to change
the web", sorry for that.But I think that this notice is due from the fact that
playing for your own reputation nowadays is a quite a common game. And after
all my proposal comes as request of
On Thu, 23 Sept 2021 at 17:53, Nikita Popov wrote:
> I believe the changes in PHP 8.1 with the highest migration burden for
> open-source libraries are the additional of tentative return types (aka
> "put #[ReturnTypeWillChange] everywhere") and deprecation of null arguments
> to internal
Hi internals,
In PHP 8.1, it is possible to allow constructing any class name in an
initializer, after the approval of https://wiki.php.net/rfc/new_in_initializers
```
php > static $x1 = new ArrayObject(['key' => 'value']);
php > static $x2 = new stdClass();
php > static $x3 = (object)['key'
On 25/09/2021 16:45, tyson andre wrote:
What are your thoughts on allowing the `(object)` cast in initializer types
where `new` was already allowed
I'm not strongly opposed to this, but am not convinced it's a big
improvement.
Firstly, as with everything involving stdClass, I would be
Hi Rowan,Unfortunately I can't post all the code here by the mailing list cause
the message size limit.Kamil should has received by mistake a couple of sents
with the code, my tries.
Here however the code for str_place:
declare('PHP_TILDE', "~");function str_place(string $string, string
Hello David,
> I can agree with you that the current ways are a bit confusing for a
beginner..
You got the point of my shaking hand for simplification. Although I state you
here thatas freelancer, thinking to new ideas, public web apps, finding
customers, contracts,client retention..
Hey Marco Pivetta,
> > What are your thoughts on allowing the `(object)` cast in initializer types
> > where `new` was already allowed, but only when followed by an array literal
> > node. (e.g. continue to forbid `(object)SOME_CONSTANT`) (see
> > https://wiki.php.net/rfc/new_in_initializers)
Hi Daniele,
On 25 September 2021 18:18:59 BST, Daniele B via internals
wrote:
>
>Thx a lot. I try to build a list specifying when it is matter of Classic
>ASP.This mailing list doesn't support a lot of code per post..
Rather than focusing on how they relate to Classic ASP, a better approach
On 25 September 2021 21:17:22 BST, Daniele B wrote:
>Hi Rowan,
>Unfortunately I can't post all the code here by the mailing list cause the
>message size limit.
Well, that's easily solved: put it online, as a github gist, a blog post,
wherever you like, and link to that.
However, much better
Rowan, I did the bithday party of my two years old daughter yesterday.. if I
knew before I wrote you about this topic a couple of days ago to invite you all
to the party.. ; ) I'm not here exacly to meet up you my github account..I
also invested a good half of day about this *simplification*
Hi Kamil,
Thx a lot. I try to build a list specifying when it is matter of Classic
ASP.This mailing list doesn't support a lot of code per post..
String Manipulation==
function is_contraction(?string $w) {}
function is_givenName(?string $w) {}
function is_ucfirst(?string $s) {}
Here we go with a list of Date and time functions:
// Classic Aspfunction is_date(string $date) {}function year(?string $date)
{}function month(?string $date) {}function day(?string $date) {}function
hour(?string $date) {}function minute(?string $date) {}function second(?string
$date)
Hey Tyson,
On Sat, 25 Sep 2021, 17:45 tyson andre, wrote:
> What are your thoughts on allowing the `(object)` cast in initializer
> types where `new` was already allowed, but only when followed by an array
> literal node. (e.g. continue to forbid `(object)SOME_CONSTANT`) (see
>
Hello!
Why are the current date() alternatives not working for you?
- is_date() => checkdate(int $month, int $day, int $year) or
DateTime::createFromFormat('Y-m-d', $date) !== false;
- year() => date('Y');
- month() => date('m');
- day() => date('d');
- hour() => date('H');
- minute() =>
On 25 September 2021 22:22:51 BST, Daniele B wrote:
Rowan, I did the bithday party of my two years old daughter yesterday.. if I
knew before I wrote you about this topic a couple of days ago to invite you all
to the party.. ; ) I'm not here exacly to meet up you my github account..
Well,
Hey Tyson,
On Sat, 25 Sep 2021, 18:00 tyson andre, wrote:
> My original message had a section with reasons why an end user might want
> that.
>
Yeh, it sounds like stuff we wanna get away from
> Not a push for getting rid of stdClass. Way too many things use stdClass
> to get rid of
> On Sep 25, 2021, at 12:03 PM, Marco Pivetta wrote:
>
> Hey Tyson,
>
> On Sat, 25 Sep 2021, 18:00 tyson andre, wrote:
>
>> My original message had a section with reasons why an end user might want
>> that.
>>
>
> Yeh, it sounds like stuff we wanna get away from
Point of order here: "we"
Hi Daniele,
I think many of these functions might already be part of popular userland
libraries like Symfony String component
https://symfony.com/doc/current/components/string.html#methods-added-by-bytestring
It might be worthwhile to add missing functions to such userland libraries.
Imho, PHP
20 matches
Mail list logo