]> granicus.if.org Git - php/commitdiff
fix build if SPL is disabled
authorGreg Beaver <cellog@php.net>
Sat, 12 Apr 2008 21:43:39 +0000 (21:43 +0000)
committerGreg Beaver <cellog@php.net>
Sat, 12 Apr 2008 21:43:39 +0000 (21:43 +0000)
19 files changed:
ext/phar/phar_object.c
ext/phar/tests/frontcontroller11.phpt
ext/phar/tests/frontcontroller12.phpt
ext/phar/tests/frontcontroller13.phpt
ext/phar/tests/frontcontroller18.phpt
ext/phar/tests/frontcontroller19.phpt
ext/phar/tests/frontcontroller20.phpt
ext/phar/tests/tar/frontcontroller11.phar.phpt
ext/phar/tests/tar/frontcontroller12.phar.phpt
ext/phar/tests/tar/frontcontroller13.phar.phpt
ext/phar/tests/tar/frontcontroller18.phar.phpt
ext/phar/tests/tar/frontcontroller19.phar.phpt
ext/phar/tests/tar/frontcontroller20.phar.phpt
ext/phar/tests/zip/frontcontroller11.phar.phpt
ext/phar/tests/zip/frontcontroller12.phar.phpt
ext/phar/tests/zip/frontcontroller13.phar.phpt
ext/phar/tests/zip/frontcontroller18.phar.phpt
ext/phar/tests/zip/frontcontroller19.phar.phpt
ext/phar/tests/zip/frontcontroller20.phar.phpt

index b50d722ae30462e00a8197315178f54502f38785..34d00523d3e8e6b696ee1806fee8b0cf1a862bab 100755 (executable)
@@ -604,7 +604,7 @@ PHP_METHOD(Phar, webPhar)
 #else
                if (FAILURE == zend_fcall_info_init(rewrite, 0, &fci, &fcc, NULL, NULL TSRMLS_CC)) {
 #endif
-                       zend_throw_exception_ex(spl_ce_RuntimeException, 0 TSRMLS_CC, "phar error: invalid rewrite callback");
+                       zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar error: invalid rewrite callback");
                        if (free_pathinfo) {
                                efree(path_info);
                        }
@@ -622,7 +622,7 @@ PHP_METHOD(Phar, webPhar)
 
                if (FAILURE == zend_call_function(&fci, &fcc TSRMLS_CC)) {
                        if (!EG(exception)) {
-                               zend_throw_exception_ex(spl_ce_RuntimeException, 0 TSRMLS_CC, "phar error: failed to call rewrite callback");
+                               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar error: failed to call rewrite callback");
                        }
                        if (free_pathinfo) {
                                efree(path_info);
@@ -633,7 +633,7 @@ PHP_METHOD(Phar, webPhar)
                        if (free_pathinfo) {
                                efree(path_info);
                        }
-                       zend_throw_exception_ex(spl_ce_RuntimeException, 0 TSRMLS_CC, "phar error: rewrite callback must return a string or false");
+                       zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar error: rewrite callback must return a string or false");
                        return;
                }
                switch (Z_TYPE_P(retval_ptr)) {
@@ -657,7 +657,7 @@ PHP_METHOD(Phar, webPhar)
                                if (free_pathinfo) {
                                        efree(path_info);
                                }
-                               zend_throw_exception_ex(spl_ce_RuntimeException, 0 TSRMLS_CC, "phar error: rewrite callback must return a string or false");
+                               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar error: rewrite callback must return a string or false");
                                return;
                }
        }
@@ -804,7 +804,7 @@ PHP_METHOD(Phar, webPhar)
                        uint keylen;
                        ulong intkey;
                        if (HASH_KEY_IS_LONG == zend_hash_get_current_key_ex(Z_ARRVAL_P(mimeoverride), &key, &keylen, &intkey, 0, NULL)) {
-                               zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Key of MIME type overrides array must be a file extension, was \"%d\"", intkey);
+                               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Key of MIME type overrides array must be a file extension, was \"%d\"", intkey);
                                phar_entry_delref(phar TSRMLS_CC);
 #ifdef PHP_WIN32
                                efree(fname);
