FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » repair SUSE php5 -a
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: repair SUSE php5 -a [message #176638 is a reply to message #176637] Thu, 12 January 2012 18:06 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 12.01.2012 18:45, schrieb "Álvaro G. Vicario":
> El 12/01/2012 18:33, M. Strobel escribió/wrote:
>> Am 12.01.2012 18:03, schrieb M. Strobel:
>>> Am 12.01.2012 17:56, schrieb "Álvaro G. Vicario":
>>>> El 12/01/2012 17:19, M. Strobel escribió/wrote:
>>>> > Am 12.01.2012 16:46, schrieb "Álvaro G. Vicario":
>>>> >> El 12/01/2012 13:09, M. Strobel escribió/wrote:
>>>> >>> On suse linux "php5 -a" has (always?) been broken.
>>>> >>>
>>>> >>> Compare it to Ubuntu "php5 -a" if you don't know what I mean.
>>>> >>>
>>>> >>> Can it be repaired?
>>>> > --cut
>>>> >
>>>> >> You assume that most people here have both a SuSE and an Ubuntu box at hand but I
>>>> >> don't think that's the case (not at least mine). Perhaps you could explain what
>>>> >> the
>>>> >> problem is.
>>>> >>
>>>> >
>>>> > Es algo esencial en mi opinión. It helps you just do tests interactively.
>>>> >
>>>> > SUSE:
>>>> > --------------------------
>>>> > strobel@s114-intel:~> php5 -a
>>>> > Interactive mode enabled
>>>> >
>>>> > <?php echo "hallo";
>>>> > exit
>>>> > ;
>>>> > ^C
>>>> > strobel@s114-intel:~>
>>>> > --------------------------
>>>> > Ubuntu:
>>>> > --------------------------
>>>> > strobel@u-s-dev1:~$ php5 -a
>>>> > Interactive shell
>>>> >
>>>> > php> echo "hi there";
>>>> > hi there
>>>> > php> exit
>>>> > strobel@u-s-dev1:~$
>>>> > --------------------------
>>>>
>>>> Alright, that looks like missing "readline" feature, so my guess was sort of
>>>> correct :)
>>>>
>>>> > The problem might just be a config thing.
>>>>
>>>> First of all, please check whether phpinfo() displays "--with-readline" as I
>>>> suggested.
>>>
>>> Your link to php.net gave me this idea immediately. But it is not the problem, "php5
>>> -m" shows the compiles modules (called "extensions" by some), readline is there.
>>>
>>> Now the problem could be a missing readline in the system, but no:
>>>
>>> strobel@s114-intel:~> rpm -qa | grep readline
>>> php5-readline-5.3.5-5.16.1.x86_64
>>> readline-doc-6.1-18.25.1.noarch
>>> libreadline6-6.1-18.25.1.x86_64
>>> readline-devel-6.1-18.25.1.x86_64
>>>
>>> More suggestions?
>>>
>>> /Str.
>>>
>>
>> I have been annoyed by this a long time, but never solved it.
>>
>> I think I found it finally at
>> http://forums.opensuse.org/english/get-technical-help-here/applications/458 753-opensuse-11-4-php5-interactive-readline-not-working.html
>>
>>
>> The problem is the linux readline library, not to be confounded with the readline
>> extension of php5 which gives you script access to line editing. And the linux lib
>> must be compiled in. So a recompile should solve it.
>
> That's what I was trying to say from the beginning: you need PHP compiled with the
> "--with-readline" option. If it's not, you may need to recompile from sources.
>
> Running "php5 -m" displays the GNU Readline extension, which is cool to write command
> line scripts in PHP but isn't directly related to the command line interpreter
> (written in C).
>
> However, the readline extension needs the "--with-readline" option as well:
>
> http://es.php.net/manual/en/readline.installation.php
>
> So if you already have it installed, I'm not sure why php -a is not aware of it. It'd
> be cool to see if "--with-readline" shows up in phpinfo() but I don't think it'll
> happen.

Interesting. Readline only shows up in phpinfo() if run from the command line - which
makes sense. Different ini files.

And indeed, there seems to be no way to see the compile options. And php readline
needs gnu readline? This would make it a bug.

/Str.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: is PHP phar used?
Next Topic: this is my code i am not getting images throuh php script
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 18:51:29 GMT 2024

Total time taken to generate the page: 0.03795 seconds