Bug #53630 [Ver->Csd]: optional prompt argument is treated as non-optional
| From: | iliaa@php.net | Date: | Mon, 10 Jan 2011 18:19:07 +0000 |
| Subject: | Bug #53630 [Ver->Csd]: optional prompt argument is treated as non-optional | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157802@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53630&edit=1
ID: 53630
Updated by: iliaa@php.net
Reported by: jo at feuersee dot de
Summary: optional prompt argument is treated as non-optional
-Status: Verified
+Status: Closed
Type: Bug
Package: Readline related
Operating System: Linux
PHP Version: 5.3.4
-Assigned To:
+Assigned To: iliaa
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2011-01-10 19:19:03] iliaa@php.net
Automatic comment from SVN on behalf of iliaa
Revision: http://svn.php.net/viewvc/?view=revision&revision=307343
Log: Fixed bug #53630 (Fixed parameter handling inside readline()
function).
------------------------------------------------------------------------
[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