Re: Re: PHP 4.0 Bug #7751 Updated: Improper array behaviour

From: Date: Mon, 20 Nov 2000 13:15:25 +0000
Subject: Re: Re: PHP 4.0 Bug #7751 Updated: Improper array behaviour
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-38592@lists.php.net to get a copy of this message
RK>> function foo(&$fin,&$fail) RK>> { RK>> . RK>> . RK>> OCIBindByName($stmt,":g_finished",&$fin,32); RK>> OCIBindByName($stmt,":g_failed", &$fail, 32); You should not use call-time reference. It's deprecated. RK>> --------------------------------------------------- RK>> function foo(&$a_name) RK>> { RK>> unset($a_name); RK>> $a_name[0] ="two"; RK>> } RK>> RK>> $a[0] = "one"; RK>> Why to do unset here? Do $a_name = array(); -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.106

« previous php.dev (#38592) next »