|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-22 09:25 UTC] eru@php.net
Description:
------------
pear build/install will fail with almost every PECL out there, because of two misplaced !s.
Diff:
--- Builder.php.orig Fri Aug 22 10:57:54 2003
+++ Builder.php Fri Aug 22 16:21:47 2003
@@ -201,8 +201,7 @@
$err = $this->_runCommand("phpize", array(&$this, 'phpizeCallback'));
if (PEAR::isError($err)) {
return $err;
- }
- if (!$err) {
+ } elseif ($err) {
return $this->raiseError("`phpize' failed");
}
@@ -255,8 +254,7 @@
if (PEAR::isError($err)) {
chdir($old_cwd);
return $err;
- }
- if (!$err) {
+ } elseif ($err) {
chdir($old_cwd);
return $this->raiseError("`$cmd' failed");
}
So either we have a PHP_Error, or some error-code is in $err, or everything is fine and the show can go on...
With this patch it works again...
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 04:00:02 2025 UTC |
Just to keep it alive and give some more information, my php-configure line is as follows: ./configure \ --enable-bcmath \ --enable-calendar \ --enable-debug \ --enable-exif \ --enable-ftp \ --enable-mbstring \ --enable-memory-limit \ --enable-pcntl \ --enable-shmop \ --enable-sigchild \ --enable-ucd-snmp-hack \ --enable-sockets \ --enable-sysvmsg \ --enable-sysvsem \ --enable-sysvshm \ --with-apxs=/usr/local/apache/bin/apxs \ --with-bz2 \ --with-gd \ --with-freetype-dir \ --with-gettext \ --with-ldap \ --with-mysql=/usr \ --with-mysql-sock=/var/lib/mysql/ \ --with-ncurses \ --with-snmp \ --with-xml \ --with-zlib It still fails with pear 1.3b1.