@@ -812,7 +812,7 @@ PHP_METHOD(Phar, webPhar)
                                RETURN_FALSE;
                        }
                        if (FAILURE == zend_hash_get_current_data(Z_ARRVAL_P(mimeoverride), (void **) &val)) {
-                               zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Failed to retrieve Mime type for extension \"%s\"", key);
+                               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Failed to retrieve Mime type for extension \"%s\"", key);
                                phar_entry_delref(phar TSRMLS_CC);
 #ifdef PHP_WIN32
                                efree(fname);
@@ -824,7 +824,7 @@ PHP_METHOD(Phar, webPhar)
                                        if (Z_LVAL_PP(val) == PHAR_MIME_PHP || Z_LVAL_PP(val) == PHAR_MIME_PHPS) {
                                                PHAR_SET_USER_MIME((char) Z_LVAL_PP(val))
                                        } else {
-                                               zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed");
+                                               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed");
                                                phar_entry_delref(phar TSRMLS_CC);
 #ifdef PHP_WIN32
                                                efree(fname);
@@ -836,7 +836,7 @@ PHP_METHOD(Phar, webPhar)
                                        PHAR_SET_USER_MIME(PHAR_MIME_OTHER)
                                        break;
                                default :
-                                       zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed");
+                                       zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed");
                                        phar_entry_delref(phar TSRMLS_CC);
 #ifdef PHP_WIN32
                                        efree(fname);
@@ -872,11 +872,11 @@ PHP_METHOD(Phar, mungServer)
        }
 
        if (!zend_hash_num_elements(Z_ARRVAL_P(mungvalues))) {
-               zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "No values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME");
+               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "No values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME");
                return;
        }
        if (zend_hash_num_elements(Z_ARRVAL_P(mungvalues)) > 4) {
-               zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME");
+               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME");
                return;
        }
 
