php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22752 Can not load php_pdf.dll with ISAPI module
Submitted: 2003-03-17 14:13 UTC Modified: 2003-03-18 09:36 UTC
From: jwhittenburg at iss dot net Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 4.3.1 OS: Windows 2000 SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jwhittenburg at iss dot net
New email:
PHP Version: OS:

 

 [2003-03-17 14:13 UTC] jwhittenburg at iss dot net
When running PHP under IIS as an ISAPI module I am unable to load/use the php_pdf.dll extension.  This has been replicated on two seperate servers.  When doing a phpinfo() the PDF section does not display.  When running a script the error is "Fatal error: Call to undefined function: pdf_new() in ...".  Other extensions such as php_mssql.dll load just fine in this mode.

When changing the IIS configuration to run PHP as a CGI the php_pdf.dll extension then loads (is shown in phpinfo())and scripts run normally.

The copy of PHP 4.3.1 is the zipped binary from the php.net web site.  All the dlls are fresh and a new install a php was tested on the test server.  PHP is installed in C:\PHP.  The servers are running Windows 2000 SP2 with current hotfixes, IIS and MSSQL 2000 SP3.  The only other additional extension loaded is php_mssql.dll.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-17 20:00 UTC] sniper@php.net
Set the "extension_dir" to have full path to the extension directory. 

 [2003-03-18 08:12 UTC] jwhittenburg at iss dot net
"extension_dir" is (and was already) set to the full path of the the extension directory.

; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php\extensions"

Even if it was not, why would this work as CGI and not as ISAPI?
 [2003-03-18 08:39 UTC] edink@php.net
Let me guess: your php.ini is in c:\php?
 [2003-03-18 08:42 UTC] jwhittenburg at iss dot net
PHP.INI is in C:\WINNT, there is no PHP.INI in C:\PHP.
 [2003-03-18 08:53 UTC] edink@php.net
What is the location of php.ini printed under:

Configuration File (php.ini) Path

in the phpinfo() output?
 [2003-03-18 08:54 UTC] edink@php.net
Also does extension_dir in phpinfo print correct value?
 [2003-03-18 09:23 UTC] jwhittenburg at iss dot net
From phpinfo()

Configuration File (php.ini) Path C:\WINNT\php.ini
extension_dir c:\php\extensions c:\php\extensions
 [2003-03-18 09:36 UTC] edink@php.net
I have just checked in the exact same setup you have and pdf support shows up just fine in phpinfo under iis. This is not a php bug but most likely a local configuration problem. My only advice at this point is to re-check you configuration, make sure you're using correct php.ini file and that extension_dir= and extension=php_pdf.dll lines are correct.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 22:01:28 2024 UTC