Login   Register  
PHP Classes

adebug: Check whether variable values match expected types

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Sylvain Rabot
Name: Sylvain Rabot <e-mail contact>
Packages: 6 Browse all classes by Sylvain Rabot Browse all classes by
Country: France France - PHP jobs in France
Age: 27
All time rank: 28419 in France France
Week rank: 115 Up7 in France France Up
Innovation award
Innovation award
Nominee: 3x

  Detailed description   Download Download .zip .tar.gz  
This class can be used to check the values of given PHP variables and verify whether they contain values of the expected types.

It provides many functions that can check whether given values are of the basic PHP types: array, boolean, double, integer and string.

It may also check whether the tested values are objects of a given class or sub-class, a callable function, a valid resource handle, the path of a directory, regular file, executable program, readable or writable file, an uploaded file, or symbolic link, a finite or infinite number, or not a number.

When the values do not match the expected types, the class triggers an error denoting the line and the script file where the check was performed.

  Classes of Sylvain Rabot  >  adebug  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: adebug
Base name: adebug
Description: Check whether variable values match expected types
Version: 0.0.1
PHP version: 5.0.0
License: GNU Lesser General Public License (LGPL)
All time users: 529 users
All time rank: 5018
Week users: 1 user
Week rank: 1808 Up
  Groups   Rate classes User ratings   Applications   Files Files  

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Debug Debug data dumping, bug detection and reporting View top rated classes
Group folder image Testing Tools to help verifying that software works as expected View top rated classes

  Innovation Award  
PHP Programming Innovation award nominee
June 2007
Number 10
Sometimes PHP scripts may have bugs that lead them to generate variable values of different types that are expected.

This class can be used to test and debug PHP scripts by inserting checks that verify whether the types the variables that the scripts generate match the expected types.

It may save a lot of time detecting bugs introduced by changes made to different scripts that a site depends.

Manuel Lemos

  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file adebug.class.php Class main class

Download Download all files: adebug.tar.gz adebug.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.