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
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:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 05:01:30 2024 UTC