|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26168 phpize changes don't check for execute status on shtool
Submitted: 2003-11-07 17:09 UTC Modified: 2003-11-09 23:32 UTC
From: robbat2 at gentoo dot org Assigned:
Status: Closed Package: *Compile Issues
PHP Version: 4.3.4 OS: Gentoo Linux
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.
Bug Type:
From: robbat2 at gentoo dot org
New email:
PHP Version: OS:


 [2003-11-07 17:09 UTC] robbat2 at gentoo dot org
phpize as of 4.3.4 does NOT check that $builddir/build/shtool is executable before it tries to run it.

Reproduce code:
1. unpack any source based php extension (I used turck-mmcache-2.4.6)
2. ensure that your /usr/lib/php/build/shtool does NOT have execute set.
3. in the new dir, run phpize.

Expected result:
should complete correctly.

phpize should set shtool to be executable before it tries to run it, or at the very least it should check if it is executable.

Actual result:
you get this error:
/usr/bin/phpize: line 1: /var/tmp/portage/turck-mmcache-2.4.6/work/turck-mmcache-2.4.6/build/shtool: Permission denied
/usr/bin/phpize: line 61: -f: command not found


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-07 17:13 UTC] robbat2 at gentoo dot org
Patch that fixes phpize:
--- php-4.3.4/./scripts/   2003-11-07 14:20:41.000000000 -0800
+++ php-4.3.4/./scripts/       2003-11-07 14:21:07.000000000 -0800
@@ -57,6 +57,7 @@
 aclocal || exit 1
 autoconf || exit 1
 autoheader || exit 1
+test -x $builddir/build/shtool || chmod +x $builddir/build/shtool
 libtoolize=`$builddir/build/shtool path glibtoolize libtoolize`
 $libtoolize -f -c || exit 1
 [2003-11-07 21:21 UTC] robbat2 at gentoo dot org
i do realize that /usr/lib/build/* will have the execute bits set on them if the install-build make target has been used, but the purpose of this patch is to
 [2003-11-09 23:32 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Mar 29 01:03:40 2023 UTC