|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-08-26 07:46 UTC] mfischer@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 21:00:02 2025 UTC |
It seems that I've reached one of the borders of PHP/Zend. I'm coding a qt-like environment called pasta which results in a quite large class-tree. This is a problem for PHP as it looses a some parts of the class: The code: print_r($this->sec_global); print "incpath: ".$this->sec_global["includepath"]."\n"; foreach($this->sec_global as $k => $v) { print "$k -- $v<br />"; } results in the following output: Array ( ["debug_level"] => 0 ["incremental"] => 0 ["enable_resolver"] => 1 ["outputdir"] => ["include"] => ["includepath"] => ../etc/ ) Warning: Undefined index: includepath in /pages/projects/modlogan/mlaconfiggen.php on line 262 incpath: "debug_level" -- 0 "incremental" -- 0 "enable_resolver" -- 1 "outputdir" -- "include" -- "includepath" -- ../etc/ As you can see a print_r and foreach display the same result. The array is filled with these data like I've expected it. But a direct access to the array results in a 'undefined index' which looks very odd to me. This problem exists for other class variables of this class too: Undefined property: processorplugin ... This happens in the default branch of a switch. The full code can be found at http://jan.kneschke.de/showsource.php?page=%2Fprojects%2Fmodlogan%2Fmlaconfiggen.php The output is at http://jan.kneschke.de/projects/modlogan/mlaconfiggen.php (click 3 times on the '-->', fill in some data into the 4th page and click on '-->' again. This will result in the described behaviour which has been reproduced with PHP4.0.6 and PHP4.0.7rc1)