News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Jones:
Using the PHP CLI Webserver to Identify and Test Memory Issues in PHP
August 15, 2012 @ 08:35:07

Chris Jones has a new post today showing how you can use PHP 5.4's built-in web server to help test for memory issues in your application (and the language).

Rasmus mentioned on IRC how he ran the [command line] tests: simply renaming the ".phpt" test files as ".php", and invoking them through the CLI webserver. The SKIPIF sections get executed, but that doesn't affect the desired outcome of testing multiple HTTP requests with different input scripts. [Here] are some quick shell scripts I put together to automate testing the OCI8 extension with valgrind.

He uses the OCI8 extension as an example, showing how to set up these scripts to enable the execution of the tests, fire up the web server and execute Valgrind to help monitor the memory of the execution.

0 comments voice your opinion now!
builtin webserver cli test unittest phpt tutorial shell


blog comments powered by Disqus

Similar Posts

Alex Netkachov's Blog: Programmatically adding PHP script engine to IIS 5.1 metabase ScriptMaps

Court Ewing's Blog: How PHP is Broken and How It Can Be Fixed

CorePHP Blog: A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

DeveloperTutorials.com: PHP Site Search Made Easy

IBM developerWorks: Paint 3-D images with PHP


Community Events











Don't see your event here?
Let us know!


component security facebook symfony2 language package performance hack introduction database opinion install release unittest overview hhvm framework application podcast composer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework