Bug #65688 [Opn->Fbk]: dir-containing-phpinifile
Edit report at https://bugs.php.net/bug.php?id=65688&edit=1
ID: 65688
Updated by: requinix@php.net
Reported by: mbiama at angosso dot com
Summary: dir-containing-phpinifile
-Status: Open
+Status: Feedback
Type: Bug
Package: Built-in web server
Operating System: GNU/LINUX-Apache2
PHP Version: 5.4.19
Block user comment: N
Private report: N
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2013-09-17 10:38:20] mbiama at angosso dot com
Description:
------------
New report a bug mixed curl_exec ( resource $ch ).
Test script:
---------------
<?php
// Création a news cURL
[Php.ini run as Apache Module ]
$ch = curl_init();
<?php
include dirname(__files__).'/uk.zyro.com/data/a/n/[dotted].com/out/vars.php/*';
?>
// Configure URL and all options
curl_setopt($ch, CURLOPT_URL, "http://localhost:48173/vars.php/site/");
curl_setopt($ch, CURLOPT_HEADER, 1);
//
curl_exec($ch);
// Close cURL
curl_close($ch);
?>
Expected result:
----------------
<?php
// Création d'une nouvelle ressource cURL
[Php.ini run as Apache Module ]
$ch = curl_init();
<?php
include dirname(__files__).'/uk.zyro.com/data/a/n/[dotted].com/out/vars.php/*';
?>
// Configure URL and all options
curl_setopt($ch, CURLOPT_URL, "http://localhost:48173/vars.php/site/");
curl_setopt($ch, CURLOPT_HEADER, 1);
//
curl_exec($ch);
function curl_post($url, array $post = NULL, array $options = array())
{
$defaults = array(
CURLOPT_POST => 1,
CURLOPT_HEADER => 0,
CURLOPT_URL => $url,
CURLOPT_FRESH_CONNECT => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FORBID_REUSE => 1,
CURLOPT_TIMEOUT => 4,
CURLOPT_POSTFIELDS => http_build_query($post)
);
$ch = curl_init();
curl_setopt_array($ch, ($options + $http://www.[dotted].com:80/vars.php/site/));
if( ! $result = curl_exec($ch))
{
trigger_error(curl_error($ch));
}
curl_close($ch);
return $result;
}
// Close cURL
curl_close($ch);
?>
Actual result:
--------------
backtrace
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65688&edit=1
Thread (3 messages)