Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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