From:             wijnand at elementa dot com
Operating system: Windows
PHP version:      5.4.10
Package:          *General Issues
Bug Type:         Bug
Bug description:Tidy refresh problem

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).

-- 
Edit bug report at https://bugs.php.net/bug.php?id=63952&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63952&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63952&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=63952&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63952&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63952&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63952&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63952&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63952&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63952&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63952&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=63952&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=63952&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63952&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63952&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63952&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63952&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63952&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63952&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63952&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63952&r=mysqlcfg

Reply via email to