Eclipse and Xdebug do not parse additional INI files in / etc / php5 / conf.d

I have Eclipse 3.6.2 installed on Ubuntu 11.4 for AMD64 and Xdebug .

Eclipse was installed with a zip download from eclipse.org. PHP and Xdebug were configured using apt-get .

When I run the PHP script in the shell, they will use the file /etc/php5/php.iniand parse the additional ini files into /etc/php5/conf.d/.

When I launch Eclipse (launch mode or debug mode), it will analyze only php.iniand no additional ini files.

In principle, all extensions do not load.

+3
source share
2 answers

.
PDT php "-n" . ini .
. https://bugs.eclipse.org/bugs/show_bug.cgi?id=339547
https://bugs.eclipse.org/bugs/show_bug.cgi?id=347618

BTW, script, "-n" PHP. ( > PHP > PHP)
,

#!/bin/sh
if [ $1 = "-n" ]; then
  shift;
fi
/usr/bin/php $*
+5

@atlanto , , Eclipse ( Neon) , , php.ini conf.d, php.

, php.ini PHP. Use system default php.ini configurate.

enter image description here

, location/php.ini, , conf.d.

, , php conf.d :

    php -i "(command-line 'phpinfo()')" | grep "Configure Command"

- :

Configure Command =>  './configure'  '--prefix=/usr/local/Cellar/php5/5.6.29_5' 
'--localstatedir=/usr/local/var' '--sysconfdir=/usr/local/etc/php/5.6' 
'--with-config-file-path=/usr/local/etc/php/5.6' 
'--with-config-file-scan-dir=/usr/local/etc/php/5.6/conf.d' 
'--mandir=/usr/local/Cellar/php56/5.6.29_5/share/man' 

... and so on...

, :

  • with-config-file-path: , php.ini
  • with-config-file-scan-dir: conf.d,

- , , :

  • conf.d php.ini
  • php .
  • script @atlanto
0

All Articles