Bug #18462: php -c /path/to/different/php.ini doesn't work

From: Date: Sun, 21 Jul 2002 19:34:43 +0000
Subject: Bug #18462: php -c /path/to/different/php.ini doesn't work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14752@lists.php.net to get a copy of this message
From: ceo@l-i-e.com Operating system: RedHat 6.2 PHP version: 4.2.1 PHP Bug Type: PHP options/info functions Bug description: php -c /path/to/different/php.ini doesn't work The following weekly cron job worked fine until a recent upgrade/install of PHP 4.2.1 using: ./configure \ --enable-calendar \ --enable-bcmath \ --with-jpeg-dir \ --with-png-dir=/usr/local \ --with-tiff-dir \ --enable-ftp \ --with-gd=/usr/local \ --enable-gd-imgstrttf \ --with-ttf \ --with-freetype-dir=/usr/local \ --with-t1lib \ --with-imap \ --with-ldap \ --with-pgsql \ --with-mysql=/usr/src/mysql \ --disable-debug \ --with-kerberos \ --with-imap-ssl \ --with-pdflib \ --with-swf=/usr/src/libswf \ --with-xmlrpc=/usr/local \ --with-expat-dir=/usr/local \ --with-dom \ --with-zlib \ --enable-sockets ./harvest.php X-Powered-By: PHP/4.2.1^M Content-type: text/html^M ^M <br /> <b>Fatal error</b>: Failed opening required 'connect.inc' (include_path='.:/usr/local/lib/php') in <b>/home/www/pocketguide/cron/harvest.php</b> on line <b>6</b><br /> head ./harvest.php #!/usr/bin/php -c /home/pocketguide/php.ini -q <?php /* harvest.php Automatically harvest performers and dates from venue web-sites */ require 'connect.inc'; require 'publication.inc'; grep include_path /home/pocketguide/php.ini include_path = "./:/home/pocketguide/include/" ; UNIX: "/path1:/path2" Windows: "\path1;\path2" In essence, it would appear that the "-c" option is no longer working. -- Edit bug report at http://bugs.php.net/?id=18462&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18462&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18462&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18462&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18462&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18462&r=support Expected behavior: http://bugs.php.net/fix.php?id=18462&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18462&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18462&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18462&r=globals

« previous php.bugs (#14752) next »