[PHP4BETA] Functions returning arrays...

From: Date: Fri, 09 Apr 1999 09:15:25 +0000
Subject: [PHP4BETA] Functions returning arrays...
Groups: php.version4 
Request: Send a blank email to php-version4+get-37@lists.php.net to get a copy of this message
Is this supposed not to work? Kristian kk@poe ~/php4 $ php <?php function f() { return array(1, 2, 3); } $a = f(); print $a[1]; print f()[1]; Content-type: text/html <br> <b>Parse error</b>: parse error in <b>-</b> on line <b>8</b><br> Freeing 0x00126F30 (2 bytes), allocated in zend-scanner.l on line 872<br> Freeing 0x00126EC8 (2 bytes), allocated in zend-scanner.l on line 864<br> Freeing 0x00126E68 (2 bytes), allocated in zend-scanner.l on line 872<br> Freeing 0x00126DC0 (2 bytes), allocated in zend-scanner.l on line 864<br> Freeing 0x000F6BA0 (90112 bytes), allocated in zend_opcode.c on line 53<br> Freeing 0x000F6B70 (4 bytes), allocated in zend_opcode.c on line 74<br> Freeing 0x000F6AF8 (80 bytes), allocated in zend-scanner.l on line 176<br> -- Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00 Using PHP3? See our web development library at http://phplib.shonline.de/ (GPL) -- PHP 4 Beta

« previous php.version4 (#37) next »