Ask a Question related to PHP Development, Design and Development.
-
sniper@php.net #1
#26027 [Opn->Bgs]: settype($array, 'string') always raises a notice
ID: 26027
Updated by: [email]sniper@php.net[/email]
Reported By: [email]mike@php.net[/email]
-Status: Open
+Status: Bogus
Bug Type: Arrays related
PHP Version: 4.3.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
[url]http://www.php.net/manual/[/url] and the instructions on how to report
a bug at [url]http://bugs.php.net/how-to-report.php[/url]
Previous Comments:
------------------------------------------------------------------------
[2003-10-29 09:02:05] [email]mike@php.net[/email]
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 this bug report at [url]http://bugs.php.net/?id=26027&edit=1[/url]
sniper@php.net Guest
-
#38824 [NEW]: settype() should throw a Notice on uninitialized variables
From: tklingenberg at lastflood dot com Operating system: win32 PHP version: 5.1.6 PHP Bug Type: Feature/Change Request Bug... -
Notice: Use of undefined constant string
Hi there ! I am trying to program in object mode using easyphp1-7. When I create an object, php engine returns : Notice: Use of undefined... -
#26027 [Bgs]: settype($array, 'string') always raises a notice
ID: 26027 User updated by: mike@php.net Reported By: mike@php.net Status: Bogus Bug Type: Arrays related PHP... -
#26027 [NEW]: settype($array, 'string') always raises a notice
From: mike@php.net Operating system: PHP version: 4.3.3 PHP Bug Type: Arrays related Bug description: settype($array,... -
Cannot create an object of type 'System.String[]' from its representation 'String[] Array'
Hello, I am designing a .net custom control in VS.net 7.1 and my control exposes an array of strings which are supposed to be the items to show. To...



Reply With Quote

