From: Dmitry Stogov Date: Thu, 17 Jul 2008 13:22:32 +0000 (+0000) Subject: Fixed wrong arguments order X-Git-Tag: php-5.3.0alpha1~305 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c631e8765eec0119fd9a095ad9c2a953f62746a;p=php Fixed wrong arguments order --- diff --git a/ext/phar/phar.c b/ext/phar/phar.c index d8c9bb78d9..db5b80f1e1 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -963,7 +963,7 @@ static int phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char MAPPHAR_FAIL("internal corruption of phar \"%s\" (too many manifest entries for size of manifest)") } - mydata = pecalloc(sizeof(phar_archive_data), 1, PHAR_G(persist)); + mydata = pecalloc(1, sizeof(phar_archive_data), PHAR_G(persist)); mydata->is_persistent = PHAR_G(persist); /* check whether we have meta data, zero check works regardless of byte order */ @@ -1281,7 +1281,7 @@ int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int a } /* set up our manifest */ - mydata = ecalloc(sizeof(phar_archive_data), 1); + mydata = ecalloc(1, sizeof(phar_archive_data)); mydata->fname = expand_filepath(fname, NULL TSRMLS_CC); fname_len = strlen(mydata->fname); diff --git a/ext/phar/zip.c b/ext/phar/zip.c index 4ee7073b06..e0ac5f2668 100644 --- a/ext/phar/zip.c +++ b/ext/phar/zip.c @@ -193,7 +193,7 @@ int phar_parse_zipfile(php_stream *fp, char *fname, int fname_len, char *alias, php_stream_close(fp); return FAILURE; } - mydata = pecalloc(sizeof(phar_archive_data), 1, PHAR_G(persist)); + mydata = pecalloc(1, sizeof(phar_archive_data), PHAR_G(persist)); mydata->is_persistent = PHAR_G(persist); /* read in archive comment, if any */