note 104416 rejected from function.enchant-broker-request-pwl-dict by danbrown
| From: | danbrown@php.net | Date: | Tue, 14 Jun 2011 19:12:13 +0000 |
| Subject: | note 104416 rejected from function.enchant-broker-request-pwl-dict by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180529@lists.php.net to get a copy of this message | ||
Note Submitter: whcrow at a3d dot od dot ua
----
Does anyone know how to use it? It seems that this function corrupts the resource in some way.
<?php
$broker = enchant_broker_init();
echo $broker.'<br>';
enchant_broker_request_pwl_dict($broker, '/personal_words_list.pwl');
echo $broker.'<br>';
enchant_broker_free($broker);
?>
Result:
Resource id #2
Resource id #2
Warning: enchant_broker_free(): 2 is not a valid enchant_broker resource in /test.php on line 6