|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62569 __set magic method cause Apache with PHP-module to reload
Submitted: 2012-07-15 06:51 UTC Modified: -
From: jk555 at hotbox dot ru Assigned:
Status: Open Package: Apache2 related
PHP Version: 5.3.14 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: jk555 at hotbox dot ru
New email:
PHP Version: OS:


 [2012-07-15 06:51 UTC] jk555 at hotbox dot ru
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;


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Oct 22 07:01:25 2020 UTC