Skip to content

Commit 57af8bc

Browse files
committed
Add test case
1 parent f1425af commit 57af8bc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

ext/ffi/tests/arrayPointer.phpt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--TEST--
2+
FFI: Test deprecated use of array helper functions on FFI classes doesn't crash
3+
--SKIPIF--
4+
<?php require_once('skipif.inc'); ?>
5+
--INI--
6+
ffi.enable=1
7+
--FILE--
8+
<?php
9+
error_reporting(E_ALL & ~E_DEPRECATED);
10+
$data = FFI::new('int');
11+
var_dump(reset($data));
12+
var_dump(end($data));
13+
var_dump(next($data));
14+
var_dump(prev($data));
15+
?>
16+
--EXPECTF--
17+
bool(false)
18+
bool(false)
19+
bool(false)
20+
bool(false)

0 commit comments

Comments
 (0)