Edit report at http://bugs.php.net/bug.php?id=53630&edit=1

 ID:                 53630
 Updated by:         dtajchre...@php.net
 Reported by:        jo at feuersee dot de
 Summary:            optional prompt argument is treated as non-optional
-Status:             Open
+Status:             Verified
 Type:               Bug
 Package:            Readline related
 Operating System:   Linux
 PHP Version:        5.3.4
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2010-12-30 00:38:08] jo at feuersee dot de

Description:
------------
The readline functions prompt argument is supposed to be optional. But
omitting it raises a PHP warning.

Test script:
---------------
php -r 'printf("%s\n", readline());'



Replace single and double quotes vice versa for Win platform

Actual result:
--------------
PHP Warning:  readline() expects exactly 1 parameter, 0 given in Command
line code on line 1




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



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

Reply via email to