Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2256 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28519 invoked from network); 9 Jun 2003 17:01:29 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 9 Jun 2003 17:01:29 -0000 Received: (qmail 25451 invoked from network); 9 Jun 2003 17:01:27 -0000 Received: from localhost (HELO andi-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 9 Jun 2003 17:01:27 -0000 Message-ID: <5.1.0.14.2.20030609200027.02f313a8@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 09 Jun 2003 20:01:19 +0300 To: Sterling Hughes , Lars Torben Wilson Cc: internals@lists.php.net In-Reply-To: <1054846808.2406.28.camel@hasele> References: <1054846888.2348.81.camel@ali> <1054846888.2348.81.camel@ali> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Quick question... From: andi@zend.com (Andi Gutmans) 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