????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 18.190.154.145
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/home/b8009/php-5.6.22/ext/standard/tests/class_object/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/b8009/php-5.6.22/ext/standard/tests/class_object/get_class_variation_001.phpt
--TEST--
Test get_class() function : usage variations  - passing unexpected types.
--FILE--
<?php
/* Prototype  : proto string get_class([object object])
 * Description: Retrieves the class name 
 * Source code: Zend/zend_builtin_functions.c
 * Alias to functions: 
 */

echo "*** Testing get_class() : usage variations ***\n";

//  Note: basic use cases in Zend/tests/009.phpt

//get an unset variable
$unset_var = 10;
unset ($unset_var);

//array of values to iterate over
$values = array(

      // int data
      0,
      1,
      12345,
      -2345,

      // float data
      10.5,
      -10.5,
      10.1234567e10,
      10.7654321E-10,
      .5,

      // array data
      array(),
      array(0),
      array(1),
      array(1, 2),
      array('color' => 'red', 'item' => 'pen'),

      // null data
      NULL,
      null,

      // boolean data
      true,
      false,
      TRUE,
      FALSE,

      // empty data
      "",
      '',

      // string data
      "string",
      'string',

      // undefined data
      $undefined_var,

      // unset data
      $unset_var,
);

// loop through each element of the array for object

foreach($values as $value) {
      echo @"\nArg value: $value (type: " . gettype($value) . ")\n";
      var_dump( get_class($value) );
};

echo "Done";
?>
--EXPECTF--
*** Testing get_class() : usage variations ***

Notice: Undefined variable: undefined_var in %sget_class_variation_001.php on line 58

Notice: Undefined variable: unset_var in %sget_class_variation_001.php on line 61

Arg value: 0 (type: integer)

Warning: get_class() expects parameter 1 to be object, integer given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: 1 (type: integer)

Warning: get_class() expects parameter 1 to be object, integer given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: 12345 (type: integer)

Warning: get_class() expects parameter 1 to be object, integer given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: -2345 (type: integer)

Warning: get_class() expects parameter 1 to be object, integer given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: 10.5 (type: double)

Warning: get_class() expects parameter 1 to be object, double given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: -10.5 (type: double)

Warning: get_class() expects parameter 1 to be object, double given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: 101234567000 (type: double)

Warning: get_class() expects parameter 1 to be object, double given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: 1.07654321E-9 (type: double)

Warning: get_class() expects parameter 1 to be object, double given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: 0.5 (type: double)

Warning: get_class() expects parameter 1 to be object, double given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: Array (type: array)

Warning: get_class() expects parameter 1 to be object, array given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: Array (type: array)

Warning: get_class() expects parameter 1 to be object, array given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: Array (type: array)

Warning: get_class() expects parameter 1 to be object, array given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: Array (type: array)

Warning: get_class() expects parameter 1 to be object, array given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: Array (type: array)

Warning: get_class() expects parameter 1 to be object, array given in %sget_class_variation_001.php on line %d
bool(false)

Arg value:  (type: NULL)

Warning: get_class() called without object from outside a class in %sget_class_variation_001.php on line %d
bool(false)

Arg value:  (type: NULL)

Warning: get_class() called without object from outside a class in %sget_class_variation_001.php on line %d
bool(false)

Arg value: 1 (type: boolean)

Warning: get_class() expects parameter 1 to be object, boolean given in %sget_class_variation_001.php on line %d
bool(false)

Arg value:  (type: boolean)

Warning: get_class() expects parameter 1 to be object, boolean given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: 1 (type: boolean)

Warning: get_class() expects parameter 1 to be object, boolean given in %sget_class_variation_001.php on line %d
bool(false)

Arg value:  (type: boolean)

Warning: get_class() expects parameter 1 to be object, boolean given in %sget_class_variation_001.php on line %d
bool(false)

Arg value:  (type: string)

Warning: get_class() expects parameter 1 to be object, string given in %sget_class_variation_001.php on line %d
bool(false)

Arg value:  (type: string)

Warning: get_class() expects parameter 1 to be object, string given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: string (type: string)

Warning: get_class() expects parameter 1 to be object, string given in %sget_class_variation_001.php on line %d
bool(false)

Arg value: string (type: string)

Warning: get_class() expects parameter 1 to be object, string given in %sget_class_variation_001.php on line %d
bool(false)

Arg value:  (type: NULL)

Warning: get_class() called without object from outside a class in %sget_class_variation_001.php on line %d
bool(false)

Arg value:  (type: NULL)

Warning: get_class() called without object from outside a class in %sget_class_variation_001.php on line %d
bool(false)
Done

Youez - 2016 - github.com/yon3zu
LinuXploit