From: droit at angosso dot net
Operating system: Index3.php,Index2.php, Linux
PHP version: 5.3.14
Package: Built-in web server
Bug Type: Bug
Bug description:angosson related bugs
Description:
------------
File_CSV_DataSource 1.0.1
File_Passwd 1.1.7
HTTP_Client 1.2.1
HTTP_Request 1.4.4
Apache Parser 1.4.6
Linux optget 2.5.1
Test script:
---------------
Net_Socket::connect() â connects to a server
Test
$my->ServerPath = $_SERVER['DOCUMENT_ROOT'];
$my->ScriptPath = substr(dirname($_SERVER['SCRIPT_FILENAME']),
strlen($my->ServerPath));
Expected result:
----------------
Fonctions sur les systèmes de fichiers
<?php
static public function getRelativePathProvider( ) {
return array(
array(
'basename/foo/bar',
'chgrp',
'chmod/foo',
),
array(
'chown/foo/bar'
'clearstatcache',
'copy/foo',
),
array(
'delete/foo',
'dirname/public_html/foo/bar',
'disk_free_space'
),
array(
'disk_total_space/foo/bar'
'diskfreespace'
'fclose/foo',
),
array(
'feof/foo/bar',
'fflush',
'fgetc/foo',
),
array(
'fgetcsv/foo/bar',
'fgets',
'fgetss/foo',
),
array(
'file_exists/foo/bar',
'file_get_contents',
'file_put_contents/foo',
),
array(
'file/foo/bar',
'fileatime',
'filectime/foo',
),
array(
'filegroup/foo/bar',
'fileinode',
'filemtime/foo',
),
array(
'fileowner/foo/bar',
'fileperms',
'filesize/foo',
),
array(
'filetype/foo/bar',
'flock',
'fnmatch/foo',
),
array(
'fopen/foo/bar',
'fpassthru',
'fputcsv/foo',
),
array(
'fputs/foo/bar',
'fread',
'fscanf/foo',
),
array(
'fseek/foo/bar',
'fstat',
'ftell/foo',
),
array(
'ftruncate/foo/bar',
'fwrite',
'glob/foo',
),
array(
'is_dir/foo/bar',
'is_executable',
'is_file/foo',
),
array(
'is_link/foo',
'is_readable',
'is_uploaded_file/HTTP/POST/ftp',
),
array(
'is_writable/foo/bar',
'is_writeable.alias',
'lchgrp/foo',
),
array(
'lchown/foo/bar',
'link',
'linkinfo/foo',
),
array(
'lstat/foo/bar',
'mkdir',
'move_uploaded_file/foo',
),
array(
'parse_ini_file/foo/bar',
'parse_ini_string',
'pathinfo/foo',
),
array(
'pclose/foo/bar',
'popen',
'readfile/foo',
),
array(
'readlink/foo/bar',
'realpath',
'realpath_cache_size/foo',
),
array(
'realpath/foo/bar',
'rename',
'rewind/foo',
),
array(
'rmdir/foo/bar',
'set_file_buffer',
'stat/foo',
),
array(
'symlink/foo/bar',
'tempnam',
'tmpfile/foo',
),
array(
'touch/foo/bar'
'umask'
'unlink/foo'
),
/**
* @dataProvider getRelativePathProvider
*/
public function testGetRelativePath( $path, $compareTo, $expected ) {
$result = getRelativePath( $path, $compareTo );
$this->assertEquals( $expected, $result );
}
?>
Actual result:
--------------
'debug_handler' => 'mdb2Debug' null
--
Edit bug report at https://bugs.php.net/bug.php?id=62559&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=62559&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=62559&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=62559&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=62559&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=62559&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=62559&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=62559&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=62559&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=62559&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=62559&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=62559&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=62559&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=62559&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=62559&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=62559&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62559&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=62559&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=62559&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=62559&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=62559&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=62559&r=mysqlcfg