Bug #70254 [Opn->Fbk]: 5.5.28 compile fails on illumos
| From: | cmb@php.net | Date: | Mon, 09 Apr 2018 21:59:12 +0000 |
| Subject: | Bug #70254 [Opn->Fbk]: 5.5.28 compile fails on illumos | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214672@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70254&edit=1
ID: 70254
Updated by: cmb@php.net
Reported by: peter dot tribble at gmail dot com
Summary: 5.5.28 compile fails on illumos
-Status: Open
+Status: Feedback
Type: Bug
Package: Compile Failure
Operating System: Solaris
PHP Version: 5.5.28
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Sorry for the late reply!
Does this error still occur with actively supported PHP
versions[1]?
[1] <http://www.php.net/supported-versions.php>
Previous Comments:
------------------------------------------------------------------------
[2015-12-07 02:13:59] sj2002cn at 163 dot com
namespace bug
php.php code:
<?php
namespace apps\test;
$i = __NAMESPACE__;
index.php code:
<?php
namespace index;
include 'php.php';
echo $i;
resule:
apps\test
------------------------------------------------------------------------
[2015-08-13 20:29:42] truniger at bluewin dot ch
Reverting the change to main/php_open_temporary_file.c seems to also solve my problem from #70212
------------------------------------------------------------------------
[2015-08-12 21:32:29] peter dot tribble at gmail dot com
Description:
------------
Compiling 5.5.28 on illumos (OpenSolaris derivative, with gcc 4.8.3) fails with
[...]
Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be
enabled.
Makefile:345: recipe for target 'ext/phar/phar.phar' failed
gmake: *** [ext/phar/phar.phar] Illegal Instruction (core dumped)
Previous versions compile successfully. The culprit appears to be #70002 - reverting the change to
main/php_open_temporary_file.c allows compilation to succeed without any issues.
Actual result:
--------------
Head of the stacktrace:
(gdb) bt
#0 0x0837b602 in php_get_temporary_directory (tsrm_ls=0x89e3ea0)
at /export/home/ptribble/ud/php-5.5.28/main/php_open_temporary_file.c:251
#1 0x0837b762 in php_open_temporary_file (dir=0x0, pfx=0x8939799 "php",
opened_path_p=0x80460ac, tsrm_ls=0x0)
at /export/home/ptribble/ud/php-5.5.28/main/php_open_temporary_file.c:313
#2 0x0837b80a in php_output_handler_compat_func (handler_context=0x0,
output_context=0x8939799)
at /export/home/ptribble/ud/php-5.5.28/main/output.c:1293
#3 0x0838b2ff in _php_stream_fopen_from_fd (fd=0,
mode=0x89e3ea0 "\310|\267\b&", persistent_id=0x0, tsrm_ls=0x0)
at /export/home/ptribble/ud/php-5.5.28/main/streams/plain_wrapper.c:241
#4 0x08272a61 in phar_flush (phar=0x8c4b854,
user_stub=0x8c4cd40 "#!/opt/tribblix/php/bin/php\n<?php if
(!class_exists('PHP_Archive')) {\n?><?php\n}\nif (!in_array('phar',
stream_get_wrappers())) {\n\tstream_wrapper_register('phar',
'PHP_Archive');\n}\nif (!class_exists('Ph"...,
len=144588466, convert=0, error=0x8046204, tsrm_ls=0x89e3ea0)
at /export/home/ptribble/ud/php-5.5.28/ext/phar/phar.c:2686
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70254&edit=1