Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Empty array should not trigger notice
3
--FILE--
4
<?php
5
set_include_path(realpath(dirname(__FILE__) . '/../../../') . PATH_SEPARATOR . get_include_path());
6
require 'XML/RPC2/Backend/Php/Value.php';
7
class Empty_Array_Value_Test extends XML_RPC2_Backend_Php_Value
8
{
9
}
10
 
11
{
12
    function errorHandler ($errno, $errstr, $errfile, $errline,
13
$errcontext)
14
    {
15
        echo $errno;
16
    }
17
 
18
    error_reporting(E_ALL);
19
    set_error_handler('errorHandler');
20
 
21
 
22
    $array_class = new Empty_Array_Value_Test();
23
    $array_class->createFromNative(array());
24
}
25
--EXPECT--