|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-07 05:42 UTC] gopalv82 at yahoo dot com
[2006-08-29 06:29 UTC] gopalv82 at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 22:00:02 2025 UTC |
Description: ------------ there is a bug somewhere, the following applications I tested triggers the problem 1. Flux CMS 2. Cowiki Reproduce code: --------------- foo.php <?php require_once 'bar.php'; $bar = new Bar(); $bar->assign("foo", "bar"); ?> bar.php <?php class Bar { protected $aAssign = array(); public function assign($sTag, $sContent) { $this->aAssign[$sTag] = $sContent; } } Expected result: ---------------- business as usual. Actual result: -------------- at the first call, code processed correctly, at the second call. Fatal error: Cannot access protected property Bar::$aAssign in bar.php on line 10 in using latest APC CVS, and PHP 5_2 CVS.