ID: 40841 Updated by: [EMAIL PROTECTED] Reported By: lovan at lifesci dot ucsb dot edu -Status: Open +Status: Assigned Bug Type: Unknown/Other Function Operating System: Solaris 10 PHP Version: 5.2.1 Assigned To: iliaa
Previous Comments: ------------------------------------------------------------------------ [2007-03-20 16:41:24] lovan at lifesci dot ucsb dot edu 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. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/40841 -- Edit this bug report at http://bugs.php.net/?id=40841&edit=1