From:             admin at mateuszjanowski dot pl
Operating system: Ubuntu 8.10 Linux
PHP version:      5.2.8
PHP Bug Type:     CGI related
Bug description:  Readline extension in embed sapi?

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 bug report at http://bugs.php.net/?id=47468&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47468&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47468&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47468&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47468&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47468&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47468&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47468&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47468&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47468&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47468&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47468&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47468&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47468&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47468&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47468&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47468&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47468&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47468&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47468&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47468&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47468&r=mysqlcfg

Reply via email to