#25993 [Opn->Bgs]: Lack of functions functionality

From: Date: Sun, 26 Oct 2003 17:40:34 +0000
Subject: #25993 [Opn->Bgs]: Lack of functions functionality
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49484@lists.php.net to get a copy of this message
 ID:               25993
 Updated by:       helly@php.net
 Reported By:      ausvald at tut dot by
-Status:           Open
+Status:           Bogus
 Bug Type:         Zend Engine 2 problem
-Operating System: irrelevant
+Operating System: *
-PHP Version:      4.3.3
+PHP Version:      *
 New Comment:

We don't have $var=>$var, use $var->var.

Besides that noone reading your code will know what you want. For
example what is 'test1()();' supposed to do in your oppinion?


Previous Comments:
------------------------------------------------------------------------

[2003-10-26 10:28:13] ausvald at tut dot by

Description:
------------
<?

//#1

function test1(){
	return __FUNCTION__;
}

echo test1()();

//#2

function test2($var){
	return array($var=>$var);
}
echo test2('test')['test'];


?>

Why these things are not implemented in PHP5? And when are they going
to be?


Reproduce code:
---------------
<?

//#1

function test1(){
	return __FUNCTION__;
}

echo test1()();

//#2

function test2($var){
	return array($var=>$var);
}
echo test2('test')['test'];


?>

Why these things are not implemented in PHP5? And when are they going
to be?


Expected result:
----------------
<?

//#1

function test1(){
	return __FUNCTION__;
}

echo test1()();

//#2

function test2($var){
	return array($var=>$var);
}
echo test2('test')['test'];


?>

Why these things are not implemented in PHP5? And when are they going
to be?


Actual result:
--------------
Error


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25993&edit=1


Thread (3 messages)

« previous php.bugs (#49484) next »