|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16472 unregistering character handler with XML parser failed
Submitted: 2002-04-07 09:34 UTC Modified: 2002-10-16 15:33 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: per dot sil at gmx dot it Assigned:
Status: Closed Package: XML related
PHP Version: 4.1.2 OS: Linux 2.4.7-10smp, RedHat 7.2
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.
Block user comment
Status: Assign to:
Bug Type:
From: per dot sil at gmx dot it
New email:
PHP Version: OS:


 [2002-04-07 09:34 UTC] per dot sil at gmx dot it
After activating a character handler with   
  xml_set_character_data_handler($parser, 'handler'), 

deactivating the handler with 
  xml_set_character_data_handler($parser, '') or 
  xml_set_character_data_handler($parser, false) 

failes and leads to the error message: "Warning:  Unable to call handler". Deactivating the character data handler was impossible. Instead registering a dummy handler was necessary.

additional infos
PHP 4.1.2 has been compiled from source.

installed packages:
expat-library: expat-1.95.1-7.i386.rpm - RedHat RPM

compiled sources
Sablotron: Sablot-0.90.tar.gz

configuration flags for PHP:
 './configure' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--enable-inline- optimization' '--enable-memory-limit' '--with-gnu-ld' '--with-layout=GNU' '--enable-dio' '-- enable-sigchild' '--enable-libgcc' '--enable-discard-path' '--enable-force-cgi- redirect=shared' '--with-pear' '--enable-safe-mode' '--with-zlib=shared' '--enable-bcmath' '--with-bz2=shared' '--with-crack=shared' '--enable-ctype' '--with-gmp=shared' '--enable- calendar' '--with-gettext=shared' '--with-iconv=shared' '--enable-mbstring=shared' '-- enable-mbstr-enc-trans' '--with-pspell=shared' '--enable-sysvsem' '--enable-sysvshm' '-- enable-shmop' '--with-gd=shared' '--enable-gd-native-ttf' '--with-ttf' '--with-pdflib=shared,/ usr/src//pdflib-4.0.2-Linux/bind/c' '--with-jpeg-dir=/usr' '--with-png=shared' '--with-png- dir=/usr' '--with-freetype-dir=/usr' '--with-fdftk=shared,/usr/local/' '--enable-mailparse' '-- with-mcrypt=shared' '--with-mhash=shared' '--with-openssl=shared' '--with-mm=shared' '--enable-trans-sid' '--with-regex=system' '--enable-wddx' '--with-xml=shared' '--with- expat-dir=/usr' '--enable-xslt=shared' '--with-xslt-sablot=shared,/usr/local' '--with- dom=shared' '--with-xmlrpc=shared' '--with-curl=shared' '--enable-ftp' '--enable-sockets' '--enable-dba=shared' '--with-gdbm=shared' '--with-ndbm=shared' '--enable-dbase' '-- enable-dbx' '--enable-filepro' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with- ncurses=shared' '--with-yaz=shared' '--enable-magic-quotes' '--enable-dbg=shared' '-- with-dbg-profiler' '--with-apxs'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-18 03:13 UTC] huongch at bigfoot dot com
I seem to be having the same problem. I'm using PHP 4.1.1 under Win2k.
 [2002-10-16 15:33 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Dec 03 17:03:34 2021 UTC