|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
20 - 11 = ?
Subscribe to this entry?

 [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: Wed Sep 30 03:01:24 2020 UTC