cvs: php4 /ext/xslt sablot.c

From: Date: Fri, 19 Apr 2002 23:46:14 +0000
Subject: cvs: php4 /ext/xslt sablot.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11247@lists.php.net to get a copy of this message
sterling Fri Apr 19 19:46:14 2002 EDT Modified files: /php4/ext/xslt sablot.c Log: throw a warning if encoding support not available... Index: php4/ext/xslt/sablot.c diff -u php4/ext/xslt/sablot.c:1.43 php4/ext/xslt/sablot.c:1.44 --- php4/ext/xslt/sablot.c:1.43 Fri Apr 19 18:17:22 2002 +++ php4/ext/xslt/sablot.c Fri Apr 19 19:46:08 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sablot.c,v 1.43 2002/04/19 22:17:22 sterling Exp $ */ +/* $Id: sablot.c,v 1.44 2002/04/19 23:46:08 sterling Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -335,7 +335,7 @@ 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 @@ /* Set the encoding */ SablotSetEncoding(XSLT_PROCESSOR(handle), Z_STRVAL_PP(encoding)); +#else + php_error(E_WARNING, "Sablotron not compiled with encoding support"); #endif }

« previous php.cvs (#11247) next »