@@ -886,16 +886,16 @@ PHP_METHOD(Phar, mungServer)
                zval **data = NULL;
 
                if (SUCCESS != zend_hash_get_current_data(Z_ARRVAL_P(mungvalues), (void **) &data)) {
-                       zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "unable to retrieve array value in Phar::mungServer()");
+                       zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "unable to retrieve array value in Phar::mungServer()");
                        return;
                }
                if (Z_TYPE_PP(data) != IS_STRING) {
-                       zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Non-string value passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME");
+                       zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Non-string value passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME");
                        return;
                }
                if (!php_self && Z_STRLEN_PP(data) == sizeof("PHP_SELF")-1 && !strncmp(Z_STRVAL_PP(data), "PHP_SELF", sizeof("PHP_SELF")-1)) {
                        if (SUCCESS != zend_hash_add_empty_element(&(PHAR_GLOBALS->phar_SERVER_mung_list), "PHP_SELF", sizeof("PHP_SELF")-1)) {
-                               zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Unable to add PHP_SELF to Phar::mungServer() list of values to mung");
+                               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Unable to add PHP_SELF to Phar::mungServer() list of values to mung");
                                return;
                        }
                        php_self = 1;
@@ -903,14 +903,14 @@ PHP_METHOD(Phar, mungServer)
                if (Z_STRLEN_PP(data) == sizeof("REQUEST_URI")-1) {
                        if (!request_uri && !strncmp(Z_STRVAL_PP(data), "REQUEST_URI", sizeof("REQUEST_URI")-1)) {
                                if (SUCCESS != zend_hash_add_empty_element(&(PHAR_GLOBALS->phar_SERVER_mung_list), "REQUEST_URI", sizeof("REQUEST_URI")-1)) {
-                                       zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Unable to add REQUEST_URI to Phar::mungServer() list of values to mung");
+                                       zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Unable to add REQUEST_URI to Phar::mungServer() list of values to mung");
                                        return;
                                }
                                request_uri = 1;
                        }
                        if (!script_name && !strncmp(Z_STRVAL_PP(data), "SCRIPT_NAME", sizeof("SCRIPT_NAME")-1)) {
                                if (SUCCESS != zend_hash_add_empty_element(&(PHAR_GLOBALS->phar_SERVER_mung_list), "SCRIPT_NAME", sizeof("SCRIPT_NAME")-1)) {
-                                       zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Unable to add SCRIPT_NAME to Phar::mungServer() list of values to mung");
+                                       zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Unable to add SCRIPT_NAME to Phar::mungServer() list of values to mung");
                                        return;
                                }
                                script_name = 1;
@@ -918,7 +918,7 @@ PHP_METHOD(Phar, mungServer)
                }
                if (!script_filename && Z_STRLEN_PP(data) == sizeof("SCRIPT_FILENAME")-1 && !strncmp(Z_STRVAL_PP(data), "SCRIPT_FILENAME", sizeof("SCRIPT_FILENAME")-1)) {
                        if (SUCCESS != zend_hash_add_empty_element(&(PHAR_GLOBALS->phar_SERVER_mung_list), "SCRIPT_FILENAME", sizeof("SCRIPT_FILENAME")-1)) {
-                               zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Unable to add SCRIPT_FILENAME to Phar::mungServer() list of values to mung");
+                               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Unable to add SCRIPT_FILENAME to Phar::mungServer() list of values to mung");
                                return;
                        }
                        script_filename = 1;
@@ -959,7 +959,7 @@ PHP_METHOD(Phar, createDefaultStub)
        stub = phar_create_default_stub(index, webindex, &stub_len, &error TSRMLS_CC);
 
        if (error) {
-               zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, error);
+               zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, error);
                efree(error);
                return;
        }
@@ -3868,6 +3868,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_webPhar, 0, 0, 0)
        ZEND_ARG_INFO(0, rewrites)
 ZEND_END_ARG_INFO();
 
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_running, 0, 0, 1)
+       ZEND_ARG_INFO(0, retphar)
+ZEND_END_ARG_INFO();
+
 #if HAVE_SPL
 
 static
@@ -3947,11 +3952,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_setStub, 0, 0, 1)
        ZEND_ARG_INFO(0, maxlen)
 ZEND_END_ARG_INFO();
 
-static
-ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_running, 0, 0, 1)
-       ZEND_ARG_INFO(0, retphar)
-ZEND_END_ARG_INFO();
-
 static
 ZEND_BEGIN_ARG_INFO_EX(arginfo_phar_emptydir, 0, 0, 0)
        ZEND_ARG_INFO(0, dirname)
index 14681c81f3f146d3ac990e1ecb5f8675c6d4ace7..3823fec191fd16351983ce213fd2397ecd3b0fce 100644 (file)
@@ -11,7 +11,7 @@ files/frontcontroller5.phar
 --EXPECTHEADERS--
 Content-type: text/html
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Key of MIME type overrides array must be a file extension, was "0"' in %sfrontcontroller11.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Key of MIME type overrides array must be a file extension, was "0"' in %sfrontcontroller11.php:2
 Stack trace:
 #0 %sfrontcontroller11.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
 #1 {main}
index 76ef63ca6e488b0aeb00e2c8c333333eb70d7c45..e07876a41ba708a73e65418897acfb4ee431dcb2 100644 (file)
@@ -11,7 +11,7 @@ files/frontcontroller6.phar
 --EXPECTHEADERS--
 Content-type: text/html
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller12.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller12.php:2
 Stack trace:
 #0 %sfrontcontroller12.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
 #1 {main}
index 267c73263bcb05b5ef9efaacc290865623a6b784..74ed0e1b75218344524fd2a507af8ee591ccddc8 100644 (file)
@@ -11,7 +11,7 @@ files/frontcontroller7.phar
 --EXPECTHEADERS--
 Content-type: text/html
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller13.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller13.php:2
 Stack trace:
 #0 %sfrontcontroller13.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
 #1 {main}
