Search
17 results
-
Jordi Kroon ·
Hi Ayesh, Thank you for checking for other discussions on this matter. PHP 8.5 deprecating the legacy cast names like boolean, double, integer and binary in favor of bool, float, int and string feels like a pretty clear step …
-
Vasilii Shpilchin ·
… serialization and json_encode are not symmetric nor interchangeable by definition, because JSON doesn't preserve protected properties and class names. Hence, I don't see them to be "inconsistent" as they were not designed to be consistent. The reason …
-
Yasuo Ohgaki ·
… Rasmus: I don't see what's the problem of aliasing functions for the next 1-2 majors, deprecate the inconsistent one in the following and remove later. As far as I am concerned str_len() would be the inconsistent …
-
Robert Williams ·
Aliases mean inconsistency. We shouldn’t unnecessarily have multiple names for the same thing, just one. Also, for every alias we support, another reserved word is added. Hence we only allow one set of names. This is also Facebook …
-
Christoph M. Becker ·
The RFC: Consistent function names [1] shows the magnitude of this. I don't think every function listed there needs a change so it can be greatly reduced. But still this can be done in several years to 10 …
-
RFC DISCUSSION typeof
Stanislav Malyshev ·
Hi! The old function is actively causing confusion - the reported type-names aren't even inconsistent with scalar type-hints, and then you have to go and read the manual with some explanation about historical reasons why the function doesn …
-
turneliusz@gmail.com ·
I've seen discussion on reddit http://www.reddit.com/r/PHP/comments/174qng/lets_make_phps_function_names_consistent/ where many people are surprised why PHP can't have this done. Why inconsistency is something that we want to …
-
Rowan Tommins ·
… inconsistency; adding more to that by putting what would feel like a random selection of functions (or classes) in a namespace is a lot more than "lack of elegance". The benefits, on the other hand, seem to be a theoretical …
-
Niels Dossche ·
… for (new XMLReader)->open() XMLReader::fromString() as replacement for (new XMLReader)->xml() … which would make me happy. (The old, inconsistently-named, instance-and-semi-broken-static methods could be kept for BC and marked as soft-deprecated in the manual …
-
Stanislav Malyshev ·
… truly case-insensitive, I might agree. However, as I've mentioned but will reiterate, they're not. They're ASCII case insensitive, and that's a long cry from real case-insensitivity. PHP 6 was planning to make case-insensitivity …
-
Rowan Collins ·
… identifying a plain function, and two array forms, [string, string] and [object, string], representing static and instance methods, respectively. You can't not accept those forms as a callback parameter in one particular function just to make things tidier. I …
-
Rowan Tommins ·
We already have PHP language features relying on classes in the root namespace (Closure, Throwable, ArrayAccess, etc) so the point Marcio makes about inconsistency is nonetheless valid I think. The proposal is not to move everything into the PHP namespace …
-
Pierre ·
Le 01/12/2025 à 21:12, BohwaZ a écrit : Hi all, PHP 8.5 has deprecated the following type names: integer double boolean binary But the gettype() function still returns integer, double and boolean instead of int, float and …
-
ruempler@topconcepts.com ·
… namespace and G*** discussions, so I'd like to announce some ideas and toughts about the PDM notes: 2.13 Case sensitivity of identifiers Maybe this could throw some E_STRICT deprecated warning and PHP7 goes completely case sensitive. 5 …
-
Gina P. Banyard ·
by removing the newly introduced constant and instead exposing the functionality only via the new Enum. It brings inconsistency that some modes are accessible by ints and enums and others only by enums. If there is no deprecation plan …
-
Andrea Faulds ·
… can be commented out by simply adding # at the beginning). What do others think? Theodore There is a critical use-case for comments beginning with the hash symbol, namely UNIX shebang lines. In theory we could special-case those and …
-
Larry Garfield ·
… that make named functions able to close-over global variables? And, if the above is true, wouldn't it be consistent to support the use statement on named functions, and then deprecate the global statement? I remember one of the …