php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63952 Tidy refresh problem
Submitted: 2013-01-09 15:31 UTC Modified: 2013-01-10 08:15 UTC
From: wijnand at elementa dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.4.10 OS: Windows
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: wijnand at elementa dot com
New email:
PHP Version: OS:

 

 [2013-01-09 15:31 UTC] wijnand at elementa dot com
Description:
------------
---
From manual page: http://www.php.net/book.tidy
---
I have a found something that is probably a bug.

I use PHP 5.4.0.

I use the code at the end of my file (there is only one function loaded after it 
that stores some data in the database):

The problem I have is that tidy sometimes does what it should do (tabbing the 
source-code) and sometimes it refuses. When I push "Refresh", then Randomly he 
does it or doesn't do anything with tabbing.

Because it's random, I think it's a bug.

Test script:
---------------
$options = array(
	"indent" => true,
	"indent-spaces" => 2,
	"wrap" => 200
);
$tidy = tidy_parse_string($str, $options);
echo utf8_encode(tidy_get_output($tidy));

Expected result:
----------------
That my source code is tabbed automaticly.

Actual result:
--------------
Sometimes it's tapped, sometimes it isn't (on refresh).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-09 15:33 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2013-01-09 15:33 UTC] pajoye@php.net
Please provide the data you use as input as well.
 [2013-01-10 08:15 UTC] wijnand at elementa dot com
It already works... don't know why. Seems to be a server thing.
 [2013-01-10 08:15 UTC] wijnand at elementa dot com
-Status: Feedback +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 02 21:01:27 2025 UTC