Re: question regarding type hinting parameters of php functions (array_slice)

From: Date: Wed, 28 Nov 2007 18:48:24 +0000
Subject: Re: question regarding type hinting parameters of php functions (array_slice)
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-33486@lists.php.net to get a copy of this message
the code is if (ZEND_NUM_ARGS() >= 3 && Z_TYPE_P(length_param) != IS_NULL) { length = Z_LVAL_P(length_param); } else { length = num_in; } and afaik should be
I think in fact it should just parse it as long and not as zval - what would be any reason to parse it as zval and then convert to long anyway? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#33486) next »