#29927 [Fbk->NoF]: Instansiating two Tidy objects causes segfault

From: Date: Tue, 14 Sep 2004 23:00:04 +0000
Subject: #29927 [Fbk->NoF]: Instansiating two Tidy objects causes segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66185@lists.php.net to get a copy of this message
ID: 29927 Updated by: php-bugs@lists.php.net Reported By: aashley at optimiser dot com -Status: Feedback +Status: No Feedback Bug Type: Reproducible crash Operating System: Gentoo Linux PHP Version: 5.0.1 New Comment: No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2004-09-01 09:39:02] derick@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip Works fine for me, please try a snapshot. ------------------------------------------------------------------------ [2004-09-01 08:59:33] aashley at optimiser dot com 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: ---------------- aashley@dt-pc0144 ~ $ php test.php aashley@dt-pc0144 ~ $ Actual result: -------------- aashley@dt-pc0144 ~ $ php test.php Segmentation fault aashley@dt-pc0144 ~ $ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29927&edit=1

« previous php.bugs (#66185) next »