php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34099 windows extension_dir
Submitted: 2005-08-12 16:22 UTC Modified: 2005-08-12 16:47 UTC
From: mikerob818 at cs dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Windows 98
Private report: No CVE-ID: None
 [2005-08-12 16:22 UTC] mikerob818 at cs dot com
Description:
------------
In reference to your response to Bug Report #34083
PHP Manual: Errors, Inconsistencies, and Omissions

I think I have gone through the PHP manual thoroughly but still can't get PHP5 to work with Personal Web Server 4.  This is Part 2 of my bug report and I would appreciate a response.

Thanks,

Robin 
*****************************************
Documentation Inconsistencies

Installation of extensions on Windows

The default location PHP searches for extensions is c:\php4\extensions in PHP 4 and c:\php5 in PHP 5. To change this setting to reflect your setup of PHP edit your php.ini file: 

? You will need to change the extension_dir setting to point to the directory where your extensions lives, or where you have placed your php_*.dll files. Please do not forget the last backslash. For example: 

extension_dir = c:/php/extensions/ 
Microsoft IIS / PWS
General considerations for all installations of PHP with IIS

? Be sure the extension_dir and doc_root PHP directives are appropriately set in php.ini. These directives depend on the system that PHP is being installed on. In PHP 4, the extension_dir is extensions while with PHP 5 it's ext. So, an example PHP 5 extensions_dir value is "c:\php\ext" and an example IIS doc_root value is "c:\Inetpub\wwwroot". 


MySql Functions

Installation on Windows Systems

As with enabling any PHP extension (such as php_mysql.dll), the PHP directive extension_dir should be set to the directory where the PHP extensions are located. An example extension_dir value for PHP 5 is c:\php\ext 

********************
The last 2 sets of instructions for extension_dir  are different from the first set of instructions. (In fact, all 3 are different in that the last instruction doesn't enclose c:\php\ext in quotes.)   In addition, the default location for PHP5 extensions is stated as c:\PHP5 rather than c:\php\ext and there is no explanation for it. 




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-12 16:47 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Both ways work nowadays. But I've changed all them to '\' (windows style).
The default extension_dir for PHP 5 is right (C:\php5).
 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=10e8d7e62768da3c3007eee8123bd5db927c8cbd
Log: fix #34099: wrong slashes in the extension_dir directive
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 22:01:31 2025 UTC