From: Operating system: Windows 7 Home Premium PHP version: 5.3.3 Package: *Spelling functions Bug Type: Bug Bug description:Calling enchant_broker_get_dict_path before set_path crashes php
Description: ------------ Whenever I try to call (the undocumented function) enchant_broker_get_dict_path before enchant_broker_set_dict_path my PHP instance crashes. My php.ini contains the following entries: enchant support enabled Version 1.1.0 Libenchant Version 1.5.0 or later Revision $Revision: 298870 $ ispell Ispell Provider C:\PHP\libenchant_ispell.dll myspell Myspell Provider C:\PHP\libenchant_myspell.dll Test script: --------------- <?php $broker = enchant_broker_init(); enchant_broker_get_dict_path($broker, ENCHANT_ISPELL); ?> Expected result: ---------------- Either false because no dictionary path is set yet or an empty string or some kind. Actual result: -------------- Report for php__PID__892__Date__10_14_2010__Time_10_40_17PM__834__Second_Chance_Exception_C0000005.dmp Report for php__PID__892__Date__10_14_2010__Time_10_40_17PM__834__Second_Chance_Exception_C0000005.dmp Type of Analysis Performed Crash Analysis Machine Name IWANLUIJKS-PC Operating System Unexpected Number Of Processors 4 Process ID 892 Process Image C:\PHP\php.exe System Up-Time 03:30:23 Process Up-Time 00:00:31 Thread 0 - System ID 5160 Entry point php+2dda Create time 14-10-2010 22:39:46 Time spent in user mode 0 Days 0:0:0.717 Time spent in kernel mode 0 Days 0:0:0.93 Function Arg 1 Arg 2 Arg 3 Source php_enchant!get_module+6f0 00000002 027ce2b0 00000000 php5!execute+cdf 02800080 027cdc80 02800080 php5!execute+4c25 00c0ebe8 00c0fe9c 00c0fc84 php5!execute+1f0 00000000 00000000 00000000 PHP_ENCHANT!GET_MODULE+6F0WARNING - DebugDiag was not able to locate debug symbols for php_enchant.dll, so the information below may be incomplete. In php__PID__892__Date__10_14_2010__Time_10_40_17PM__834__Second_Chance_Exception_C0000005.dmp the assembly instruction at php_enchant!get_module+6f0 in C:\PHP\ext\php_enchant.dll from The PHP Group has caused an access violation exception (0xC0000005) when trying to read from memory location 0x00000000 on thread 0 Module Information Image Name: C:\PHP\ext\php_enchant.dll Symbol Type: Export Base address: 0x003d0000 Time Stamp: Wed Jul 21 21:35:15 2010 Checksum: 0x00012284 Comments: Thanks to Pierre-Alain Joye, Ilia Alshanetsky COM DLL: False Company Name: The PHP Group ISAPIExtension: False File Description: enchant ISAPIFilter: False File Version: 5.3.3 Managed DLL: False Internal Name: ENCHANT extension VB DLL: False Legal Copyright: Copyright © 1997-2009 The PHP Group Loaded Image Name: php_enchant.dll Legal Trademarks: PHP Mapped Image Name: Original filename: php_enchant.dll Module name: php_enchant Private Build: Single Threaded: False Product Name: PHP Module Size: 32,00 KBytes Product Version: 5.3.3 Symbol File Name: php_enchant.dll Special Build: & -- Edit bug report at http://bugs.php.net/bug.php?id=53070&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53070&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53070&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53070&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53070&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53070&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53070&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53070&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53070&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53070&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53070&r=support Expected behavior: http://bugs.php.net/fix.php?id=53070&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53070&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53070&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53070&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53070&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53070&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53070&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53070&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53070&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53070&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53070&r=mysqlcfg