php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43307 compiled php CLI does not show interactive prompt
Submitted: 2007-11-15 21:05 UTC Modified: 2007-11-16 17:03 UTC
From: keith at karsites dot net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.5 OS: Fedora 8
Private report: No CVE-ID: None
 [2007-11-15 21:05 UTC] keith at karsites dot net
Description:
------------
$ php -a does not show a command prompt

Reproduce code:
---------------
Here is a url to a tar.gz file containing the php executable, my config.nice file, a screenshoot of what php -a does (or doesn't do), and the full output from php -i saved to a text file.

http://www.karsites.net/bug-reports-php/php-5.2.5-bug.tar.gz


Expected result:
----------------
I expect php -a to output a command prompt so I can use php 
interactively in a shell.


Actual result:
--------------
Please see the screenshot in the .png file inside the 
php-5.2.5-bug.tar.gz file


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-15 21:10 UTC] keith at karsites dot net
New URL for the same bug report:

http://www.karsites.net/bug-reports-php/php-5.2.5-bug-43307.tar.gz
 [2007-11-16 11:38 UTC] jani@php.net
Those urls don't work. What was the configure line you used?
(I tested and php -a works just fine for me)
 [2007-11-16 13:06 UTC] johannes@php.net
You have to compile PHP with --with-readline configure switch for the interactive mode.
 [2007-11-16 15:52 UTC] keith at karsites dot net
#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs2=/usr/local/apache-2.2.6/bin/apxs' \
'--prefix=/usr/local/php-5.2.5' \
'--bindir=/usr/local/bin' \
'--enable-shared=all' \
'--with-pear=/usr/local/PEAR' \
'--with-mysql=shared' \
'--with-mysql-sock=/var/lib/databases/mysql/mysql.sock' \
'--with-mysqli=shared' \
'--with-pgsql=/usr/local/postgresql-8.2.5/bin' \
'--with-xsl' \
'--with-zlib-dir=/usr/include' \
"$@"

What error message did you get when trying to access the URL's?

I checked from my laptop, but that is allowed to access my web 
server in httpd.conf
 [2007-11-16 17:01 UTC] johannes@php.net
As said before: You ave to use --witreadlien to get the interative shell mode.
 [2007-11-16 17:03 UTC] johannes@php.net
--with-readline that was (hm, my keyboard seems to be broken)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 18 18:00:02 2025 UTC