savannah-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-hackers] submission of asserts class for php - savannah.nongnu


From: eald
Subject: [Savannah-hackers] submission of asserts class for php - savannah.nongnu.org
Date: Mon, 03 Nov 2003 03:55:04 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031024 Epiphany/1.0.3

A package was submitted to savannah.nongnu.org
This mail was sent to address@hidden, address@hidden


Edgar Luna <address@hidden> 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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]