php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71007 phar.php: unexpected '/' on line 20
Submitted: 2015-12-01 12:42 UTC Modified: 2020-12-20 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: cyrus at safe-mail dot net Assigned: cmb (profile)
Status: No Feedback Package: Compile Failure
PHP Version: 7.0.0RC8 OS: Solaris 11 sparc
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cyrus at safe-mail dot net
New email:
PHP Version: OS:

 

 [2015-12-01 12:42 UTC] cyrus at safe-mail dot net
Description:
------------
Generating phar.php
Generating phar.phar

Parse error: syntax error, unexpected '/' in <path>/php-7.0.0RC8-70999-71006/ext/phar/phar.php on line 20
*** Error code 255
The following command caused the error:
`  if test -x "<path>/php-7.0.0RC8-70999-71006/sapi/cli/php"; then  <path>/php-7.0.0RC8-70999-71006/build/shtool echo -n -- "<path>/php-7.0.0RC8-70999-71006/sapi/cli/php -n";  if test "x" != "x"; then  <path>/php-7.0.0RC8-70999-71006/build/shtool echo -n -- " -d extension_dir=<path>/php-7.0.0RC8-70999-71006/modules";  for i in bz2 zlib phar; do  if test -f "<path>/php-7.0.0RC8-70999-71006/modules/$i.la"; then  . <path>/php-7.0.0RC8-70999-71006/modules/$i.la; <path>/php-7.0.0RC8-70999-71006/build/shtool echo -n -- " -d extension=$dlname";  fi;  done;  fi;  else  <path>/php-7.0.0RC8-70999-71006/build/shtool echo -n -- "<path>/php-7.0.0RC8-70999-71006/sapi/cli/php";  fi;` -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' ext/phar/phar.php pack -f ext/phar/phar.phar -a pharcommand -c auto -x \\.svn -p 0 -s <path>/php-7.0.0RC8-70999-71006/ext/phar/phar/phar.php -h sha1 -b "`<path>/php-7.0.0RC8-70999-71006/build/shtool echo -n -- "/home/bea/nightly_httpd/workspace/sun4u_64/tempbuilds/php/oracle/bin/php";`"  <path>/php-7.0.0RC8-70999-71006/ext/phar/phar/
make: Fatal error: Command failed for target `ext/phar/phar.phar'


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-01 12:45 UTC] cyrus at safe-mail dot net
occurred while compile php-7.0.0RC8 on Solaris 11 Sparc with two patches included:
https://bugs.php.net/bug.php?id=70999
https://bugs.php.net/bug.php?id=71006
 [2015-12-01 12:53 UTC] nikic@php.net
Does sapi/cli/php -P run-tests.php Zend/ generate any failures?

If the phar doesn't build, it's probably a broken PHP build, but it's likely easier to debug it using something else.
 [2015-12-01 13:11 UTC] cyrus at safe-mail dot net
It seems Zend build works well with added patch:
https://bugs.php.net/bug.php?id=71006

Probably, something went wrong?
 [2015-12-01 14:14 UTC] cyrus at safe-mail dot net
There is no augment '-P' in sapi/cli/php.
Did you mean '-F'?

---------
> sapi/cli/php -f run-tests.php Zend/
Bus Error (core dumped)
---------
> sapi/cli/php -F run-tests.php Zend/
(no output, script didn't finish)
---------
> sapi/cli/php -v
PHP 7.0.0RC8 (cli) (built: Dec  1 2015 14:48:58) ( ZTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
---------

This issue is not really important for us. We did not use PHP on Solaris Sparc any more, but all Builds (RHEL 6/7, Solaris 11 x86/sparc) run with the same configuration.
 [2015-12-01 15:24 UTC] nikic@php.net
Sorry, I meant "sapi/cli/php run-tests.php -P Zend/", which is really just "make test". Can you get a stack trace on the bus error you're seeing? E.g. using "valgrind sapi/cli/php run-tests.php -P".
 [2015-12-04 10:48 UTC] cyrus at safe-mail dot net
Sorry, I tried to generate a dump without success.
ulimit is set, but there is no dump generated.
valgrind is not installed on this server and I am only user.

-----------
> sapi/cli/php run-tests.php -P Zend/
Bus Error (core dumped)
-----------

Maybe it's cause of the last Zend patch:
https://bugs.php.net/bug.php?id=71006

I will try to compile with PHP7 final release...
 [2020-12-07 14:06 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2020-12-07 14:06 UTC] cmb@php.net
Is this still an issue with any of the actively supported PHP
versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2020-12-20 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2021-05-07 12:14 UTC] bemey31696 at drluotan dot com
I had the exact same issue on Solaris 11.4

Turned out the sticky bit was missing on /var/tmp

So it should be:

$ ls -ld /var/tmp
drwxrwxrwt   3 root     root           7 May  7 12:10 /var/tmp

Once I set the permissions above the "make" completed. Seems the "pharcmd" in the Makefile needs to create a temp file in there.  Hope this helps.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 13:01:30 2024 UTC