Bug #80253 [Opn->Fbk]: Community PHP does nothing on IBM i 7.4
Edit report at https://bugs.php.net/bug.php?id=80253&edit=1
ID: 80253
Updated by: requinix@php.net
Reported by: softwoehr at gmail dot com
Summary: Community PHP does nothing on IBM i 7.4
-Status: Open
+Status: Feedback
Type: Bug
-Package: Output Control
+Package: *General Issues
Operating System: IBM i 7.4
PHP Version: 7.3.23
Block user comment: N
Private report: N
New Comment:
Install the readline extension.
> driveway@Common1:/$ echo 'echo "foo";' | php
> echo "foo";
Input from stdin is not PHP code like it is in -a mode. You need a <?php.
Previous Comments:
------------------------------------------------------------------------
[2020-10-18 03:53:20] rtrtrtrtrt at dfdfdfdf dot dfd
"php -m" is pretty sure missing "readline" extension
------------------------------------------------------------------------
[2020-10-18 03:47:20] softwoehr at gmail dot com
Description:
------------
After installing community edition for IBM i ppc64 from Zend repo via yum, (software is installed,
but does not operate correctly.
- yum install 'php*' from http://repos.zend.com/ibmiphp/
- follow instructions on https://odbcphp.k3s.com/ and copy
/QOpenSys/etc/php.ini to /QOpenSys/etc/php/php.ini
- Check all the modules are mentioned in /QOpenSys/etc/php/conf.d
- Try it out
NOTE that the version offered from Zend repo is as follows:
$ php --version
PHP 7.3.14 (cli) (built: Jan 30 2020 07:25:43) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies
Test script:
---------------
Sample session:
driveway@Common1:~$ chroot /QOpenSys/jwoehr
driveway@Common1:/$ php -a
Interactive mode enabled
echo "foo";
echo "foo";
driveway@Common1:~$ chroot /QOpenSys/jwoehr
driveway@Common1:/$ echo 'echo "foo";' | php
echo "foo";
driveway@Common1:/$
Expected result:
----------------
Expect conventional php interactive behavior.
Actual result:
--------------
Does not hang, but does not operate.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80253&edit=1
Thread (8 messages)