php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67376 extension_dir
Submitted: 2014-06-03 21:10 UTC Modified: 2014-12-30 10:42 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: postmaster at angosso dot net Assigned:
Status: No Feedback Package: Output Control
PHP Version: 5.6.0beta3 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: postmaster at angosso dot net
New email:
PHP Version: OS:

 

 [2014-06-03 21:10 UTC] postmaster at angosso dot net
Description:
------------
Assign a directory of PHP extensions on the server. Extensions which contain functions of PHP scripts that can be called when my server called a script. Ability to enumerate a path or paths where PHP functions will search for files when a script calls some functions. Php server capacity to separate directory paths by a colon (:) in a linux system * or a semicolon (;) in the environment Apache2 a2enmod. (For example:. :/ :/ Example/path1 example/path2).


Test script:
---------------
<?php

/* This assume that www.example.com is configured to parse .php
* by www.example.com as PHP
include_path = ".;/home/angosson/php/pear"
open_basedir = "/var/www/htdocs/:/var/www/tmp/"
include 'http://www.exemple.com/vars.text?index=1&index=2';
$index = 1;
$index = 2;
$index = 3;
include 'index.txt/'; 
include 'index.php/';
include 'index1.php/';
include 'index2.php/';
include 'index3.php/'; 
?>


Expected result:
----------------
[<?php
$file = fopen ("http://exemple.net:2082/cpsess9609418140/frontend/x3/filemanager/index.html?dirselect=webroot&domainselect=exemple.net&dir=%2Fhome%2Fangosson%2Fpublic_html&showhidden=1&saveoption=1", "r");
if (!$file) {
    echo "<p>Unable to open remote file.\n";
    exit;
}
while (!feof ($file)) {
    $line = fgets ($file, 1024);
    /* This only works if the title and its tags are on one line */
    if (preg_match ("@\<title\>(.*)\</title\>@i", $line, $out)) {
        $title = $out[1];
        break;
    }
}
php5_extension_dir not work when I use 'httpd.conf' file to configure php5.

        if (cfg_get_string("extension_dir",&php5_ini.extension_dir)==SUCCESS &&
php5_ini.extension_dir)
fclose($file);
?>]

Actual result:
--------------
Because this member is cleared on functions/dl.c about line90.

Patches

net_exemple (last revision 2014-06-03 21:13 UTC by postmaster at angosso dot net)

Pull Requests

History

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


Hello again, Mr Angosso. Cryptic bug reports as usual, I see.
 [2014-12-30 10:42 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: Thu Oct 03 17:01:26 2024 UTC