Doc #14741 [Opn->Bgs]: php_http.dll not in "PHP Extensions" Table describing dependencies

From: Date: Sun, 05 Oct 2008 02:37:10 +0000
Subject: Doc #14741 [Opn->Bgs]: php_http.dll not in "PHP Extensions" Table describing dependencies
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11121@lists.php.net to get a copy of this message
Edit report at http://pecl.php.net/bugs/bug.php?id=14741&edit=1 ID: 14741 User updated by: 0587terry at charter dot net Reported By: 0587terry at charter dot net -Status: Open +Status: Bogus Id: 14741 Type: Documentation Problem Package: Documentation Operating System: Windows XP PHP Version: 5.1.6 New Comment: After more exhausting research of the bug-tracker, I discovered: a) I did not use the Windows Installer for PHP as I thought; there is no installer for 5.1.6 -- which means modules may not have come with it. b) The only zipped PECL I had on my hard drive was 5.1.2, but *individual* (like HTTP) package versions for download here use a different versioning system, so I was not even considering version numbers until I just "noticed" this. c) I don't know if PECL is responsible for the *entire* "ext" directory contents or just some of them. d) PECL 5.1.6 seems to be missing important modules (like MYSQL and MYSQLI) -- indeed, mysql connection functions return "undefined" if you are not running these modules. e) Best solution (*until missing modules are supplied in an update*): 1) Rename the "ext" directory to something like "ext-BACKUP-PECL-5-1-2". 2) Unzip contents of "pecl-5.1.6-Win32.zip" into a *new* "ext" directory. 3) Copy missing modules as you need them (MYSQL, MYSQLI, GD2, IMAP) from the old into the new. 4) Restart the webserver and use php_info() and/or get_loaded_extensions() to see that the extensions you need are loaded. Previous Comments: ------------------------------------------------------------------------ [2008-10-04 19:00:19] 0587terry at charter dot net Description: ------------ (Note: I am submitting a ** Documentation ** bug report, but I am describing an issue that seems should be addressed by Documentation.) I have the Windows version of PHP, which came with PECL packages. I am trying to use a redirect in one of my scripts, and it turns out that "php_http.dll" is not loading, even after editing my "php.ini". I get an error "Fatal error: Call to undefined function http_redirect()". ** PECL Documentation ** : There is a table called "PHP Extensions" on this page... http://us2.php.net/manual/en/install.windows.extensions.php#install.windows.extensions.overview ...listing various PECL dll packages for Windows, and whether or not they require additional dlls. However, "php_http.dll" is not listed. My PATH variable includes the installation and extension directories, and "php_http.dll" is already in the extension directory. "php.ini" is edited properly, the configuration line is spelled correctly, and php_info() tells me the correct configuration file is loading after I restart Apache 2.2.3. Other extensions I have configured are loading properly -- it is only the HTTP package that refuses to load, per using get_loaded_extensions(). However, I can't find out what ** else ** I need to do, because the "php_http.dll" is missing from that table in the Windows installation instructions. I ask you to please update the Windows installation instructions with what else needs to be done to make the HTTP package work. Reproduce code: --------------- http_redirect('http://localhost/someNewPage.php'); Expected result: ---------------- I expect that the page should redirect the user to the specified page. Actual result: -------------- Fatal error: Call to undefined function http_redirect() in [OBSCURING PRIVATE INFO] ------------------------------------------------------------------------ -- Edit this bug report at http://pecl.php.net/bugs/bug.php?id=14741&edit=1

« previous php.pear.doc (#11121) next »