From: margus at zone dot ee
Operating system: SuSe Linux 9.0
PHP version: 5.0.2
PHP Bug Type: Reproducible crash
Bug description: Using Tidy as shared extension crashes PHP (CLI)
Description:
------------
When building and using Tidy extension separately as shared module, then
PHP-CLI crashes at the end.
Everything seems to work, when compiling the extension directly into PHP
binary.
Reproduce code:
---------------
build LIBTIDY:
- /bin/sh build/gnuauto/setup.sh
- ./configure --with-prefix=/usr
- make
- make install
- ldconfig
build PHP5 (5.0.2):
- ./configure --with-tidy=shared,/usr
- make
changes in PHP.INI:
extension_dir=.
script tidytest.php:
<?php
dl ('modules/tidy.so');
$tidy = tidy_parse_string ("<HTML></HTML>");
echo "Exiting...";
?>
Expected result:
----------------
Exiting...
Actual result:
--------------
Exiting...Segmentation Fault
--
Edit bug report at http://bugs.php.net/?id=30660&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30660&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30660&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30660&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30660&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30660&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30660&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30660&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30660&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30660&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30660&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30660&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30660&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30660&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30660&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30660&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30660&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30660&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30660&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30660&r=mysqlcfg