|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-19 06:50 UTC] derick@php.net
[2004-03-19 07:07 UTC] emanuel at oxylus dot ro
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 14:00:01 2025 UTC |
Description: ------------ I'm getting this error in php5rc1 Fatal error: Cannot use string offset as an array in /www/base/modules/eshop/module.php on line 374 count($product["prices"][1]["prices"])>0 , which worked in 4.x its kinda too hard to check step by step to be sure is array ["prices"], then ["prices"]["1"] and then ["prices"][1]["prices"] The second problem is with some objects: this is the code: <?php class CObject { function Test() { $this->var1 = "test"; function Test2( $this ) { echo $this->var1; } Test2(&$this); } } $test = new CObject; $test->Test(); ?> in php4.x the output is "test" in 5rc1 Fatal error: Non-static method CObject::Test2() cannot be called statically in /home/www/work.phpbase.net/obj/test.php on line 13