From:             kropeck at interia dot pl
Operating system: Win XP
PHP version:      5.0.5
PHP Bug Type:     Variables related
Bug description:  en error occurs when a parameter is set as FALSE

Description:
------------
I have a class, where are few variables:

function DrawSelectList($list_name, $key1, $key2=false)

and there is a class which calls my function. If there are 3 variables:
$result = $class1 -> DrawSelectList($arg1, $arg2, $arg3)

there is no problem, but if I pass two arguments only, there is a
problem:
PHP Fatal error:  Cannot access empty property in
C:\project\ast\utility\SelectList.php on line 29

the code of 'SelectList.php' looks like this:

(...)   
while($row = $dao->fetchObject())
        {
                $this->arg1= $row->$key;
                $this->arg2= $row->$pole1;
line 29         $this->arg3= $row->$pole2;
                $this->list= $list_name;
(...)

In PHP 5.0.4 it worked properly.
Sorry for my english.


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

Reply via email to