A package was submitted to savannah.nongnu.org
This mail was sent to [EMAIL PROTECTED], [EMAIL PROTECTED]


Edgar Luna <[EMAIL PROTECTED]> described the package as follows:
License: lgpl
Other License: 
Package: asserts class for php
System name: phpasserts
Type: non-GNU

Description:
This is a message and debugging class for php. Inspired on the Warnings and assertions 
part of Glib library for C 
http://developer.gnome.org/doc/API/2.0/glib/glib-Warnings-and-Assertions.html

Is usefull for making more robust code, being verbose and halting when is necessary 
when assertions fails.

making:

asserts::isarray($arg)

Is the same than write:



if(is_array($arg))

{

    print("error here $arg __LINE__, __FILE__, __FUNCTION__, __CLASS__");

    exit(1);

}



but very much cleaner and without rewriting this every time we need to check a 
variable or flow status because code is centralized.

Won't be a big project and complex algorithm never, is just simple.

the url when you could find it is:

http://linuxuanl.org/~eald/accerts.phps

(phps to see the source code)

and a test in:

http://linuxuanl.org/~eald/test-accert.php

and (http://linuxuanl.org/~eald/test-accert.phps to see the code of this)

Other Software Required:
PHP > 4.1



Other Comments:



_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Savannah-hackers mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/savannah-hackers

Reply via email to