php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70254 5.5.28 compile fails on illumos
Submitted: 2015-08-12 21:32 UTC Modified: 2018-04-11 18:39 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: peter dot tribble at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.5.28 OS: Solaris
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: peter dot tribble at gmail dot com
New email:
PHP Version: OS:

 

 [2015-08-12 21:32 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-13 20:29 UTC] truniger at bluewin dot ch
Reverting the change to main/php_open_temporary_file.c seems to also solve my problem from #70212
 [2015-12-07 02:13 UTC] 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
 [2018-04-09 21:59 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2018-04-09 21:59 UTC] cmb@php.net
Sorry for the late reply!

Does this error still occur with actively supported PHP
versions[1]?

[1] <http://www.php.net/supported-versions.php>
 [2018-04-11 18:03 UTC] peter dot tribble at gmail dot com
I still see the failure for the latest 5.6, but 7 and up seem fine.

Given the circumstances, I can happily live with reverting 70002 in my own builds.
 [2018-04-11 18:39 UTC] cmb@php.net
-Status: Feedback +Status: Closed
 [2018-04-11 18:39 UTC] cmb@php.net
> Given the circumstances, I can happily live with reverting 70002
> in my own builds.

Fine!  So I'm closing this ticket.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 00:01:30 2024 UTC