From: aashley at optimiser dot com
Operating system: Gentoo Linux
PHP version: 5.0.1
PHP Bug Type: Reproducible crash
Bug description: Instansiating two Tidy objects causes segfault
Description:
------------
When using Tidy in PHP5.0.1 instansiating two Tidy objects causes a
segfault. This worked successfully in 5.0.0.
Using Tidy snapshot from the 11th of August 2004.
Reproduce code:
---------------
<?php
if (!extension_loaded('tidy')) {
$prefix = (PHP_SHLIB_SUFFIX == 'dll') ? 'php_' : '';
dl($prefix.'tidy.'.PHP_SHLIB_SUFFIX);
}
loadContent();
$tidy = new Tidy();
function loadContent() {
$tidy = new Tidy();
}
?>
Expected result:
----------------
[EMAIL PROTECTED] ~ $ php test.php
[EMAIL PROTECTED] ~ $
Actual result:
--------------
[EMAIL PROTECTED] ~ $ php test.php
Segmentation fault
[EMAIL PROTECTED] ~ $
--
Edit bug report at http://bugs.php.net/?id=29927&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29927&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29927&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29927&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=29927&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29927&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29927&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29927&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29927&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29927&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29927&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29927&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29927&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29927&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29927&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29927&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29927&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29927&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29927&r=float