cvs: pear /File File.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sat, 24 Mar 2007 16:38:56 +0000 |
| Subject: | cvs: pear /File File.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-45403@lists.php.net to get a copy of this message | ||
dufuz Sat Mar 24 16:38:56 2007 UTC
Modified files:
/pear/File File.php
Log:
Cosmetics
http://cvs.php.net/viewvc.cgi/pear/File/File.php?r1=1.37&r2=1.38&diff_format=u
Index: pear/File/File.php
diff -u pear/File/File.php:1.37 pear/File/File.php:1.38
--- pear/File/File.php:1.37 Thu Mar 22 23:08:31 2007
+++ pear/File/File.php Sat Mar 24 16:38:56 2007
@@ -19,7 +19,7 @@
* @author Michael Wallner <mike@php.net>
* @copyright 2002-2005 The Authors
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: File.php,v 1.37 2007/03/22 23:08:31 dufuz Exp $
+ * @version CVS: $Id: File.php,v 1.38 2007/03/24 16:38:56 dufuz Exp $
* @link http://pear.php.net/package/File
*/
@@ -119,7 +119,7 @@
// Win32 is case-insensitive
if (OS_WINDOWS) {
- $filename = strToLower($filename);
+ $filename = strtolower($filename);
}
// check if file pointer already exists
@@ -130,8 +130,8 @@
switch ($mode)
{
case FILE_MODE_READ:
- if ( !preg_match('/^.+(?<!file):\/\//i', $filename) &&
- !file_exists($filename)) {
+ if (!preg_match('/^.+(?<!file):\/\//i', $filename) &&
+ !file_exists($filename)) {
return PEAR::raiseError("File does not exist: $filename");
}
break;