[PHP-DEV] Issue with php.net

2023-10-30 Thread Thomas Nunninger
Hi, sorry, I don't know where to send this. But When visiting https://www.php.net/ I get a certificate error: The provided certificate is for www.caruso.ovh. When visiting http://www.php.net (http only), I get redirected to http://www.caruso.ovh/ Regards Thomas -- PHP Internals - PHP

Re: [PHP-DEV] [RFC][Vote] Asymmetric Visibility

2023-01-10 Thread Thomas Nunninger
Hi, I was looking at the current vote of this RFC and I stumbled upon Theodore's remark that the RFC feels unfinished as it can't be used in conjunction with readonly properties/classes. The RFC disallows (for the time being) the mixing of readonly with explicit asymmetric visibility. And I

Re: [PHP-DEV] Casting array to any class

2022-10-15 Thread Thomas Nunninger
Hi, Am 15.10.22 um 13:18 schrieb Gianni Gentile: Hi, in my every day experience, using custom DTO classes and different API, I often write code to instantiate my objects from associative arrays. What are your thoughts on introduce the `(AnyType)` cast to instantiate objects from

Re: [PHP-DEV] Error behaviour for max_input_vars

2022-09-14 Thread Thomas Nunninger
Hi, In summary, I believe this can only be solved inside of PHP itself, by allowing to configure a way for `max_input_vars` to abort the request instead of truncating the input. The options I see feasible are: - A new ini setting `max_input_vars_abort` (default to 0), which, if set to 1,

Re: [PHP-DEV] Executing PHP SAPI/runtime from Golang/Rust

2022-08-14 Thread Thomas Nunninger
Hey, Am 14.08.22 um 14:29 schrieb Paul Dragoonis: Hey, So one thing that keeps me up at night (for a while now) is resisting the urge not to venture down a rabbithole of writing code which is loading the PHP runtime from Rust/Golang (up to MINIT) And then at RINIT time, we load the right SAPI

Re: [PHP-DEV] [RFC] Asymmetric visibility

2022-08-05 Thread Thomas Nunninger
Hi, Am 05.08.22 um 19:08 schrieb Larry Garfield: Ilija Tovilo and I are happy to present the first new RFC for PHP 8.3: Asymmetric Visibility. https://wiki.php.net/rfc/asymmetric-visibility Details are in the RFC, but it's largely a copy of Swift's support for the same. Great to hear that

Re: [PHP-DEV] instance version of match ?

2022-03-29 Thread Thomas Nunninger
Hi, Am 29.03.22 um 14:34 schrieb Rowan Tommins: On 29/03/2022 11:59, Robert Landers wrote: $object instanceof AnotherInterface => 'bar', We can see that `SomeInterface` will resolve the interface and not the constant. Yeah, the instanceof operator is magic in that regard - it has

Re: [PHP-DEV] Setting to disable the "Undefined array index" warning

2022-02-15 Thread Thomas Nunninger
Hi Nicolas, as far as I understand, adding new ini settings is not the way to go as this would mean that your code behaves differently on different environments. Two suggestions: * Write your own error handler that ignores those errors. * Try some tool like Rector to rewrite your code.

Re: [PHP-DEV] PHP 8.1.0 Released!

2021-11-26 Thread Thomas Nunninger
Hey, let's celebrate! Congrats and thanks to all who have been involved in creating this great new release! Best regards Thomas Am 25.11.21 um 19:20 schrieb Patrick ALLAERT: The PHP development team announces the immediate availability of PHP 8.1.0. This release marks the latest major

Re: [PHP-DEV] BC breaking changes in PHP 8.1

