cvs: /php4/ext/standard assert.c

From: Date: Tue, 07 Dec 1999 13:34:09 +0000
Subject: cvs: /php4/ext/standard assert.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-7595@lists.php.net to get a copy of this message
thies Tue Dec 7 08:34:09 1999 EDT Modified files: /php4/ext/standard assert.c Log: fixed NPR Index: php4/ext/standard/assert.c diff -u php4/ext/standard/assert.c:1.3 php4/ext/standard/assert.c:1.4 --- php4/ext/standard/assert.c:1.3 Tue Dec 7 08:08:17 1999 +++ php4/ext/standard/assert.c Tue Dec 7 08:33:37 1999 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: assert.c,v 1.3 1999/12/07 13:08:17 thies Exp $ */ +/* $Id: assert.c,v 1.4 1999/12/07 13:33:37 thies Exp $ */ /* {{{ includes/startup/misc */ @@ -106,9 +106,17 @@ PHP_RINIT_FUNCTION(assert) { + char *cbstr; + ASSERTLS_FETCH(); + + cbstr = INI_STR("assert.callback"); - ASSERT(callback) = estrdup(INI_STR("assert.callback")); + if (cbstr) { + ASSERT(callback) = estrdup(cbstr); + } else { + ASSERT(callback) = NULL; + } return SUCCESS; }

« previous php.version4 (#7595) next »