]> granicus.if.org Git - php/commitdiff
fix param parsing for Phar::running() to be optional
authorGreg Beaver <cellog@php.net>
Sun, 23 Mar 2008 17:36:57 +0000 (17:36 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 23 Mar 2008 17:36:57 +0000 (17:36 +0000)
# this is the last bug for ZF app - it now works!

ext/phar/phar_object.c

index a29c3ae4e272567082198df057b0da62c57c6656..8f529a1ab9b303a004ec830d4c0e0791fafd0f1c 100755 (executable)
@@ -435,7 +435,7 @@ PHP_METHOD(Phar, running)
        int fname_len, arch_len, entry_len;
        zend_bool retphar = 1;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &retphar) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &retphar) == FAILURE) {
                return;
        }