]> granicus.if.org Git - php/commitdiff
throw a warning if encoding support not available...
authorSterling Hughes <sterling@php.net>
Fri, 19 Apr 2002 23:46:09 +0000 (23:46 +0000)
committerSterling Hughes <sterling@php.net>
Fri, 19 Apr 2002 23:46:09 +0000 (23:46 +0000)
ext/xslt/sablot.c

index 01ed497b74a7e3b36a784073d04e6c3eed06e59e..ec44260d6ae4dc8bdd563a0c3e0fc62a4e052440 100644 (file)
@@ -335,7 +335,7 @@ PHP_FUNCTION(xslt_set_scheme_handlers)
                key_type = zend_hash_get_current_key(scheme_handlers, &string_key, &num_key, 0);
                if (key_type == HASH_KEY_IS_LONG) {
                        php_error(E_NOTICE, "Numerical key %d (with value %s) being ignored "
-                                                   "in xslt_set_scheme_handlers()",
+                                         "in xslt_set_scheme_handlers()",
                                          num_key, Z_STRVAL_PP(handler));
                        continue;
                }
@@ -434,6 +434,8 @@ PHP_FUNCTION(xslt_set_encoding)
 
        /* Set the encoding */
        SablotSetEncoding(XSLT_PROCESSOR(handle), Z_STRVAL_PP(encoding));
+#else
+       php_error(E_WARNING, "Sablotron not compiled with encoding support");
 #endif
 
 }