php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #42762 extension specific installation docs for windows
Submitted: 2007-09-25 16:15 UTC Modified: 2007-11-21 15:25 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: todd at magnifisites dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
 [2007-09-25 16:15 UTC] todd at magnifisites dot com
Description:
------------
The online documentation is slightly confusing in that it states there are no configuration directives defined in php.ini whereas there actually is an extension .dll that must be uncommented for Windows users.

Reproduce code:
---------------
Current online documentation states ...

Runtime Configuration

This extension has no configuration directives defined in php.ini.

Actual result:
--------------
Runtime Configuration

This extension has no configuration directives defined in php.ini except for Windows users.  Windows users must uncomment the pspell extension line and restart the HTTP server:

extension=php_pspell.dll

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-25 18:30 UTC] preinheimer@php.net
The instalation section indicates;
Installation
If you have the libraries needed add the --with-pspell[=dir] option when compiling PHP. 

Note to Win32 Users: In order for this extension to work, there are DLL files that must be available to the Windows system PATH. See the FAQ titled "How do I add my PHP directory to the PATH on Windows" for information on how to do this. Although copying DLL files from the PHP folder into the Windows system directory also works (because the system directory is by default in the systems PATH), it is not recommended. This extension requires the following files to be in the PATH: aspell-15.dll from the bin folder of the aspell installation. 

Do you not feel that referencing the DLLs in the instalation secion is sufficient? While the lines are blurred on windows, adding a DLL counts as an instalation step, not runtime configuration. 

Win32 support is available only in PHP 4.3.3 and later versions. Also, at least aspell version 0.50 is required.
 [2007-09-25 19:28 UTC] todd at magnifisites dot com
>>Do you not feel that referencing the DLLs in the instalation secion is sufficient?

I had assumed the DLLs being referred to were the aspell DLLs, not the extension DLLs in the runtime configuration.  Indeed, the aspell DLLs need to be in the PATH as mentioned in the Win32 note you quoted.  But the statement "This extension has no configuration directives defined in php.ini" is not a true statement.  For Windows users there is indeed a runtime configuration directive that needs to be uncommented.  I think the extra note to Windows users would be very beneficial.

>>While the lines are blurred on windows, adding a DLL counts
as an instalation step, not runtime configuration.

I agree, but once the PATH has been set for a Windows installation, the php_*.dll files merely need to be uncommented in the php.ini and the HTTP server restarted.  We are no longer adding DLLs at this point, really.  They are already "there" in the extensions directory and they will now be dynamically loaded upon server start.  What we are doing is making adjustments to the php.ini (runtime configuration) file.  The documentation clearly states that "This extension has no configuration directives defined in php.ini."  I think this causes confusion.

Thanks for listening,
Todd
 [2007-09-26 16:21 UTC] philip@php.net
I'm hijacking this bug report because the problem is larger than pspell.

Currently there is not a clearly defined method for documenting extension specific Windows installation information. First, a few related entities that are used in the docs (count):

* &ext.windows.path.dll; (7)
  This talks about path and currently is only used when external 
  libraries are required (Example: LDAP needing libeay32.dll).

* &no.config; (63)
  This states that no configuration options exist for it. I don't
  feel this should be changed to worry about the extension ini
  option.

* &pecl.windows.download; (21)
  Links to where a person can download PECL dll files.

We don't always mention the php_* file (like php_pspell.dll) when we should. However, we can't say they are required because although our compiled Windows binaries may not have it... others may. But still, mentioning them is a good idea. They will exist in either the main distribution, and/or in the installer, and/or in the separate PECL binaries download, and/or at the above site.

What we need is a clearly defined structure for this topic... one that's generic and flexible enough to meet the needs of every extension, both bundled and not. Someone feel free to look at a few different ones (like ref.mysql, ref.crack, ref.mailparse, and ref.pspell) and come up with something.

 [2007-11-21 15:25 UTC] vrana@php.net
Please track these long-term decisions in RFC.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 18 03:00:02 2026 UTC