Class SimpleTestCompatibility

Description

Static methods for compatibility between different PHP versions.

Located in /compatibility.php (line 13)


	
			
Method Summary
 static object A copy (object $object)
 static boolean isA (object $object, string $class)
 static boolean isIdentical (mixed $first, mixed $second)
 static boolean isReference ( &$first,  &$second, mixed $first, mixed $second)
 static void setTimeout (resource $handle, integer $timeout)
Methods
static copy (line 22)

Creates a copy whether in PHP5 or PHP4.

  • return: copy.
  • access: public
static object A copy (object $object)
  • object $object: Thing to copy.
static isA (line 137)

Test to see if an object is a member of a class hiearchy.

  • return: True if class in hiearchy.
  • access: public
static boolean isA (object $object, string $class)
  • object $object: Object to test.
  • string $class: Root name of hiearchy.
static isIdentical (line 40)

Identity test. Drops back to equality + types for PHP5 objects as the === operator counts as the stronger reference constraint.

  • return: True if identical.
  • access: public
static boolean isIdentical (mixed $first, mixed $second)
  • mixed $first: Test subject.
  • mixed $second: Comparison object.
static isReference (line 110)

Test for two variables being aliases.

  • return: True if same.
  • access: public
static boolean isReference ( &$first,  &$second, mixed $first, mixed $second)
  • mixed $first: Test subject.
  • mixed $second: Comparison object.
  • &$first
  • &$second
static setTimeout (line 163)

Sets a socket timeout for each chunk.

  • access: public
static void setTimeout (resource $handle, integer $timeout)
  • resource $handle: Socket handle.
  • integer $timeout: Limit in seconds.

Documentation generated on Sun, 04 May 2008 09:21:22 -0500 by phpDocumentor 1.3.0