Re: assert module
| From: | Thies C. Arntzen | Date: | Tue, 07 Dec 1999 15:25:55 +0000 |
| Subject: | Re: assert module | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-7607@lists.php.net to get a copy of this message | ||
On Tue, 7 Dec 1999, Andrei Zmievski wrote:
> >>
> if ((*assertion)->type == IS_STRING) {
> zval retval;
>
> myeval = (*assertion)->value.str.val;
> zend_eval_string(myeval, &retval CLS_CC ELS_CC);
> convert_to_boolean(&retval);
> val = retval.value.lval;
> } else {
> convert_to_boolean_ex(assertion);
> val = (*assertion)->value.lval;
> }
> >>
>
> I am not sure I agree with this code. assert() function should only
> receive a boolean result (or convert something to boolean if it's not).
> What is the purpose of passing a string in?
see my previous mail. assert() is *magic*!!
>
> -Andrei
>
> "In My Egotistical Opinion, most people's C programs should be indented
> six feet downward and covered with dirt." -- Blair P. Houghton
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany