ericj
ericj

Reputation: 2291

PHP script in eclipse needs extensions in php.ini

I have a PHP script with PDO.

On the command line it runs OK.

But to run it in eclipse I have to edit php.ini. I have to add

extension=pdo.so

Can someone explain me this?

Thanks,

Eric J.

Upvotes: 2

Views: 277

Answers (1)

NullPoiиteя
NullPoiиteя

Reputation: 57322

try

The include_path option in the php.ini specified in the Eclipse preferences is ignored when "Run > as PHP script".

Reproducible: Always

Steps to Reproduce:

  1. Launch a script with phpinfo() in command line
  2. In eclipse, configure the php executable, with its php.ini
  3. In eclipse, run the php "as PHP script", and see that the include_path is not the same as the one in the command line

Upvotes: 1

Related Questions