com php-src: Wrong type check: ext/standard/streamsfuncs.c

From: Date: Mon, 03 Mar 2014 10:23:12 +0000
Subject: com php-src: Wrong type check: ext/standard/streamsfuncs.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77786@lists.php.net to get a copy of this message
Commit: 6374fce5dbef58cb8fc541af0f77eef3881fce0a Author: Xinchen Hui <laruence@gmail.com> Mon, 3 Mar 2014 18:23:12 +0800 Parents: dae6e672c24a3a248fa06a9f930644a9b1685082 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6374fce5dbef58cb8fc541af0f77eef3881fce0a Log: Wrong type check Changed paths: M ext/standard/streamsfuncs.c Diff: diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index c066c60..08c9ef9 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -491,7 +491,7 @@ PHP_FUNCTION(stream_get_meta_data) array_init(return_value); - if (Z_TYPE(stream->wrapperdata) != IS_NULL) { + if (!ZVAL_IS_UNDEF(&stream->wrapperdata)) { add_assoc_zval(return_value, "wrapper_data", &stream->wrapperdata); } if (stream->wrapper) {

« previous php.cvs (#77786) next »