From:             jean dot bruenn at ip-minds dot de
Operating system: Linux (2.6.x Kernel) SMP
PHP version:      5.2.2
PHP Bug Type:     *Configuration Issues
Bug description:  config-scan-dir and config-path will load the same php.ini 
twice.

Description:
------------
btw. it does not matter WHICH php Version - i had this problems with older
version of php5 too.

i was wondering why i get errors cause of extensions. It meant it can't
load them 'again'. That was no problem at all, i just ignored this
messages, now i tried to install the zend optimizer (hey.. it's not a
zend-related problem!) it gives a fatal error cause it can't load the
extension twice. It seems that many ppl having such problems - it comes
when u use --with-config-scan-dir and --with-config-path (both options) and
both are pointing to the same directory.

Reproduce code:
---------------
Well.. just create a folder to store the php.ini - for example "testphp"
in /etc now recompile php with: '--with-layout=GNU'
'--with-config-file-path=/etc/testphp'
'--with-config-file-scan-dir=/etc/testphp' now put your php.ini into this
directory and put some extensions into it, for example xcache or the zend
optimizer or apc, or whatever you want. when you go to your source
directory and type "make test" you will see 1. (see at actual result) - and
it will give you errors cause of some extensions (zend optimizer will give
a fatal one and make test is stopping)

i recompiled it then with _one_ of these settings - see 1. in expected
results - now it's working, strange eh?

So.. is it a bug or a feature? ;)

Expected result:
----------------
1. (thats how it looks if you use one of these configure settings)

INI actual  : /etc/testphp/php.ini
More .INIs  : 




Actual result:
--------------
1. (thats how it look if you use both configure settings)

INI actual  : /etc/testphp/php.ini
More .INIs  : /etc/testphp/php.ini




-- 
Edit bug report at http://bugs.php.net/?id=41462&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41462&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41462&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41462&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41462&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41462&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41462&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41462&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41462&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41462&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41462&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41462&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41462&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41462&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41462&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41462&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41462&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41462&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41462&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41462&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41462&r=mysqlcfg

Reply via email to