Bug #80253 [Fbk->Opn]: Community PHP does nothing on IBM i 7.4

From: Date: Sun, 18 Oct 2020 04:47:54 +0000
Subject: Bug #80253 [Fbk->Opn]: Community PHP does nothing on IBM i 7.4
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229712@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80253&edit=1

 ID:                 80253
 User updated by:    softwoehr at gmail dot com
 Reported by:        softwoehr at gmail dot com
 Summary:            Community PHP does nothing on IBM i 7.4
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   IBM i 7.4
 PHP Version:        7.3.23
 Block user comment: N
 Private report:     N

 New Comment:

Yes, you're right, d'oh,

 echo '<?php echo "foo";' | php 

works.

and php -m doesn't reveal a readline module


Previous Comments:
------------------------------------------------------------------------
[2020-10-18 04:08:36] requinix@php.net

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.

------------------------------------------------------------------------
[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)

« previous php.bugs (#229712) next »