php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29927 Instansiating two Tidy objects causes segfault
Submitted: 2004-09-01 08:59 UTC Modified: 2010-12-20 10:00 UTC
From: aashley at optimiser dot com Assigned:
Status: No Feedback Package: Tidy (PECL)
PHP Version: 5.0.1 OS: Gentoo Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
37 - 5 = ?
Subscribe to this entry?

 
 [2004-09-01 08:59 UTC] 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 ~ $

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-01 09:39 UTC] 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-15 01:00 UTC] php-bugs at lists dot php dot net
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".
 [2010-12-20 10:00 UTC] jani@php.net
-Package: Reproducible crash +Package: Tidy
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC