ID: 10309
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: Feature/Change Request
Operating system: all
PHP Version: 4.0.4
Description: feature request

no, gives a syntax error also. 
PHP Version 4.0.7-dev (and 4.0.5)

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

[2001-06-17 04:45:51] [EMAIL PROTECTED]
try:

$c =& (true)? $a: $b;

might work better. Havnt tested it though.

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

[2001-04-12 15:26:32] [EMAIL PROTECTED]
$a = 'foo';
$b = 'bar';

$c = (true) ? &$a : &$b;

=> syntax error, have to do

if (true) {
  $c = &$a;
} else {
  $c = &$b;
}

would be nice :)

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


Full Bug description available at: http://bugs.php.net/?id=10309


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to