Ask a Question related to PHP Development, Design and Development.
-
mike@php.net #1
#26027 [NEW]: settype($array, 'string') always raises a notice
From: [email]mike@php.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]
mike@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 [Opn->Bgs]: settype($array, 'string') always raises a notice
ID: 26027 Updated by: sniper@php.net Reported By: mike@php.net -Status: Open +Status: Bogus Bug Type: Arrays related PHP... -
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

