관리-도구
편집 파일: dbase_create_variation1.phpt
--TEST-- dbase_create(): date of last update is properly updated --SKIPIF-- <?php if (!extension_loaded('dbase')) die('skip dbase extension not available'); ?> --INI-- date.timezone=UTC --FILE-- <?php $filename = __DIR__ . DIRECTORY_SEPARATOR . 'dbase_create_variation1.dbf'; $db = dbase_create($filename, array(array('foo', 'C', 1))); dbase_close($db); $date = getdate(); $result = unpack('C4byte', file_get_contents($filename)); var_dump( $result['byte2'] + 1900 == $date['year'], $result['byte3'] == $date['mon'], $result['byte4'] == $date['mday'] ); ?> ===DONE=== --EXPECT-- bool(true) bool(true) bool(true) ===DONE=== --CLEAN-- <?php unlink(__DIR__ . DIRECTORY_SEPARATOR . 'dbase_create_variation1.dbf'); ?>