ID:               40841
 User updated by:  lovan at lifesci dot ucsb dot edu
 Reported By:      lovan at lifesci dot ucsb dot edu
-Status:           Feedback
+Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: Solaris 10
 PHP Version:      5.2.1
 Assigned To:      iliaa
 New Comment:

I'm saying that the 5.2.0 unpack core dumped under GCC 4.1.2 on Solaris
10 but worked on Solaris 10 if compiled using the Sun C compiler.

I'm also saying that the 5.2.1 unpack reports spurious errors instead
of core dumping (regardless of compiler) on Solaris 10.


Previous Comments:
------------------------------------------------------------------------

[2007-03-20 14:57:41] [EMAIL PROTECTED]

so you are saying that PHP 5.2.0 worked fine on Solaris 10, but PHP 
5.2.1 doesn't?  The phar did not change between PHP 5.2.0 and PHP 
5.2.1.

That sounds like a regression in unpack(), not a phar issue.

Changing to feedback to confirm that I understand the user's last 
comment, and re-assigning to tony, with the assumption that it is an 
unpack() regression

------------------------------------------------------------------------

[2007-03-19 19:17:01] lovan at lifesci dot ucsb dot edu

Update: I tried compiling 5.2.0 to see if I could narrow the problem.

First I compiled it using GCC 4.1.2 (CFLAGS="-m64 -mcpu=v9").  When
this binary attempted to unpack the phar archives, it segfaulted.

I then compiled it using SunPro CC (CFLAGS="-xtarget=ultra -xarch=v9b
-xcode=pic32").  This compiled and installed cleanly though it fails
many more pieces of a "make test".

------------------------------------------------------------------------

[2007-03-18 00:30:18] lovan at lifesci dot ucsb dot edu

Upgrade to GCC 4.1.2 does *not* resolve the issue.  The issue tracks
across compilers (now four of them).  Something in the codebase changed
between 5.1.6 and 5.2.1 (I haven't tried the intermediate releases)
fouling up the compile of a 64-bit binary.


Here is a sample of the error set from PHP 5.2.1 compiled under gcc
4.1.2:
-------------

Warning: unpack(): Type V: not enough input, need 4, have 0 in
/home/stf/lovan/build/php-5.2.1/pear/install-pear-nozlib.phar on line
376

Warning: array_values(): The argument should be an array in
/home/stf/lovan/build/php-5.2.1/pear/install-pear-nozlib.phar on line
376

Notice: Undefined offset:  2 in
/home/stf/lovan/build/php-5.2.1/pear/install-pear-nozlib.phar on line
379

Fatal error: Error: "index.php" is not a file in phar "" in
/home/stf/lovan/build/php-5.2.1/pear/install-pear-nozlib.phar on line
411

------------------------------------------------------------------------

[2007-03-17 10:11:36] [EMAIL PROTECTED]

Please use GCC 4.1.2.

------------------------------------------------------------------------

[2007-03-17 04:23:12] lovan at lifesci dot ucsb dot edu

Description:
------------
A "gmake install" fails with unpack errors when PHP is compiled as a
64-bit module for Apache 2.2.4 and 2.2.3 running on Solaris 10 (sparc). 
I've tried three different compilers (GCC 3.4.3 and 4.1.1 and SunPro CC)
and get the same result so it seems unlikely to be a compiler problem.

The problem does *not* appear in PHP 5.1.6 but is evident in both 5.2.1
and the 20070316 5.2 snapshot.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40841&edit=1

Reply via email to