From: Evan Klinger Date: Wed, 3 Nov 1999 02:53:52 +0000 (+0000) Subject: #I hope this is the correct way to 'fix' this. X-Git-Tag: php-4.0b3_RC2~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1c4f8978d43042dcd0aa9b46adb2c3c80403360;p=php #I hope this is the correct way to 'fix' this. Fix compile warning --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index ebc46250f0..a9f03572b7 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -3255,7 +3255,7 @@ PHP_FUNCTION(array_pad) /* Populate the pads array */ num_pads = pad_size_abs - input_size; - pads = (zval **)emalloc(num_pads * sizeof(zval **)); + pads = (zval ***)emalloc(num_pads * sizeof(zval **)); for (i = 0; i < num_pads; i++) pads[i] = pad_value;