From:             [EMAIL PROTECTED]
Operating system: Solaris 2.8
PHP version:      4.0.5
PHP Bug Type:     Arrays related
Bug description:  extract($array, EXTR_PREFIX_ALL, "".$int) fails

Under PHP 3.0.16, I could use the extract function to append extract
variables from an array and attach a prefix to each one. Often, this was a
number. I could do it because "".$int made the integer $int into a string.
However, under PHP 4.0.5, the same operation returns 0, even if I use
settype to make $int into a string beforehand. The only solution I can find
is to use something like:
extract($array, EXTR_PREFIX_ALL, "x".$int)

instead of 

extract($array, EXTR_PREFIX_ALL, "".$int)

(In all of my examples, $array is the product of mysql_fetch_assoc()).

Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to