ID:               49428
 Updated by:       patrickalla...@php.net
 Reported By:      patrickalla...@php.net
-Status:           Assigned
+Status:           Closed
 Bug Type:         Unknown/Other Function
 Operating System: Linux
 PHP Version:      6SVN-2009-09-01 (SVN)
 Assigned To:      patrickallaert
 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Thank you Kalle!


Previous Comments:
------------------------------------------------------------------------

[2009-09-01 14:05:00] s...@php.net

Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=287943
Log: Fixes #49428 - Patch by Patrick Allaert

------------------------------------------------------------------------

[2009-09-01 14:02:44] ka...@php.net

Applied the patch for you Patrick

------------------------------------------------------------------------

[2009-09-01 07:12:51] patrickalla...@php.net

Description:
------------
This bug is perfectly similar to #47966 and can be reproduced with
ext/tidy/tests/030.phpt.

I can't fix it missing karma. The patch is at:
http://pallaert.pastebin.com/f27da6f66

Reproduce code:
---------------
<?php
$buffer = '<html></html>';
$config = array(
  'indent' => true, // AutoBool
  'indent-attributes' => true, // Boolean
  'indent-spaces' => 3, // Integer
  'language' => 'de'); // String
$tidy = new tidy();
$tidy->parseString($buffer, $config);
$c = $tidy->getConfig();
var_dump($c['indent']);
var_dump($c['indent-attributes']);
var_dump($c['indent-spaces']);
var_dump($c['language']);
?>


Expected result:
----------------
int(1)
bool(true)
int(3)
%s(2) "de"


Actual result:
--------------
Notice: Undefined index: indent in ext/tidy/tests/030.php on line 11
NULL

Notice: Undefined index: indent-attributes in ext/tidy/tests/030.php on
line 12
NULL

Notice: Undefined index: indent-spaces in ext/tidy/tests/030.php on
line 13
NULL

Notice: Undefined index: language in ext/tidy/tests/030.php on line 14
NULL


------------------------------------------------------------------------


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

Reply via email to