File: bug011.phpt

package info (click to toggle)
php-msgpack 1%3A3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,224 kB
  • sloc: ansic: 3,925; xml: 458; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #011 (Check for segfault with empty array structures)
--FILE--
<?php

    $items = array( );
    foreach( range( 0, 1024 ) as $r ) {
        $items[] = array(
            'foo' => array( )
        );
    }
    var_dump( count( msgpack_unpack( msgpack_pack( $items ) ) ) );

?>
--EXPECT--
int(1025)