From:             davey
Operating system: OSX 10.7.2 & Ubuntu 11.04
PHP version:      5.4.0RC5
Package:          CGI/CLI related
Bug Type:         Bug
Bug description:Interactive Mode doesn't reach prompt

Description:
------------
* Using OS X Lion 10.7.2 or Ubuntu 11.04 (Natty), and basic "./configure".

If you run php -a, you never reach the prompt, and nothing entered will
work. All 
you can do is ^C to kill it.

Setting cli.prompt does not help.

Test script:
---------------
$ php -a

Expected result:
----------------
$ php -a
Interactive mode enabled

php > 

Actual result:
--------------
$ php -a
Interactive mode enabled

(wait. wait. wait.)

^C


Backtrace if helpful:
#0  0x00007fff87f6ad52 in read$NOCANCEL ()
#1  0x00007fff86883c25 in _sread ()
#2  0x00007fff86884166 in __srefill1 ()
#3  0x00007fff86884cb2 in __fread ()
#4  0x00007fff86884b34 in fread ()
#5  0x000000010028744c in zend_stream_getc [inlined] () at
/Users/davey/src/php-
5.4.0RC5/Zend/zend_stream.c:148
#6  0x000000010028744c in zend_stream_read (file_handle=0x0,
buf=0x1009356a0 "?
V?", len=4096) at zend_stream.c:168
#7  0x00000001002878fb in zend_stream_fixup (file_handle=0x0,
buf=0x7fff5fbfecc0, 
len=0x7fff5fbfecb8) at zend_stream.c:262
#8  0x00000001002493be in open_file_for_scanning
(file_handle=0x7fff5fbff958) at 
zend_language_scanner.l:483
#9  0x000000010024a190 in compile_file (file_handle=0x7fff5fbff958, type=8)
at 
zend_language_scanner.l:566
#10 0x0000000100159ba2 in phar_compile_file (file_handle=0x0,
type=1606414144) at 
phar.c:3391
#11 0x0000000100272b57 in zend_execute_scripts (type=8,
retval=0x7fff5fbff0a0, 
file_count=1606414496) at zend.c:1264
#12 0x00000001002170e2 in php_execute_script (primary_file=0x7fff5fbff958)
at 
main.c:2476
#13 0x00000001002ff3e5 in do_cli [inlined] () at /Users/davey/src/php-
5.4.0RC5/sapi/cli/php_cli.c:983
#14 0x00000001002ff3e5 in main (argc=1606417184, argv=0x0) at
php_cli.c:1356

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60683&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60683&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60683&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60683&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60683&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60683&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60683&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60683&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60683&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60683&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60683&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60683&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60683&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60683&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60683&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60683&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60683&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60683&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60683&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60683&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60683&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60683&r=mysqlcfg

Reply via email to