File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / math / decoct_basic.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:04 2012 UTC (12 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

--TEST--
Test decoct() - basic function test decoct()
--FILE--
<?php
$values = array(10,
				3950.5,
				3.9505e3,
				039,
				0x5F,	
				"10",
				"3950.5",
				"3.9505e3",
				"039",
				"0x5F",
				true,
				false,
				null, 
				);	

for ($i = 0; $i < count($values); $i++) {
	$res = decoct($values[$i]);
	var_dump($res);
}
?>
--EXPECTF--
string(2) "12"
string(4) "7556"
string(4) "7556"
string(1) "3"
string(3) "137"
string(2) "12"
string(4) "7556"
string(1) "3"
string(2) "47"
string(1) "0"
string(1) "1"
string(1) "0"
string(1) "0"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>