Class PhpSecInfo_Test_Curl_File_Support

Description

Test class for CURL file_support

Checks for CURL file:// support; if this is installed, it can be used to bypass safe_mode and open_basedir

  • author: Ed Finkler <coj@funkatron.com>
  • todo: I believe this hole was plugged in PHP 5.1.5 and 4.4.4(?). This test should be updated to take this into consideration (check the version and decide what to do)

Located in /PhpSecInfo/Test/Curl/file_support.php (line 25)

PhpSecInfo_Test
   |
   --PhpSecInfo_Test_Curl
      |
      --PhpSecInfo_Test_Curl_File_Support
Variable Summary
string $test_name
Method Summary
integer _execTest ()
void _setMessages ()
Variables
string $test_name = "file_support" (line 33)

This should be a unique, human-readable identifier for this test


Redefinition of:
PhpSecInfo_Test::$test_name
This should be a unique, human-readable identifier for this test

Inherited Variables

Inherited from PhpSecInfo_Test_Curl

PhpSecInfo_Test_Curl::$test_group

Inherited from PhpSecInfo_Test

PhpSecInfo_Test::$_language
PhpSecInfo_Test::$_message
PhpSecInfo_Test::$_messages
PhpSecInfo_Test::$_result
Methods
_execTest (line 42)

Checks to see if libcurl's "file://" support is enabled by examining the "protocols" array

in the info returned from curl_version()

integer _execTest ()

Redefinition of:
PhpSecInfo_Test::_execTest()
The "meat" of the test. This is where the real test code goes. You should override this when extending
_setMessages (line 60)

Set the messages specific to this test

void _setMessages ()

Redefinition of:
PhpSecInfo_Test_Curl::_setMessages()
Set the messages for Curl tests

Inherited Methods

Inherited From PhpSecInfo_Test_Curl

PhpSecInfo_Test_Curl::isTestable()
PhpSecInfo_Test_Curl::_setMessages()

Inherited From PhpSecInfo_Test

PhpSecInfo_Test::PhpSecInfo_Test()
PhpSecInfo_Test::getBooleanIniValue()
PhpSecInfo_Test::getMessage()
PhpSecInfo_Test::getResult()
PhpSecInfo_Test::getTestGroup()
PhpSecInfo_Test::getTestName()
PhpSecInfo_Test::isTestable()
PhpSecInfo_Test::returnBytes()
PhpSecInfo_Test::setMessageForResult()
PhpSecInfo_Test::setTestName()
PhpSecInfo_Test::test()
PhpSecInfo_Test::_execTest()
PhpSecInfo_Test::_setMessage()
PhpSecInfo_Test::_setMessages()
PhpSecInfo_Test::_setResult()

Documentation generated on Tue, 24 Oct 2006 10:53:34 -0400 by phpDocumentor 1.3.0RC3