Re: Quick question...
| From: | Andi Gutmans | Date: | Mon, 09 Jun 2003 17:01:19 +0000 |
| Subject: | Re: Quick question... | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2256@lists.php.net to get a copy of this message | ||
At 05:00 PM 6/5/2003 -0400, Sterling Hughes wrote:
Yep.
-Sterling
On Thu, 2003-06-05 at 17:01, Lars Torben Wilson wrote:
Just wanted to check that I'm reading this right before committing
to the docs: does print() return 1, always? The following seems to
indicate so:
case ZEND_PRINT:
zend_print_variable(get_zval_ptr(&EX(opline)->op1, EX(Ts),
&EG(free_op1), BP_VAR_R));
EX(Ts)[EX(opline)->result.u.var].tmp_var.value.lval = 1;
EX(Ts)[EX(opline)->result.u.var].tmp_var.type = IS_LONG;
FREE_OP(EX(Ts), &EX(opline)->op1, EG(free_op1));
NEXT_OPCODE();
Hmm, it could actually be changed to return bool(true). Maybe we kept it like this for PHP 3 compatibility but we can change it for PHP 5 IMO because I doubt ppl use the return value as a number.
Andi