cvs: pear /PHP_Compat/Compat/Constant FILE.php STD.php
| From: | Aidan Lister | Date: | Sun, 30 May 2004 01:58:28 +0000 |
| Subject: | cvs: pear /PHP_Compat/Compat/Constant FILE.php STD.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-20041@lists.php.net to get a copy of this message | ||
aidan Sat May 29 21:58:28 2004 EDT
Added files:
/pear/PHP_Compat/Compat/Constant FILE.php STD.php
Log:
Initial Commit
http://cvs.php.net/co.php/pear/PHP_Compat/Compat/Constant/FILE.php?r=1.1&p=1
Index: pear/PHP_Compat/Compat/Constant/FILE.php
+++ pear/PHP_Compat/Compat/Constant/FILE.php
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/3_0.txt.
|
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Aidan Lister <aidan@php.net> |
// +----------------------------------------------------------------------+
//
// $Id: FILE.php,v 1.1 2004/05/30 01:58:28 aidan Exp $
//
/**
* Replace filesystem constants
*
* Added in PHP 5
*
* @category PHP
* @package PHP_Compat
* @link http://php.net/ref.filesystem
* @author Aidan Lister <aidan@php.net>
* @version 1.0
*/
defined('FILE_USE_INCLUDE_PATH') or define('FILE_USE_INCLUDE_PATH', 1);
defined('FILE_IGNORE_NEW_LINES') or define('FILE_IGNORE_NEW_LINES', 2);
defined('FILE_SKIP_EMPTY_LINES') or define('FILE_SKIP_EMPTY_LINES', 4);
defined('FILE_APPEND') or define('FILE_APPEND', 8);
defined('FILE_NO_DEFAULT_CONTEXT') or define('FILE_NO_DEFAULT_CONTEXT', 16);
?>
http://cvs.php.net/co.php/pear/PHP_Compat/Compat/Constant/STD.php?r=1.1&p=1
Index: pear/PHP_Compat/Compat/Constant/STD.php
+++ pear/PHP_Compat/Compat/Constant/STD.php
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2004 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 3.0 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available at through the world-wide-web at |
// | http://www.php.net/license/3_0.txt.
|
// | If you did not receive a copy of the PHP license and are unable to |
// | obtain it through the world-wide-web, please send a note to |
// | license@php.net so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: Aidan Lister <aidan@php.net> |
// +----------------------------------------------------------------------+
//
// $Id: STD.php,v 1.1 2004/05/30 01:58:28 aidan Exp $
//
/**
* Replace commandline constants
*
* Added in PHP 4.3.0
*
* @category PHP
* @package PHP_Compat
* @link http://php.net/features.commandline
* @author Aidan Lister <aidan@php.net>
* @version 1.0
*/
defined('STDIN') or define('STDIN', fopen('php://stdin',
'r'));
defined('STDOUT') or define('STDOUT', fopen('php://stdout',
'w'));
defined('STDERR') or define('STDERR', fopen('php://stderr',
'w'));
?>