Bug #62569 [Opn->Fbk]: __set magic method cause Apache with PHP-module to reload

From: Date: Mon, 30 Nov 2020 11:37:05 +0000
Subject: Bug #62569 [Opn->Fbk]: __set magic method cause Apache with PHP-module to reload
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230726@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62569&edit=1 ID: 62569 Updated by: cmb@php.net Reported by: jk555 at hotbox dot ru Summary: __set magic method cause Apache with PHP-module to reload -Status: Open +Status: Feedback Type: Bug Package: Apache2 related Operating System: Windows XP PHP Version: 5.3.14 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: If you still experience this crash with any of the actively supported PHP versions[1], please provide a stack backtrace[2]. [1] <https://www.php.net/supported-versions.php> [2] <http://bugs.php.net/bugs-generating-backtrace-win32.php> Previous Comments: ------------------------------------------------------------------------ [2012-07-15 06:51:31] jk555 at hotbox dot ru Description: ------------ Apache with php module reloads, if I try to change property name inside __set magic method (for example, add underscore prefix). Test script: --------------- class A { function __set ($p, $v) { //$p = '_' . $p; // this line cause apache with php module to reload! $this->{$p} = $v; } } $A = new A; $A->a = 'a'; echo $A->_a; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62569&edit=1

« previous php.bugs (#230726) next »