From:             [EMAIL PROTECTED]
Operating system: 
PHP version:      5.2CVS-2008-09-09 (CVS)
PHP Bug Type:     DOM XML related
Bug description:  Segfault in DOMText when using with Reflection

Description:
------------
See below.

Reproduce code:
---------------
<?php

new domtext;
print "ok!\n";

$x = new ReflectionMethod('domtext', '__construct');
$x->invoke(new domtext);
print "ok!\n";


Expected result:
----------------
ok
ok

Actual result:
--------------
==7575== Process terminating with default action of signal 11 (SIGSEGV)
==7575==  Bad permissions for mapped region at address 0x41BFAB4
==7575==    at 0x808B987: php_libxml_clear_object (libxml.c:147)
==7575==    by 0x808B9E8: php_libxml_unregister_node (libxml.c:162)
==7575==    by 0x808DDEB: php_libxml_node_free_resource (libxml.c:1008)
==7575==    by 0x80F55FC: zim_domtext___construct (text.c:96)
==7575==    by 0x83402CD: zend_call_function (zend_execute_API.c:1027)
==7575==    by 0x819DE85: zim_reflection_method_invoke
(php_reflection.c:2376)
==7575==    by 0x8378AF9: zend_do_fcall_common_helper_SPEC
(zend_vm_execute.h:200)
==7575==    by 0x8379AE7: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER
(zend_vm_execute.h:322)
==7575==    by 0x8378593: execute (zend_vm_execute.h:92)
==7575==    by 0x834F898: zend_execute_scripts (zend.c:1134)
==7575==    by 0x82E8D09: php_execute_script (main.c:2011)
==7575==    by 0x83D8C82: main (php_cli.c:1134)


-- 
Edit bug report at http://bugs.php.net/?id=46029&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46029&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46029&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46029&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=46029&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=46029&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=46029&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=46029&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=46029&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=46029&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=46029&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=46029&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=46029&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=46029&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46029&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=46029&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=46029&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=46029&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46029&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=46029&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=46029&r=mysqlcfg

Reply via email to