Bug 1021696

Summary: pear is broken
Product: OpenShift Online Reporter: Hiro Asari <hasari>
Component: ContainersAssignee: Hiro Asari <hasari>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: cdaley, hasari, jkeck
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hiro Asari 2013-10-21 20:07:56 UTC
Description of problem:
As of devenv_3923, 'pear' can write a bad registry file to user installation of a PEAR module, and break the user app.

Version-Release number of selected component (if applicable):
devenv_3923

How reproducible:

Steps to Reproduce:
rhc app create p php-5.3
rhc app ssh p
$ pear install --alldeps Mail
$ pear list Mail

Actual results:
PHP Notice:  unserialize(): Error at offset 7700 of 12711 bytes in /usr/share/pear/PEAR/Registry.php on line 1145
PHP Stack trace:
PHP   1. {main}() /usr/share/pear/pearcmd.php:0
PHP   2. PEAR_Command_Common->run() /usr/share/pear/pearcmd.php:305
PHP   3. PEAR_Command_Registry->doList() /usr/share/pear/PEAR/Command/Common.php:271
PHP   4. PEAR_Command_Registry->doFileList() /usr/share/pear/PEAR/Command/Registry.php:146
PHP   5. PEAR_Registry->getPackage() /usr/share/pear/PEAR/Command/Registry.php:278
PHP   6. PEAR_Registry->_getPackage() /usr/share/pear/PEAR/Registry.php:1962
PHP   7. PEAR_Registry->_packageInfo() /usr/share/pear/PEAR/Registry.php:1443
PHP   8. unserialize() /usr/share/pear/PEAR/Registry.php:1145


Expected results:
[p2-fooooooooooo.dev.rhcloud.com 5265880a6777e3d6ff000005]\> pear list Mail
INSTALLED FILES FOR MAIL
========================
TYPE INSTALL PATH
php  /var/lib/openshift/5265880a6777e3d6ff000005/php/phplib/pear/pear/php/Mail/mail.php
php  /var/lib/openshift/5265880a6777e3d6ff000005/php/phplib/pear/pear/php/Mail/mock.php
php  /var/lib/openshift/5265880a6777e3d6ff000005/php/phplib/pear/pear/php/Mail/null.php
⋮

Additional info:

Comment 1 Hiro Asari 2013-10-21 20:10:09 UTC
*** Bug 1020011 has been marked as a duplicate of this bug. ***

Comment 2 Hiro Asari 2013-10-21 20:25:47 UTC
[root@ip-10-168-47-32 ~]# rpm -qf `which pear`
php-pear-1.9.4-4.el6.noarch

Troy, could you work on a new version of RPM with a newer version of pear?

Comment 3 Hiro Asari 2013-10-21 20:53:07 UTC
This is not necessary.

bin/control in the PHP cart is breaking the registry file.

Comment 4 Hiro Asari 2013-10-21 20:53:07 UTC
This is not necessary.

bin/control in the PHP cart is breaking the registry file.