#25993 [Bgs]: Lack of functions functionality

2003-10-27 Thread ausvald at tut dot by
 ID:   25993
 User updated by:  ausvald at tut dot by
 Reported By:  ausvald at tut dot by
 Status:   Bogus
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  *
 New Comment:

Ok, i thought it's rather easy to understand.

#1:

$test=test1(); //$test="test1";
echo $test();  // echo "test1";

So why there is no way just to write test()(), which means run variable
function that is returned by another function?

#2:

array($var=>$var) construction means i'm creating an array with 1
element which has key $var and value $var.

$test=test2('test'); $test=array('test'=>'test');
echo $test['test']; echo 'test';

So why there is no way just to write echo test2('test')['test'], which
means to get an element of array that is returned by a function?

Thanks.


Previous Comments:


[2003-10-26 12:40:34] [EMAIL PROTECTED]

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?



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

Description:

$var);
}
echo test2('test')['test'];


?>

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


Reproduce code:
---
$var);
}
echo test2('test')['test'];


?>

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


Expected result:

$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


#25993 [NEW]: Lack of functions functionality

2003-10-26 Thread ausvald at tut dot by
From: ausvald at tut dot by
Operating system: irrelevant
PHP version:  4.3.3
PHP Bug Type: Zend Engine 2 problem
Bug description:  Lack of functions functionality

Description:

$var);
}
echo test2('test')['test'];


?>

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


Reproduce code:
---
$var);
}
echo test2('test')['test'];


?>

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


Expected result:

$var);
}
echo test2('test')['test'];


?>

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


Actual result:
--
Error

-- 
Edit bug report at http://bugs.php.net/?id=25993&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25993&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25993&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25993&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25993&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25993&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25993&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25993&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25993&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25993&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25993&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25993&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25993&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25993&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25993&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25993&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25993&r=float