|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-15 14:01 UTC] tony2001@php.net
[2006-11-23 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 11:00:01 2025 UTC |
Description: ------------ Fatal error: Class declarations may not be nested in C:\wamp\www\lowerfees3\classes\lf_page.class.php on line 1489 Reproduce code: --------------- line 1489: class Error{ public $errNo; public $errMsg; public $errDesc; function __construct($msg=null,$desc=null,$no=null){ $this->errNo = $no; $this->errMsg = $msg; $this->errDesc = $desc; } function ToString(){ $msg = ''; if (null != $this->errNo) $msg .= $this->errNo.": "; if (null != $this->errMsg) $msg .= $this->errMsg; if (null != $this->errDesc) $msg .= "\\n".$this->errDesc; return $msg; } } Expected result: ---------------- no error working fine to prior version Actual result: -------------- Fatal error: Class declarations may not be nested in C:\wamp\www\lowerfees3\classes\lf_page.class.php on line 1489