Bug #65688 [NEW]: dir-containing-phpinifile
| From: | mbiama at angosso dot com | Date: | Tue, 17 Sep 2013 10:38:20 +0000 |
| Subject: | Bug #65688 [NEW]: dir-containing-phpinifile | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-181622@lists.php.net to get a copy of this message | ||
From: mbiama at angosso dot com
Operating system: GNU/LINUX-Apache2
PHP version: 5.4.19
Package: Built-in web server
Bug Type: Bug
Bug description:dir-containing-phpinifile
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 bug report at https://bugs.php.net/bug.php?id=65688&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65688&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65688&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65688&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65688&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65688&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65688&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65688&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65688&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65688&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65688&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=65688&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=65688&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65688&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65688&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65688&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65688&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65688&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65688&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65688&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65688&r=mysqlcfg