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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sbs at adobe dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 18 17:01:28 2024 UTC