From: robert dot johnson at icap dot com Operating system: Win XP SP 3 PHP version: 5.4.7 Package: Enchant related Bug Type: Bug Bug description:enchant_broker_free_dict destroys broker resource
Description: ------------ Calling enchant_broker_free_dict destroys the resource created by enchant_broker_init(), instead of just the dictionary resource. Test script: --------------- if ( PHP_SAPI != 'cli' ) header('Content-Type:text/plain;charset=UTF-8'); $r = enchant_broker_init(); debug_zval_dump($r); $d = enchant_broker_request_pwl_dict($r, 'c:\mydict.dic'); enchant_broker_free_dict($d); debug_zval_dump($r); echo "End.\r\n"; Expected result: ---------------- resource(1) of type (enchant_broker) refcount(2) resource(1) of type (enchant_broker) refcount(2) End. Actual result: -------------- resource(1) of type (enchant_broker) refcount(2) resource(1) of type (Unknown) refcount(2) End. -- Edit bug report at https://bugs.php.net/bug.php?id=63121&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63121&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63121&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63121&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63121&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=63121&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=63121&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63121&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63121&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63121&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63121&r=support Expected behavior: https://bugs.php.net/fix.php?id=63121&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63121&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63121&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63121&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63121&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63121&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63121&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63121&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63121&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63121&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63121&r=mysqlcfg