From:             onebird at 21cn dot com
Operating system: win2k
PHP version:      5.0.0
PHP Bug Type:     Zend Engine 2 problem
Bug description:  construct Class error when used 2 parameters or more

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 bug report at http://bugs.php.net/?id=29613&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29613&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29613&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29613&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29613&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29613&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29613&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29613&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29613&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29613&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29613&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29613&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29613&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29613&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29613&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29613&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29613&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29613&r=float

Reply via email to