From:             depish at gmail dot com
Operating system: Win XP
PHP version:      5.2.0
PHP Bug Type:     *Compile Issues
Bug description:  Class declarations may not be nested 

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


-- 
Edit bug report at http://bugs.php.net/?id=39524&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39524&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39524&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39524&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39524&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39524&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39524&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39524&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39524&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39524&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39524&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39524&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39524&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39524&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39524&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39524&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39524&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39524&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39524&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39524&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39524&r=mysqlcfg

Reply via email to