2021-09-23 Thread Thomas Nunninger
Hi, Am 22.09.21 um 15:29 schrieb Matthew Weier O'Phinney: Here's the issue: while overall, I like the move to resource objects, introducing them in a MINOR release is hugely problematic. Previously, you would do constructs such as the following: if (! is_resource($resource) ||

Re: [PHP-DEV] [RFC] is_literal

2021-06-14 Thread Thomas Nunninger
Hi! class UserPreferences { private DB $db; function getColor(): string { $preferredColor = $this->db->getColor(); if ($preferredColor === 'light') { return '#fff'; } if ($preferredColor === 'dark') { return '#000';

Re: [PHP-DEV] Analysis of property visibility, immutability, and cloning proposals

2020-12-29 Thread Thomas Nunninger
Am 28.12.20 um 21:23 schrieb Larry Garfield: There's been a number of discussions of late around property visibility and how to make objects more immutable. Since it seems to have been well-received in the past, I decided to do a complete analysis and context of the various things that have

Re: [PHP-DEV] About the use of the terms master/slave and blacklist, proposal to replace.

2020-06-15 Thread Thomas Nunninger
Hi, Am 15.06.20 um 21:14 schrieb Stanislav Malyshev: Hi! I was surprised by the many negative responses: Partly just discussing the term "blacklist" that is perhaps not the main issue. Or telling people how they should feel and understand words. Nobody tells you how to feel. But when you

Re: [PHP-DEV] About the use of the terms master/slave and blacklist, proposal to replace.

2020-06-15 Thread Thomas Nunninger
Hi, I was surprised by the many negative responses: Partly just discussing the term "blacklist" that is perhaps not the main issue. Or telling people how they should feel and understand words. Personally, I don't have any issues with "blacklist" - as I do not see any historical reason for

Re: [PHP-DEV] [RFC] Namespace-scoped declares, again

2019-08-12 Thread Thomas Nunninger
Hi, Am 12.08.19 um 10:26 schrieb Nikita Popov: On Mon, Aug 12, 2019 at 10:17 AM Nicolas Grekas < nicolas.grekas+...@gmail.com> wrote: Le lun. 11 déc. 2017 à 14:44, Nikita Popov a écrit : Some time ago I introduced the following proposal for namespace-scoped declares:

Re: [PHP-DEV] New website for the PHP project

2019-02-04 Thread Thomas Nunninger
Hi Thomas, I regularly go to the php.net homepage for the live documentation search function just to make sure I'm using functions correctly.  My most frequent search is the date() function for the % code list.  One of these days I'll print out that docs page instead of looking it up every

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2

2016-12-02 Thread Thomas Nunninger
Hi, On 12/02/2016 02:54 PM, Matteo Beccati wrote: On 02/12/2016 08:36, Thomas Nunninger wrote: Hi, So, if I only want to get the emulated prepared statement, I have to do ob_start()/ob_get_clean(), then use a regexp to fetch it ? I want v1 back T_T I second that. Why do you print

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2

2016-12-01 Thread Thomas Nunninger
Hi, So, if I only want to get the emulated prepared statement, I have to do ob_start()/ob_get_clean(), then use a regexp to fetch it ? I want v1 back T_T I second that. Why do you print it directly? Wouldn't it be better to return a structured array with the information needed? If needed,

Re: [PHP-DEV] Feature Request: inline pseudo-instruction

2016-10-04 Thread Thomas Nunninger
Hi, On 10/04/2016 01:33 PM, Pascal KISSIAN wrote: Hi everybody, I have an application where a small file is included at multiple places. So far so good. The problem is that this include consists in a small piece of code which is inside a multi-level loop. The include is done about an

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-06 Thread Thomas Nunninger
Hi, On 09/06/2016 09:14 AM, Sebastian Bergmann wrote: Am 05.09.2016 um 12:13 schrieb Derick Rethans: You can't really ship PHP without a way to install extensions though! Why not? IMHO, PHP should not be shipped with any tool for installing PHP components (PEAR Installer, Composer, ...) or

Re: [PHP-DEV] [RFC Discussion] array_change_keys()

2016-05-29 Thread Thomas Nunninger
Hello, shouldn't it be possible to return null as new key? That way you say: Use the next free integer index. Not sure if returning null is wanted (as it could hide errors in the callback) or needed in some real world use cases. But it would be more in sync with $a[] = ... Regards Thomas

Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2

2015-01-14 Thread Thomas Nunninger
Hi, On 01/14/2015 10:32 AM, Andrea Faulds wrote: Hi Leigh, On 14 Jan 2015, at 09:17, Leigh lei...@gmail.com wrote: I really don't like this behaviour being changed at the call site. If I design a function that I _know_ should only take a string, then I want it to be an error if the user

Re: [PHP-DEV] [RFC] Scalar Type Hints v0.2

2015-01-14 Thread Thomas Nunninger
Hi Andrea, On 01/14/2015 11:20 AM, Andrea Faulds wrote: Hi Thomas, On 14 Jan 2015, at 10:08, Thomas Nunninger tho...@nunninger.info wrote: $i = 1; $a = myFunc( $i ); declare(strict_typehints=TRUE); function myFunc( float $f ) { return otherFunc( $f ); } function

Re: [PHP-DEV] Let's make a 5.7 release

2014-08-16 Thread Thomas Nunninger
On 08/16/2014 12:52 AM, Pierre Joye wrote: On Sat, Aug 16, 2014 at 12:49 AM, David Soria Parra d...@php.net wrote: On 2014-08-15, Pierre Joye pierre@gmail.com wrote: snip Let me summerize a few things that have come up: (1) phpng doesn't justify PHP7 It does. It's a complete new

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-17 Thread Thomas Nunninger
Hi, On 07/16/2014 10:45 PM, Andrea Faulds wrote: On 16 Jul 2014, at 21:43, Zeev Suraski z...@zend.com wrote: anything this RFC permits will be permitted by zpp, it's the reverse that isn't necessarily true. Right, so it needs to be fixed. It makes no sense to force a new agenda on the

Re: [PHP-DEV] [RFC] Scalar Type Hinting With Casts (re-opening)

2014-07-17 Thread Thomas Nunninger
Hi Dan, On 07/17/2014 02:12 PM, Dan Ackroyd wrote: Thomas Nunninger wrote: - scalar parameter casting should just be a convenience for coding: function foo( (int) $i, (string) $s ) { } is the same as: function foo( $i, $s ) { $i = (int) $i

Re: [PHP-DEV] 6.0 And Moving Forward

2012-07-17 Thread Thomas Nunninger
Hi, On 07/17/2012 05:40 AM, Nicholas Curtis wrote: Great Idea, would love to see current standard library in a legacy namespace and a new standard library implemented as methods of primitive types. The idea to separate old and new behaviour has some charm. $string = Hello, World; echo

Re: [PHP-DEV] [VOTE] DateTime and Daylight Saving Time Transitions

2011-10-26 Thread Thomas Nunninger
Hi, sorry for late comment. You write: The ST or DST modifiers can only be used when specifying times during the backward transition period. Using the modifiers at other times will throw an exception in object-oriented style code while procedural style code will return false without

Re: [PHP-DEV] Type hinting

2010-05-27 Thread Thomas Nunninger
Hi, if it comes to auto-converting (that's different from existing type-juggling): wouldn't it be nice, to change type-juggling as well? I know about BC breaks here, thus it would need till PHP 7 or so to become the default behavior. But I think, BC breaks mainly occur in the cases where

Re: [PHP-DEV] Type hinting

2010-05-25 Thread Thomas Nunninger
Hi, another end-user perspective: Am Montag, 24. Mai 2010 14:12:41 schrieb Zeev Suraski: At 14:48 24/05/2010, s...@geleia.net wrote: Adding strict typing would be the largest inconsistency in PHP's core syntax, ever. I disagree. The === operator already checks the type of the