Zend Studio and php.ini

General discussion on Zend Studio
Post Reply
tonyz289
Posts: 10
Joined: Sat Jul 11, 2009 12:29 pm

Zend Studio and php.ini

Post by tonyz289 » Sun Jul 19, 2009 11:00 pm

Where does Zend Studio kept it's php.ini file. I have checked the install directory its not there. When I run phpifno from the Studio it appears to be empty.

User avatar
rbzend
Zend Global Support
Posts: 536
Joined: Tue Dec 23, 2008 5:03 pm

Re: Zend Studio and php.ini

Post by rbzend » Mon Jul 20, 2009 9:45 am

The built-in PHP executables and the corresponding php.ini files are in
<Zend Studio installation directory>/plugins/org.zend.php.debug.debugger.<platform>_<version>/resources/
Roman Basayev
Rogue Wave Support
https://support.roguewave.com/

akede
Posts: 10
Joined: Wed Mar 25, 2009 5:59 pm

Re: Zend Studio and php.ini

Post by akede » Thu Jul 23, 2009 4:26 pm

Hi,

I tried to change this file and add a note that the debugger doesn't through strict warnings anymore. Like
error_reporting = E_ALL & ~E_STRICT

But it seems this is a setting Zend doesn't allow there, or? Anything else works perfectly fine.

Alex

tonyz289
Posts: 10
Joined: Sat Jul 11, 2009 12:29 pm

Re: Zend Studio and php.ini

Post by tonyz289 » Sun Jul 26, 2009 6:49 pm

Why does Zend not use the default php.ini file? Can I force Zend to use it.

sean5200
Posts: 1
Joined: Mon May 20, 2013 4:03 am

Re: Zend Studio and php.ini

Post by sean5200 » Mon May 20, 2013 4:05 am

The built-in PHP executables and the corresponding php.ini files are in
<Zend Studio installation directory>/plugins/org.zend.php.debug.debugger.<platform>_<version>/resources/
In Studio 10 at least, swap "org" with "com". That is, the path is com.zend.php.... not org.zend.php....

alek76
Posts: 13
Joined: Tue Aug 29, 2017 9:57 pm

Re: Zend Studio and php.ini

Post by alek76 » Tue Oct 23, 2018 12:48 pm

I think the easiest way to find this is by running a debug session and while the debug session is still running, open a terminal and type

Code: Select all

ps aux | grep php
For me on MacOS this returns

Code: Select all

alex              5806   9.4  1.6  4611336 275488   ??  S     2:23PM   0:27.44 /Applications/Zend Studio.app/Contents/Eclipse/plugins/com.zend.php.executables.macosx_7.1.3.201703171134/resources/php -n -c /var/folders/w8/8987y6qj6b19qz_5_c3c61k80000gp/T/php-ini/session8906860372381545409.tmp -d asp_tags=off -d short_open_tag=on /path/to/script.php
The first path in the above is the path to the php binary. Go to the directory of the binary:

Code: Select all

cd /Applications/Zend Studio.app/Contents/Eclipse/plugins/com.zend.php.executables.macosx_7.1.3.201703171134/resources/
And php.ini is in there.

Post Reply