Ah, looks like I have to send the patch in-line, not as an attachment?
John.
diff --unified php-4.2.3.orig/main/main.c php-4.2.3/main/main.c
--- php-4.2.3.orig/main/main.c 2002-07-25 10:35:18.000000000 +0100
+++ php-4.2.3/main/main.c 2002-11-14 19:02:44.000000000 +0000
@@ -218,6 +218,7 @@
STD_PHP_INI_BOOLEAN("display_startup_errors", "0", PHP_INI_ALL,
OnUpdateBool, display_startup_errors, php_core_globals,
core_globals)
STD_PHP_INI_BOOLEAN("enable_dl", "1",
PHP_INI_SYSTEM, OnUpdateBool, enable_dl,
php_core_globals, core_globals)
STD_PHP_INI_BOOLEAN("expose_php", "1",
PHP_INI_SYSTEM, OnUpdateBool, expose_php,
php_core_globals, core_globals)
+ STD_PHP_INI_BOOLEAN("fancy_html_errors", "1",
+PHP_INI_SYSTEM, OnUpdateBool, fancy_html_errors,
+ php_core_globals, core_globals)
STD_PHP_INI_BOOLEAN("html_errors", "1",
PHP_INI_SYSTEM, OnUpdateBool, html_errors,
php_core_globals, core_globals)
STD_PHP_INI_BOOLEAN("xmlrpc_errors", "0",
PHP_INI_SYSTEM, OnUpdateBool, xmlrpc_errors,
php_core_globals, core_globals)
STD_PHP_INI_ENTRY("xmlrpc_error_number", "0", PHP_INI_ALL,
OnUpdateInt, xmlrpc_error_number, php_core_globals,
core_globals)
@@ -467,6 +468,9 @@
error_format = PG(html_errors) ?
"<br />\n<b>%s</b>: %s in <b>%s</b> on line
<b>%d</b><br />\n"
: "\n%s: %s in %s on line %d\n";
+ if (PG(fancy_html_errors)) {
+ error_format = "<div
+style=\"position:fixed;left:25%;right:25%;top:25%;bottom:25%;border-style:dashed;border-size:2;background:white;\"><br
+ />\n<b>%s</b>: %s in <b>%s</b> on line <b>%d</b><br /></div>\n";
+ }
if (PG(xmlrpc_errors)) {
error_format = do_alloca(1024);
snprintf(error_format, 1023, "<?xml
version=\"1.0\"?><methodResponse><fault><value><struct><member><name>faultCode</name><value><int>%ld</int></value></member><member><name>faultString</name><value><string>%%s:%%s
in %%s on line
%%d</string></value></member></struct></value></fault></methodResponse>",
PG(xmlrpc_error_number));
diff --unified php-4.2.3.orig/main/php_globals.h php-4.2.3/main/php_globals.h
--- php-4.2.3.orig/main/php_globals.h 2002-02-28 08:27:03.000000000 +0000
+++ php-4.2.3/main/php_globals.h 2002-11-14 19:00:26.000000000 +0000
@@ -116,6 +116,7 @@
zend_bool y2k_compliance;
+ zend_bool fancy_html_errors;
zend_bool html_errors;
zend_bool xmlrpc_errors;
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php