[PHP-BUG] Bug #60683 [NEW]: Interactive Mode doesn't reach prompt
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 0x7fff87f6ad52 in read$NOCANCEL () #1 0x7fff86883c25 in _sread () #2 0x7fff86884166 in __srefill1 () #3 0x7fff86884cb2 in __fread () #4 0x7fff86884b34 in fread () #5 0x00010028744c in zend_stream_getc [inlined] () at /Users/davey/src/php- 5.4.0RC5/Zend/zend_stream.c:148 #6 0x00010028744c in zend_stream_read (file_handle=0x0, buf=0x1009356a0 "? V?", len=4096) at zend_stream.c:168 #7 0x0001002878fb in zend_stream_fixup (file_handle=0x0, buf=0x7fff5fbfecc0, len=0x7fff5fbfecb8) at zend_stream.c:262 #8 0x0001002493be in open_file_for_scanning (file_handle=0x7fff5fbff958) at zend_language_scanner.l:483 #9 0x00010024a190 in compile_file (file_handle=0x7fff5fbff958, type=8) at zend_language_scanner.l:566 #10 0x000100159ba2 in phar_compile_file (file_handle=0x0, type=1606414144) at phar.c:3391 #11 0x000100272b57 in zend_execute_scripts (type=8, retval=0x7fff5fbff0a0, file_count=1606414496) at zend.c:1264 #12 0x0001002170e2 in php_execute_script (primary_file=0x7fff5fbff958) at main.c:2476 #13 0x0001002ff3e5 in do_cli [inlined] () at /Users/davey/src/php- 5.4.0RC5/sapi/cli/php_cli.c:983 #14 0x0001002ff3e5 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
Bug #60683 [Com]: Interactive Mode doesn't reach prompt
Edit report at https://bugs.php.net/bug.php?id=60683&edit=1 ID: 60683 Comment by: da...@php.net Reported by: da...@php.net Summary:Interactive Mode doesn't reach prompt Status: Open Type: Bug Package:CGI/CLI related Operating System: OSX 10.7.2 & Ubuntu 11.04 PHP Version:5.4.0RC5 Block user comment: N Private report: N New Comment: Can we make the output here (http://lxr.php.net/opengrok/xref/PHP_5_4/sapi/cli/php_cli.c#906) be a little more descriptive? i.e.: printf("Interactive mode enabled\n"); printf("No readline/libedit support, use ^D to execute and quit.\n\n"); Previous Comments: [2012-01-16 19:18:01] rk at srsbiz dot pl @dragoonis readline is only required to make this mode truly interactive (with command history, function completion etc), but it also works without it. You can type/paste your code and it will be executed as soon as EOF (^D) is reached, so it's rather documentation problem. [2012-01-15 01:58:33] dragoo...@php.net @rk, If there's support required for another library then it shouldn't let you enter interactive mode, and back out, giving you a useful error message to tell you there are missing dependencies.. [2012-01-13 21:45:44] rk at srsbiz dot pl IMHO it's not a bug, to have interactive shell you have to configure with readline support, not just clean './configure' [2012-01-08 05:37:10] dragoo...@php.net I confirmed this case with davey on Mac OSX Lion Darwin Paul-Dragooniss-MacBook-Pro.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64 05:10 macosx lion.. My build details are: -- bash-3.2$ ../build/bin/php -v PHP 5.4.0RC6-dev (cli) (built: Jan 8 2012 03:03:04) (DEBUG) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies Thanks. -------- [2012-01-08 05:31:44] da...@php.net 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 0x7fff87f6ad52 in read$NOCANCEL () #1 0x7fff86883c25 in _sread () #2 0x7fff86884166 in __srefill1 () #3 0x7fff86884cb2 in __fread () #4 0x7fff86884b34 in fread () #5 0x00010028744c in zend_stream_getc [inlined] () at /Users/davey/src/php- 5.4.0RC5/Zend/zend_stream.c:148 #6 0x00010028744c in zend_stream_read (file_handle=0x0, buf=0x1009356a0 "? V?", len=4096) at zend_stream.c:168 #7 0x0001002878fb in zend_stream_fixup (file_handle=0x0, buf=0x7fff5fbfecc0, len=0x7fff5fbfecb8) at zend_stream.c:262 #8 0x0001002493be in open_file_for_scanning (file_handle=0x7fff5fbff958) at zend_language_scanner.l:483 #9 0x00010024a190 in compile_file (file_handle=0x7fff5fbff958, type=8) at zend_language_scanner.l:566 #10 0x000100159ba2 in phar_compile_file (file_handle=0x0, type=1606414144) at phar.c:3391 #11 0x000100272b57 in zend_execute_scripts (type=8, retval=0x7fff5fbff0a0, file_count=1606414496) at zend.c:1264 #12 0x0001002170e2 in php_execute_script (primary_file=0x7fff5fbff958) at main.c:2476 #13 0x0001002ff3e5 in do_cli [inlined] () at /Users/davey/src/php- 5.4.0RC5/sapi/cli/php_cli.c:983 #14 0x0001002ff3e5 in main (argc=1606417184, argv=0x0) at php_cli.c:1356 -- Edit this bug report at https://bugs.php.net/bug.php?id=60683&edit=1
[PHP-BUG] Bug #60911 [NEW]: Confusing error message when extending traits
From: davey Operating system: OSX 10.7.2 PHP version: 5.4.0RC6 Package: *General Issues Bug Type: Bug Bug description:Confusing error message when extending traits Description: While I know it should not be possible to have a trait extend another trait, the error message is confusing, stating that you are trying to extend a class. I understand that "use" is the correct answer to the problem the script is trying to solve. Test script: --- https://bugs.php.net/bug.php?id=60911&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60911&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60911&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60911&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60911&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60911&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60911&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60911&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60911&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60911&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60911&r=support Expected behavior: https://bugs.php.net/fix.php?id=60911&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60911&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60911&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60911&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60911&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=60911&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60911&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60911&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60911&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60911&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60911&r=mysqlcfg