File: bug8040.phpt

package info (click to toggle)
php4 6%3A4.4.4-8%2Betch1
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 34,976 kB
  • ctags: 39,148
  • sloc: ansic: 340,486; php: 34,786; cpp: 10,150; sh: 9,010; lex: 2,180; yacc: 1,712; xml: 1,335; makefile: 559; awk: 466; java: 455; perl: 154
file content (26 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (4)
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
--TEST--
Bug #8040
--SKIPIF--
<?php if (!extension_loaded("mcrypt")) print "skip"; ?>
--POST--
--GET--
--FILE--
<?php
	error_reporting (E_ALL ^ E_NOTICE);
	echo MCRYPT_TWOFISH."\n";
	echo MCRYPT_MODE_CBC."\n";

	define ("MODE1", MCRYPT_MODE_CBC);
	echo MODE1."\n";

	define ("CIPHER", MCRYPT_TWOFISH);
	define ("MODE2", MCRYPT_MODE_CBC);
	define ("MODE3", MCRYPT_CBC);

	printf ("cipher=".CIPHER. " mode1=".MODE2. " mode2=". MODE3."\n");
?>
--EXPECT--
twofish
cbc
cbc
cipher=twofish mode1=cbc mode2=MCRYPT_CBC