[PHP-BUG] Bug #71234 [NEW]: INI files are loaded even invoked as -n --version
[email protected] ("miloslav dot hula at gmail dot com")
| Newsgroups | php.bugs |
|---|---|
| Message-ID | <[email protected]> |
From: miloslav dot hula at gmail dot com
Operating system:
PHP version: 7.0.1
Package: phpdbg
Bug Type: Bug
Bug description:INI files are loaded even invoked as -n --version
Description:
------------
phpdbg tries to load `php.ini` files when invoked as `-n --version`.
Actual result:
--------------
open("./php-phpdbg.ini", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/home/milo/bin/php-bin/7.0.0/lib/php-phpdbg.ini", O_RDONLY) = -1
ENOENT (No such file or directory)
open("./php.ini", O_RDONLY) = 4
# When you have php.ini in CWD, it can lead to unexpected errors like
$ /home/milo/php/phpdbg-7.0.1 -n --version
Xdebug requires Zend Engine API version 220131226.
The Zend Engine API version 320151012 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later
version of Xdebug.
phpdbg 0.5.0 (built: Dec 29 2015 08:49:43)
PHP 7.0.1, Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
--
Edit bug report at https://bugs.php.net/bug.php?id=71234&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71234&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71234&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71234&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71234&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71234&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71234&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71234&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71234&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71234&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71234&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71234&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71234&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71234&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71234&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71234&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71234&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71234&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71234&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71234&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71234&r=mysqlcfg