Bug #60169 [Opn->Fbk]: Conjunction of ternary and list crashes PHP

From: Date: Sat, 29 Oct 2011 14:26:31 +0000
Subject: Bug #60169 [Opn->Fbk]: Conjunction of ternary and list crashes PHP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-164664@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60169&edit=1

 ID:                 60169
 Updated by:         pajoye@php.net
 Reported by:        thekid@php.net
 Summary:            Conjunction of ternary and list crashes PHP
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Windows Vista
 PHP Version:        5.4.0beta2
 Block user comment: N
 Private report:     N

 New Comment:

I can't reproduce it. Please provide a script without external data (arg).


Previous Comments:
------------------------------------------------------------------------
[2011-10-29 13:40:32] thekid@php.net

Description:
------------
This code makes PHP exit with exit code #127:

list($a, $b)= is_array($argv) ? $argv : explode("@", $argv[1]);

Test script:
---------------
$ php.exe -r 'list($a, $b)= is_array($argv) ? $argv : explode("@", $argv[1]);' ;
echo $?


Expected result:
----------------
0

Actual result:
--------------
127


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



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


Thread (12 messages)

« previous php.bugs (#164664) next »