[PHP-DEV] Re: unset a reference of property object

2022-04-09 Thread Glash Gnome
Out of politeness I answer myself, PHP_FUNCTION(var_dump) -> php_var_dump() -> zend_std_get_properties_for() // Zend object handler get_properties_for -> obj->handlers->get_debug_info(obj, &is_temp); // Zend object handler get_debug_info -> zend_std

[PHP-DEV] unset a reference of property object

2022-04-09 Thread Glash Gnome
Hello, I am developing a PHP extension. I can't reproduce the behavior of references of Zend/PHP. Here is some Code illustrating Zend's behavior: baz; $foo->baz = [123];//set array has reference var_dump($foo); Output object(Foo)#1 (1) { ["baz"]=> &array(1) { [0]=> int(1

Re: [PHP-DEV] [RFC] Add true as type

2022-04-09 Thread Tim Düsterhus
Hi On 4/8/22 18:47, G. P. B. wrote: Now that null and false can be used as standalone types, I think it makes a lot of sense to add true as a value type for the sake of completeness with false. I agree that it would make sense to have 'true' as the counterpart of `false` for completeness, but

Re: [PHP-DEV] NULL Coercion Consistency

2022-04-09 Thread Craig Francis
On Fri, 8 Apr 2022 at 19:07, Craig Francis wrote: > On Fri, 8 Apr 2022 at 18:54, Mel Dafert wrote: > >> In particular, does this propose changing user-defined functions under >> strict_types=0 to accept null for scalar types? >> > > With user defined functions, I think it's up for debate (still