#26168 [Opn]: phpize changes don't check for execute status on shtool

From: Date: Fri, 07 Nov 2003 22:13:55 +0000
Subject: #26168 [Opn]: phpize changes don't check for execute status on shtool
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50133@lists.php.net to get a copy of this message
ID: 26168 User updated by: robbat2 at gentoo dot org Reported By: robbat2 at gentoo dot org Status: Open Bug Type: *Compile Issues Operating System: Gentoo Linux PHP Version: 4.3.4 New Comment: Patch that fixes phpize: --- php-4.3.4/./scripts/phpize.in.old 2003-11-07 14:20:41.000000000 -0800 +++ php-4.3.4/./scripts/phpize.in 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 Previous Comments: ------------------------------------------------------------------------ [2003-11-07 17:09:08] robbat2 at gentoo dot org Description: ------------ 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26168&edit=1

« previous php.bugs (#50133) next »