php.net |  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
Votes:1
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
 [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:
-------------------
libxml2-devel-2.4.2-1.i386.rpm
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'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] iliaa@php.net
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 http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net 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: Tue Dec 07 13:03:33 2021 UTC