Quick question...

From: Date: Thu, 05 Jun 2003 21:01:28 +0000
Subject: Quick question...
Groups: php.internals 
Request: Send a blank email to internals+get-2186@lists.php.net to get a copy of this message
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(); Thanks, Torben -- Torben Wilson <torben@php.net> +1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----

« previous php.internals (#2186) next »