php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14169 Bug in ext/xslt/sablot.c crashes apache on launch.
Submitted: 2001-11-21 21:34 UTC Modified: 2001-11-23 16:49 UTC
From: sbs at adobe dot com Assigned:
Status: Closed Package: XSLT related
PHP Version: 4.0CVS-2001-11-21 OS: Solaris
Private report: No CVE-ID: None
 [2001-11-21 21:34 UTC] sbs at adobe dot com
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-22 02:49 UTC] derick@php.net
Fixed in CVS

Derick
 [2001-11-23 16:49 UTC] sbs at adobe dot com
This was in the RC3 candidate, which seems not to track the CVS main line.
Sorry, S.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC