php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36163 Curl functionality on Apache2
Submitted: 2006-01-26 12:29 UTC Modified: 2006-01-26 12:33 UTC
From: aemulus at hotmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Windows XP 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: aemulus at hotmail dot com
New email:
PHP Version: OS:

 

 [2006-01-26 12:29 UTC] aemulus at hotmail dot com
Description:
------------
Fresh install of Apache 2.0.55 MSI installer.
Fresh install of PHP 5.1.2 unzipped 8mb + PECL extensions in C:\php

Extensiondir=C:\php\ext  (also tried C:/php/ext, and both with "/" on the end, also in quotations and without for a combination of 6 different path patterns)

Copied ssleay32.dll, and libeay32.dll to C:\Windows\System32 (also tried the apache folder, apache/bin folder, c:\windows, etc)

Core PHP works on Apache, so PHP is installed correctly.
No error on starting Apache (nothing saying dll can't be found, etc... EVER!!) < -- grr

Only one php.ini exists in system located in c:\php .
Uncommented "extension=php_curl.dll" and added "extension=php_win32service.dll".

Reproduce code:
---------------
Win32_Query_Service - Bug #1
-----------------------------------------------
<?php
$test1=win32_query_service_status("time");
print $test1;
?>

Curl ---------------- Bug #2
-----------------------------------------------
<?php
$test2=geturlfile("http://www.google.ca");
print $test2;

function geturlfile($link2) {
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,$link2);
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
{
return "0";
} else {
return $buffer;
}
}
?>

Expected result:
----------------
BUG#1 RESULT: Fatal error: Call to undefined function win32_query_service_status() in bug1.php on line 2

BUG#2 RESULT: Fatal error: Call to undefined function curl_init() in bug2.php on line 3

Actual result:
--------------
Code is short and sweet, dll's are all in their proper locations according to the documentation. Additions were made to the httpd.conf file according to the PHP 5 section in the install.txt, and both of these dll's provide zero functionality as they are not being loaded.

Please advise.

Thank you

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-26 12:33 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 05:01:33 2024 UTC