[PHP-DEV] Bug #14169: Bug in ext/xslt/sablot.c crashes apache on launch.

2001-11-21 Thread sbs

From: [EMAIL PROTECTED]
Operating system: Solaris
PHP version:  4.0CVS-2001-11-21
PHP Bug Type: Sablotron XSL
Bug description:  Bug in ext/xslt/sablot.c crashes apache on launch.

zend_register_functions () traverses a list, implemented as a
0-terminated
array, to register functions.  When passed the
ext/xslt/sablot.c`xslt_functions[]
array, it crashes because there is no trailing entry whose p-fname
member
is null.  Easy fix:
 PHP_FE(xslt_free, NULL)
 +  {0, 0, 0},
   };

./configure \
--disable-force-cgi-redirect \
--disable-short-tags \
--enable-debugger \
--enable-discard-path \
--enable-maintainer-mode \
--enable-mbstr-enc-trans \
--enable-mbstring \
--enable-safe-mode \
--enable-track-dirs \
--enable-track-vars \
--enable-url-includes \
--enable-wddx \
--enable-xslt \
--prefix=/usr/localhost \
--with-apxs=/c0/http/apache_1.3.22/apache/sbin/apxs \
--with-config-file-path=$PWD \
--with-curl=/usr/localhost/new \
--with-exec-dir=$PWD \
--with-expat-dir=/usr/localhost \
--with-iconv \
--with-mysql=/c0/src/mysql/mysql-3.22.32-sun-solaris2.7-sparc \
--with-pgsql=/opt/pgsql \
--with-xslt-sablot \
$@ \
 /dev/null

I also had to hack up the configure script to locate my sablot
installation.
But that's another tale of woe.

Happy US national holiday!
S.

-- 
Edit bug report at: http://bugs.php.net/?id=14169edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11803: call to undefined function not caught by set_error_handler

2001-06-29 Thread sbs

From: [EMAIL PROTECTED]
Operating system: sunos 5.7
PHP version:  4.0.6
PHP Bug Type: *General Issues
Bug description:  call to undefined function not caught by set_error_handler

$ok=1;
function sionna($errno, $errmsg) {
global $ok;
$ok=0;
}
set_error_handler('sionna');
xslt_errno();

If xslt_errno is configured into php, $ok will be 1.
If xslt_errno is not configured into php, the script will die noisily,
or quietly if error_reporting(0).

Same deal with eval() -- it also doesn't let you probe for
undefined functions.


-- 
Edit Bug report at: http://bugs.php.net/?id=11803edit=1



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]