summaryrefslogtreecommitdiff
path: root/ext/dba/tests/bug65708.phpt
blob: ede2511c9ebb1ade8ba3b5628a944595f5417928 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--TEST--
Bug #65708 (dba functions cast $key param to string in-place, bypassing copy on write)
--SKIPIF--
<?php
	require_once(dirname(__FILE__) .'/skipif.inc');
?>
--FILE--
<?php

error_reporting(E_ALL);

require_once(dirname(__FILE__) .'/test.inc');

$db = dba_popen($db_filename, 'c');

$key = 1;
$copy = $key;

echo gettype($key)."\n";
echo gettype($copy)."\n";

dba_exists($key, $db);

echo gettype($key)."\n";
echo gettype($copy)."\n";

dba_close($db);

?>
--CLEAN--
<?php
	require(dirname(__FILE__) .'/clean.inc');
?>
--EXPECT--
integer
integer
integer
integer