Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251666 - dev-lang/php-? - SAX (Simple API for XML) Parser doesn't correctly parse entities in character data section.
Summary: dev-lang/php-? - SAX (Simple API for XML) Parser doesn't correctly parse enti...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2008-12-19 18:47 UTC by Joongi Kim
Modified: 2008-12-30 14:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Joongi Kim 2008-12-19 18:47:12 UTC
The reference URL is written in Korean, so I rephrase it to English.

We're developing an opensource blogging tool called Textcube which is written in PHP. There are thousands of bugs filed by users of various platforms.

However, only on Gentoo Linux, the SAX parser (event-driven xml parser) of PHP does not correctly parse HTML entities in character data handler. The event caller just passes an empty string instead of a character mapped with HTML entity. I traced this issue by hands and found that this may be a bug originated from Gentoo-specific patches for PHP because it only happened on Gentoo.

The environment included in our user's report is:

# emerge --version
Portage (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, i686)

#cat /proc/version
Linux version (gcc version 4.1.2 (Gentoo 4.1.2)) #1 SMP Sat Feb 16 03:54:00 KST 2008

PHP 5.2.6 (PHP 5.2.6 (cli) (built: Oct 21 2008 13:25:24)
Comment 1 Joongi Kim 2008-12-19 18:56:47 UTC
I've found that this issue may be the same one to and
Comment 2 Wormo (RETIRED) gentoo-dev 2008-12-20 22:57:10 UTC
This SAX parser uses xml_parse_into_struct php function, which is the subject of the bugs you linked to?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-22 18:06:24 UTC
Please post your `emerge --info' in a comment and specify the version of dev-lang/php in the Summary.
Comment 4 Panagiotis Christopoulos (RETIRED) gentoo-dev 2008-12-25 10:56:19 UTC
Any progress here?
Comment 5 Joongi Kim 2008-12-30 14:30:42 UTC
Um, I don't think it would be possible I could get 'emerge --info' because I'm not the user of the system where this problem is reported. The one who reported is a user of Textcube which I develope, and he/she wrote anonymously on our forum. Sorry.