#38130 [Opn]: Unwritten rule on functions returning null

From: Date: Tue, 18 Jul 2006 10:59:36 +0000
Subject: #38130 [Opn]: Unwritten rule on functions returning null
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969373512@lists.php.net to get a copy of this message
ID: 38130 Updated by: colder@php.net Reported By: btherl at yahoo dot com dot au Status: Open Bug Type: Documentation problem Operating System: Linux PHP Version: Irrelevant New Comment: "most functions" : Returning NULL is not a general rule, thus it shoulnd't IMO be documented globally such as in the docs for NULL. Previous Comments: ------------------------------------------------------------------------ [2006-07-18 10:12:05] btherl at yahoo dot com dot au Description: ------------ Most functions return NULL if their arguments are invalid. This should be documented somewhere, perhaps in "Internal (built-in) functions". It may be useful to document it in the documentation for NULL itself. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38130&edit=1

« previous php.doc (#969373512) next »