ID:               30660
 User updated by:  margus at zone dot ee
 Reported By:      margus at zone dot ee
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: SuSe Linux 9.0
 PHP Version:      5.0.2
 New Comment:

<?php
  dl ('modules/tidy.so');

  $tidy = tidy_parse_string ("<HTML></HTML>");

  echo "Exiting...";
?>


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

[2004-11-02 13:28:19] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.

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

[2004-11-02 13:26:02] margus at zone dot ee

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 this bug report at http://bugs.php.net/?id=30660&edit=1

Reply via email to