#26933 [NEW]: Function return object
| From: | jacob at lindborg dot dk | Date: | Fri, 16 Jan 2004 12:48:01 +0000 |
| Subject: | #26933 [NEW]: Function return object | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-53423@lists.php.net to get a copy of this message | ||
From: jacob at lindborg dot dk
Operating system: Windows
PHP version: 5.0.0b3 (beta3)
PHP Bug Type: Feature/Change Request
Bug description: Function return object
Description:
------------
In the new PHP 5 you can do something like this after a function call wich
returns a object...
$test = getObject()->test;
but why can't you do the same with an array?
$test = getObject()['test'];
--
Edit bug report at http://bugs.php.net/?id=26933&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26933&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26933&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26933&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26933&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26933&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26933&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26933&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26933&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26933&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26933&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26933&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26933&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26933&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26933&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26933&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26933&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26933&r=float