Upgrading Zend Studio’s Internal Debugger
-
Zend Studio for Windows ships with an “internal” debugger for running your scripts in Studio without a webserver. Studio 4.0.2 ships with PHP 5.0.3. Recently, I encountered a bug in 5.0.3 that was corrected in 5.0.4 and I wanted to upgrade the internal debugger myself rather than wait for the next Studio release. Here’s how to do it.
First, download the ZIP package of Windows binaries from PHP downloads. Extract the files
php-cgi.exe
andphp5ts.dll
to a temporary folder. Rename the filephp-cgi.exe
tophp.exe
. This is necessary because Studio needs the CGI version of PHP, and the ZIP package’sphp.exe
is the CLI version.Next, find Zend Studio’s internal PHP5 interpreter. This is the default installation path:
C:\Program Files\Zend\ZendStudioClient-4.0.2\bin\php5
Notice two files in this directory:
php.exe
andphp5ts.dll
. Backup these two files and then remove them from the directory. Finally, replace these with the versions from your temporary folder, and the upgrade is complete. You can write a simple script withphpinfo();
inside Studio to verify the upgrade.