|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-04-13 09:39 UTC] pajoye@php.net
-Status: Open
+Status: Not a bug
[2012-04-13 09:39 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 09:00:02 2025 UTC |
Description: ------------ When the provided code get executed under Apache/mod_php, with APC enabled, only the FIRST request would result in warning: ====== Warning: The magic method __set() must have public visibility and cannot be static in test.php on line 5 ====== When you request the file second time, no warning message appear - some how it was caught by APC and being omitted. This Inconsistent behavior is hard to debug and wasted a lot of the development time. Reproduce code: --------------- <?php class Foo { protected function __set($name, $value){} protected function __get($name) {} } echo "Loaded"; Expected result: ---------------- The warning message should always appear. Actual result: -------------- The warning message only appear in the 1st request.