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: 2020-12-13 04:22 UTC
From: jk555 at hotbox dot ru Assigned: cmb (profile)
Status: No Feedback 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

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-11-30 11:37 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-11-30 11:37 UTC] cmb@php.net
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>
 [2020-12-13 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 05:01:29 2024 UTC