php.net |  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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-07-15 06:51 UTC] 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;


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Aug 23 00:01:27 2019 UTC