php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65688 dir-containing-phpinifile
Submitted: 2013-09-17 10:38 UTC Modified: 2013-10-15 11:54 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:0 of 2 (0.0%)
From: mbiama at angosso dot com Assigned:
Status: No Feedback Package: Built-in web server
PHP Version: 5.4.19 OS: GNU/LINUX-Apache2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
24 + 34 = ?
Subscribe to this entry?

 
 [2013-09-17 10:38 UTC] 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

Patches

ang (last revision 2013-09-17 10:44 UTC by mbiama at angosso dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-09-17 17:06 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2013-09-17 17:06 UTC] requinix@php.net
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.



 [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 22:01:32 2024 UTC