[php-src] Issue #20270: Null pointer error when calling parent property hook on plain property with named argument

From: Date: Thu, 23 Oct 2025 19:26:33 +0000
Subject: [php-src] Issue #20270: Null pointer error when calling parent property hook on plain property with named argument
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-251106@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/20270 Author: iluuu1994 ### Description The following code: ```php class B { public mixed $x; } class C extends B { public mixed $x { set { parent::$x::set($e, d: $d); } } } $c = new C(); $c->x = 0; ``` Resulted in this output: ``` Zend/zend_execute.c:5279:17: runtime error: null pointer passed as argument 1, which is declared to never be null ``` But I expected this output instead: ``` Unknown named parameter $d ``` Original report by Viet Hoang Luu (@vi3tL0u1s) et al. ### PHP Version ```plain PHP 8.4+ ``` ### Operating System _No response_

« previous php.bugs (#251106) next »