#47468 [Opn]: enable readline for embed sapi
| From: | jani@php.net | Date: | Mon, 23 Feb 2009 16:44:52 +0000 |
| Subject: | #47468 [Opn]: enable readline for embed sapi | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-134132@lists.php.net to get a copy of this message | ||
ID: 47468
Updated by: jani@php.net
Reported By: admin at mateuszjanowski dot pl
Status: Open
Bug Type: Feature/Change Request
Operating System: Ubuntu 8.10 Linux
PHP Version: 5.2.8/5.2.9RC2
New Comment:
This is not a bug but feature/change request, emphasis on "change".
Previous Comments:
------------------------------------------------------------------------
[2009-02-23 16:12:09] admin at mateuszjanowski dot pl
Category and Version updated.
------------------------------------------------------------------------
[2009-02-23 14:16:38] paul dot biggar at gmail dot com
Here is the context:
http://www.phpcompiler.org/lists/phc-general/2009-February/000907.html
I would mark this as a bug, not a feature request. The readline
functions are not available in the embed SAPI. However, there is no
reason that it should be impossible for an embed user to have access to
readline.
------------------------------------------------------------------------
[2009-02-21 17:47:26] admin at mateuszjanowski dot pl
Description:
------------
Hello, is my first bug report;
I'm using php compiler (phc - http://www.phpcompiler.org/) with php CLI
[5.2.8]. I meet first problem when i started to use readline extension.
I compiled php with '--with readline' is working ok but when i compile
my program using phc i get;
'Fatal error: status(): Call to undefined function readline() in
rcon.php on line 52'.
The phc author tell me to do;
"I would recommend filing a bug with PHP, asking for the readline
extension to be included in the embed SAPI. It seems like an oversight
rather than a feature. In addition, it might be straightforward to
create a patch to fix this yourself. I took a quick look at this, but
I couldn't find where to do this. You might have more luck."
Btw i compiled PHP 5.2.9RC2 version and getting the same error.
Mabye you can help me?
Greetings Mateusz Janowski.
Reproduce code:
---------------
http://mateuszjanowski.pl/rcon.phps
Expected result:
----------------
0.2 Alpha - www.torvalds.pl
Remote Console: IP:PORT...
Rcon: <You write here commands which is send to the server.>
Actual result:
--------------
When i run php -f rcon.php is working OK but after compiling nope;
0.2 Alpha - www.torvalds.pl
Remote Console: IP:PORT...
Fatal error: status(): Call to undefined function readline() in
rcon.php on line 52
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47468&edit=1