From: [email]mikephp.net[/email]
Operating system:
PHP version: 4.3.3
PHP Bug Type: Arrays related
Bug description: settype($array, 'string') always raises a notice

Description:
------------
setType($array, 'string') always raises a notice

Reproduce code:
---------------
$ php -r '$r=array(); settype($r,'string'); var_dump($r);'


Expected result:
----------------
string(5) "Array"


Actual result:
--------------
PHP Notice: Array to string conversion in Command line code on line 1
string(5) "Array"


--
Edit bug report at [url]http://bugs.php.net/?id=26027&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26027&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26027&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26027&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26027&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26027&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26027&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26027&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26027&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26027&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26027&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26027&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26027&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26027&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26027&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26027&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26027&r=float[/url]