]> granicus.if.org Git - php/commitdiff
last commit was an old patch, revert faulty line
authorGreg Beaver <cellog@php.net>
Sun, 26 Oct 2008 05:51:04 +0000 (05:51 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 26 Oct 2008 05:51:04 +0000 (05:51 +0000)
ext/phar/phar.c

index 0db27db34eb6cf3cb65b872f306deeb77b6e6641..45c999a5af26dce9b83d16f286438a74831dde10 100644 (file)
@@ -1035,7 +1035,6 @@ static int phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char
        /* check whether we have meta data, zero check works regardless of byte order */
        if (mydata->is_persistent) {
                PHAR_GET_32(buffer, mydata->metadata_len);
-               if (!mydata->metadata_len) buffer -= 4;
                if (phar_parse_metadata(&buffer, &mydata->metadata, mydata->metadata_len TSRMLS_CC) == FAILURE) {
                        MAPPHAR_FAIL("unable to read phar metadata in .phar file \"%s\"");
                }