ID: 30467 User updated by: cpks at btopenworld dot com Reported By: cpks at btopenworld dot com Status: Bogus Bug Type: *General Issues Operating System: N/A PHP Version: Irrelevant New Comment:
Brr! Never coming back HERE again! Previous Comments: ------------------------------------------------------------------------ [2004-10-18 07:57:22] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Nope, this is not supposed to work at all. No bug here. ------------------------------------------------------------------------ [2004-10-18 03:32:53] cpks at btopenworld dot com Description: ------------ I had been assuming that the expression $a = functioncall(), $a{operator} is equivalent to functioncall(){operator} but this appears to be the untrue, at least in the case of functions returning array values. Be kind to me. I'm sure I'm being stupid. Reproduce code: --------------- echo getdate()["year"]; Expected result: ---------------- 2004 //(or whatever year it is) Actual result: -------------- parse error: unexpected "[", expecting "," or ";" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30467&edit=1