index 590bd3676e57c6efe534dc22c70fb04a1d2df3d4..19aea455639c3e51a289d66ebc7915c01ebb4368 100644 (file)
@@ -9,7 +9,7 @@ PATH_INFO=/fronk.gronk
 --FILE_EXTERNAL--
 files/frontcontroller9.phar
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'No values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller18.php:2
+Fatal error: Uncaught exception 'PharException' with message 'No values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller18.php:2
 Stack trace:
 #0 %sfrontcontroller18.php(2): Phar::mungServer(Array)
 #1 {main}
index 80305c8a10f9f8c19f95dbb9dde3fad8e1f4fa5d..9adafa2b30df82f421e8fe99ee948f287f114fc5 100644 (file)
@@ -9,7 +9,7 @@ PATH_INFO=/
 --FILE_EXTERNAL--
 files/frontcontroller10.phar
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller19.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller19.php:2
 Stack trace:
 #0 %sfrontcontroller19.php(2): Phar::mungServer(Array)
 #1 {main}
index b650694bb801bab810e7f227ecea443e97d0b2c5..45e2bfc25eeb3c9bb9ff895a523094b619da7bef 100644 (file)
@@ -9,7 +9,7 @@ PATH_INFO=/
 --FILE_EXTERNAL--
 files/frontcontroller11.phar
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Non-string value passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller20.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Non-string value passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller20.php:2
 Stack trace:
 #0 %sfrontcontroller20.php(2): Phar::mungServer(Array)
 #1 {main}
index 697718cc692e6e4686beaaa136dee9ed0b1d1e85..3a420f6c85778f794668fba09543e8ea0a71a93d 100644 (file)
@@ -11,7 +11,7 @@ files/frontcontroller5.phar.tar
 --EXPECTHEADERS--
 Content-type: text/html
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Key of MIME type overrides array must be a file extension, was "0"' in %sfrontcontroller11.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Key of MIME type overrides array must be a file extension, was "0"' in %sfrontcontroller11.phar.php:2
 Stack trace:
 #0 %sfrontcontroller11.phar.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
 #1 {main}
index 91095869328c990bd10e2b42b234836042a62c7e..e659434e07d7f694fbdc8f0c25086043f15d9479 100644 (file)
@@ -11,7 +11,7 @@ files/frontcontroller6.phar.tar
 --EXPECTHEADERS--
 Content-type: text/html
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller12.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller12.phar.php:2
 Stack trace:
 #0 %sfrontcontroller12.phar.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
 #1 {main}
index 974145b830847b51bfdede674dd1f3145bb3e30f..0b9d3e38950f771d602d2f1d7de45ec31058c940 100644 (file)
@@ -11,7 +11,7 @@ files/frontcontroller7.phar.tar
 --EXPECTHEADERS--
 Content-type: text/html
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller13.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller13.phar.php:2
 Stack trace:
 #0 %sfrontcontroller13.phar.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
 #1 {main}
index 4ecb69a1389a5caf722985390cf79b3e76df5041..c52ce291c72ee38b92c5e6eda43f26a1a53a75f3 100644 (file)
@@ -9,7 +9,7 @@ PATH_INFO=/fronk.gronk
 --FILE_EXTERNAL--
 files/frontcontroller9.phar.tar
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'No values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller18.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'No values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller18.phar.php:2
 Stack trace:
 #0 %sfrontcontroller18.phar.php(2): Phar::mungServer(Array)
 #1 {main}
index 2cba4a9a56b389c3d00a2fe25079e5d62974f37d..6b07438787ca4d7c8866039116928d1ca8f7ab55 100644 (file)
@@ -9,7 +9,7 @@ PATH_INFO=/
 --FILE_EXTERNAL--
 files/frontcontroller10.phar.tar
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller19.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller19.phar.php:2
 Stack trace:
 #0 %sfrontcontroller19.phar.php(2): Phar::mungServer(Array)
 #1 {main}
