com php-src: Fix misleading sizeof: ext/standard/assert.c

From: Date: Sat, 19 Oct 2013 21:43:05 +0000
Subject: com php-src: Fix misleading sizeof: ext/standard/assert.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73718@lists.php.net to get a copy of this message
Commit: 1292091670ed2b7bf7aad2146f1e7e44a786d97a Author: Nikita Popov <nikic@php.net> Sat, 19 Oct 2013 23:43:05 +0200 Parents: a1ae79e11415237a89e041c3b96dd1dba6e7636e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1292091670ed2b7bf7aad2146f1e7e44a786d97a Log: Fix misleading sizeof An array of zval* is allocated, but sizeof(zval **) is used. Makes no practical difference as sizeof(zval *) == sizeof(zval **). Changed paths: M ext/standard/assert.c Diff: diff --git a/ext/standard/assert.c b/ext/standard/assert.c index 631834c..1a24ade 100644 --- a/ext/standard/assert.c +++ b/ext/standard/assert.c @@ -200,7 +200,7 @@ PHP_FUNCTION(assert) } if (ASSERTG(callback)) { - zval **args = safe_emalloc(description_len == 0 ? 3 : 4, sizeof(zval **), 0); + zval **args = safe_emalloc(description_len == 0 ? 3 : 4, sizeof(zval *), 0); zval *retval; int i; uint lineno = zend_get_executed_lineno(TSRMLS_C);

« previous php.cvs (#73718) next »