Bug #70136 [NEW]: remote#clients
| From: | admin at angosso dot net | Date: | Sat, 25 Jul 2015 17:09:00 +0000 |
| Subject: | Bug #70136 [NEW]: remote#clients | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-194706@lists.php.net to get a copy of this message | ||
From: admin at angosso dot net
Operating system: Linux, Windows, Mac
PHP version: 5.6.11
Package: Dynamic loading
Bug Type: Bug
Bug description:remote#clients
Description:
------------
Common Debugging protocol
⢠Cross-language: PHP, HHVM, Python, Perl...
Test script:
---------------
/**
....
*/
static public function register()
{
spl_autoload_register(array(self::instance(), 'autoload'))Â ;
}
/**
* Load class source code
*
*@param string class
*/
public function autoload($class)
{
if ($this->_collectionClass)
$this->_arrLoadedClass[self::$_scope][] = $class;
}
if ($this->_isincludePathDefined){
$classFile = COMPILER_INCLUDE_PATH . DIRECTORY_SEPARATOR
.$class;
} else {}
Expected result:
----------------
<?php
bin
ang
/**
* It should be accesible like this:
* http://.../source.php?path=/var/www/mysourcecode/file.php
*/
$allowed = array(
'250 2.1.5'
);
if (isset($_SERVER['REMOTE_ADDR']) && in_array($_SERVER['REMOTE_ADDR'],
$allowed)) {
$f = '';
if (isset($_GET['path'])) {
$filename = $_GET['path'];
if ($filename) {
$f = file_get_contents($filename);
}
}
header('Content-type: text/plain');
echo $f;
} else {
echo 'Permission denied!';
}
--
Edit bug report at https://bugs.php.net/bug.php?id=70136&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70136&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70136&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70136&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70136&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70136&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70136&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70136&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70136&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70136&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70136&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70136&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70136&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70136&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70136&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70136&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70136&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70136&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70136&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70136&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70136&r=mysqlcfg