index 42ec810aee5147f34e49ed8e3a62a1abd4a31cf7..3cc470d41bad4211aee53406e3878c220ef4ad0f 100644 (file)
@@ -9,7 +9,7 @@ PATH_INFO=/
 --FILE_EXTERNAL--
 files/frontcontroller11.phar.tar
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Non-string value passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller20.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Non-string value passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller20.phar.php:2
 Stack trace:
 #0 %sfrontcontroller20.phar.php(2): Phar::mungServer(Array)
 #1 {main}
index fd3fc24ff2423f07da9c405e4e8429efd669c93c..f1fd26bb755ad959b800875788b84020be4ac5ab 100644 (file)
@@ -11,7 +11,7 @@ files/frontcontroller5.phar.zip
 --EXPECTHEADERS--
 Content-type: text/html
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Key of MIME type overrides array must be a file extension, was "0"' in %sfrontcontroller11.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Key of MIME type overrides array must be a file extension, was "0"' in %sfrontcontroller11.phar.php:2
 Stack trace:
 #0 %sfrontcontroller11.phar.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
 #1 {main}
index 6dc8471001969ec92bdcdf55c97fec4e9eb3332f..dc5bcdce7836b2a137546facb5bfb14a3e7f064f 100644 (file)
@@ -11,7 +11,7 @@ files/frontcontroller6.phar.zip
 --EXPECTHEADERS--
 Content-type: text/html
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller12.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Unknown mime type specifier used, only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller12.phar.php:2
 Stack trace:
 #0 %sfrontcontroller12.phar.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
 #1 {main}
index f80c464352dd54df6d9616c741e218572fc95165..592d6625366278f8cfc86021763ab7a96cf12f98 100644 (file)
@@ -11,7 +11,7 @@ files/frontcontroller7.phar.zip
 --EXPECTHEADERS--
 Content-type: text/html
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller13.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Unknown mime type specifier used (not a string or int), only Phar::PHP, Phar::PHPS and a mime type string are allowed' in %sfrontcontroller13.phar.php:2
 Stack trace:
 #0 %sfrontcontroller13.phar.php(2): Phar::webPhar('whatever', 'index.php', '', Array)
 #1 {main}
index 407c8a7780b231fc8b2da0733c6f86476dcb2231..c687dd066435fc6483cbc394b126ee60534a760a 100644 (file)
@@ -9,7 +9,7 @@ PATH_INFO=/fronk.gronk
 --FILE_EXTERNAL--
 files/frontcontroller9.phar.zip
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'No values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller18.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'No values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller18.phar.php:2
 Stack trace:
 #0 %sfrontcontroller18.phar.php(2): Phar::mungServer(Array)
 #1 {main}
index dd8b0571723e22356dac81894f3dbbc6d31b03ef..5b828e9e603a631bca8eae394d1c921f1821dd8b 100644 (file)
@@ -9,7 +9,7 @@ PATH_INFO=/
 --FILE_EXTERNAL--
 files/frontcontroller10.phar.zip
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller19.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Too many values passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller19.phar.php:2
 Stack trace:
 #0 %sfrontcontroller19.phar.php(2): Phar::mungServer(Array)
 #1 {main}
index ec59a3add82d7cdab46f3dce5243295ff4b9993f..1cf54860acbdf8c3e420c14cc2ad8e97f27ab41f 100644 (file)
@@ -9,7 +9,7 @@ PATH_INFO=/
 --FILE_EXTERNAL--
 files/frontcontroller11.phar.zip
 --EXPECTF--
-Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Non-string value passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller20.phar.php:2
+Fatal error: Uncaught exception 'PharException' with message 'Non-string value passed to Phar::mungServer(), expecting an array of any of these strings: PHP_SELF, REQUEST_URI, SCRIPT_FILENAME, SCRIPT_NAME' in %sfrontcontroller20.phar.php:2
 Stack trace:
 #0 %sfrontcontroller20.phar.php(2): Phar::mungServer(Array)
 #1 {main}