ID: 29613 Updated by: [EMAIL PROTECTED] Reported By: onebird at 21cn dot com -Status: Open +Status: Feedback Bug Type: Zend Engine 2 problem Operating System: win2k PHP Version: 5.0.0 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2004-08-11 13:33:09] onebird at 21cn dot com Description: ------------ construct Class error when used 2 parameters or more ; The first parameter can't used the Default value !! Reproduce code: --------------- class Base {.....} class system_login extends Base { var $db_conn; var $user_table = 'user'; function system_login( $DB = "", $mode = "http" ) {.....} } $a = new system_login ("","Form"); Expected result: ---------------- I found the $mode == "http" always ; but it will be $mode == "Form" when construct this class; if I used : $a = new system_login ("ss","Form"); the $mode == "Form" is OK! The first parameter can't used the Default value !! this code can used under PHP4 , it OK always ! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29613&edit=1