convert_to_string_ex is not the solution.
| From: | Thies C. Arntzen | Date: | Fri, 17 Sep 1999 09:05:39 +0000 |
| Subject: | convert_to_string_ex is not the solution. | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4563@lists.php.net to get a copy of this message | ||
zeev,
script:
<?
$what = 1;
var_dump($what);
echo strlen(&$what)."\n";
var_dump($what);
?>
outputs:
Content-Type: text/html
int(1)
1
string(1) "1"
so strlen still does convert it's arg into a string if if the arg is
passed by refernce.
i really think we should convert to getParametersEx soon but really think
that a function like strlen should not change its argument - under no
circumstances!
i'm willing to spend a bit of extra work to get to this!
i hope you can agree,
tc
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