Re: Test case

From: Date: Tue, 01 Feb 2000 20:36:52 +0000
Subject: Re: Test case
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9642@lists.php.net to get a copy of this message
On Tue, Feb 01, 2000 at 08:44:59PM +0200, Zeev Suraski wrote: > > Any chance you could knock out the Oracle parts of your test case, so that > we could run it? > > Thanks, have fun - allvars should not get modified here... (if you comment out the 1st 2 lines of the function it works?!!? > > Zeev > > -- > Zeev Suraski <zeev@zend.com> > http://www.zend.com/ > > <?php function DBView_Insert($table,$fields,$returnid = false,$loginfo = "") { if (! is_array($fields)) return -1; $nobindfields = array(); reset($fields); while (list($fieldname,$fieldvalue) = each($fields)) { } $allnames = array(); $allvals = array("a"); var_dump($allvals); while (list($fieldname,$fieldvalue) = each($nobindfields)) { $allvals[] = $fieldvalue; } var_dump($allvals); } DBView_Insert("test",array("param1"=>"thies")); ?> -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.version4 (#9642) next »