php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66202 Enchant old docs
Submitted: 2013-11-29 13:13 UTC Modified: 2016-06-25 16:50 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: enyby at yandex dot ru Assigned: cmb (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: enyby at yandex dot ru
New email:
PHP Version: OS:

 

 [2013-11-29 13:13 UTC] enyby at yandex dot ru
Description:
------------
In Enchant 1.1.0 added few functions and constants not listed in php docs:

- add enchant_broker_set_dict_path and enchant_broker_get_dict_path. Allows custom locations for the ispell and myspell dictionnaries
- add ENCHANT_ISPELL and ENCHANT_MYSPELL constants

From: http://pecl.php.net/package-changelog.php?package=enchant
---
From manual page: http://www.php.net/enchant.constants
---

Some code from enchant.c:

Test script:
---------------
#define PHP_ENCHANT_MYSPELL 1
#define PHP_ENCHANT_ISPELL 2

ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_broker_set_dict_path, 0, 0, 3)
	ZEND_ARG_INFO(0, broker)
	ZEND_ARG_INFO(0, name)
	ZEND_ARG_INFO(0, value)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_enchant_broker_get_dict_path, 0, 0, 2)
	ZEND_ARG_INFO(0, broker)
	ZEND_ARG_INFO(0, name)
ZEND_END_ARG_INFO()

	PHP_FE(enchant_broker_set_dict_path,	arginfo_enchant_broker_set_dict_path)
	PHP_FE(enchant_broker_get_dict_path,	arginfo_enchant_broker_get_dict_path)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-04 11:54 UTC] krakjoe@php.net
-Assigned To: +Assigned To: pajoye
 [2016-06-25 16:50 UTC] cmb@php.net
-Status: Assigned +Status: Closed -Assigned To: pajoye +Assigned To: cmb
 [2016-06-25 16:50 UTC] cmb@php.net
Thanks for your report. Apparently, that issue has already been
resolved in the meantime.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 12:00:02 2026 UTC