[PHP-BUG] Bug #63952 [NEW]: Tidy refresh problem

2013-01-09 Thread wijnand at elementa dot com
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



Bug #63952 [Fbk->Csd]: Tidy refresh problem

2013-01-10 Thread wijnand at elementa dot com
Edit report at https://bugs.php.net/bug.php?id=63952&edit=1

 ID: 63952
 User updated by:wijnand at elementa dot com
 Reported by:wijnand at elementa dot com
 Summary:Tidy refresh problem
-Status: Feedback
+Status: Closed
 Type:   Bug
 Package:*General Issues
 Operating System:   Windows
 PHP Version:5.4.10
 Block user comment: N
 Private report: N

 New Comment:

It already works... don't know why. Seems to be a server thing.


Previous Comments:

[2013-01-09 15:33:53] paj...@php.net

Please provide the data you use as input as well.


[2013-01-09 15:31:45] 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).






-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63952&edit=1