php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56429 Tidy configuration makes PHP crash
Submitted: 2005-06-25 15:57 UTC Modified: 2005-10-23 06:01 UTC
From: o dot persson at gmail dot com Assigned:
Status: Not a bug Package: tidy (PECL)
PHP Version: 5.0.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: o dot persson at gmail dot com
New email:
PHP Version: OS:

 

 [2005-06-25 15:57 UTC] o dot persson at gmail dot com
Description:
------------
When foreign characters are used in the configuration file, tidy will make php crash.


Reproduce code:
---------------
Setup php.ini to use a configuration file:
tidy.default_config = /path/to/tidy.conf

Add a line with foreign chars, I used this line:
#  Author: ?rjan Persson

Now try use tidy:
<?php
ob_start('ob_tidyhandler');
?>

Expected result:
----------------
Parsed configuration.

Actual result:
--------------
Crashed.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-25 16:00 UTC] o dot persson at gmail dot com
Forgot to say, this only happends when the file encoding is utf-8. But I guess you already figured that out. ;)
 [2005-06-26 13:22 UTC] o dot persson at gmail dot com
Adding mbstring to the PHP installation solved this issue. Guess it's not a bug in tidy.
 [2005-10-23 06:01 UTC] mike@php.net
Not a bug, apparently.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 13:01:33 2025 UTC