ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-cvs
php-cvs
[PHP-CVS] cvs: php-src /ext/standard file.c
by Antony Dovgal other posts by this author
Dec 12 2006 2:38PM messages near this date
[PHP-CVS] cvs: php-src /sapi/apache2handler sapi_apache2.c | [PHP-CVS] cvs: php-src(PHP_5_2) /tests/basic 023.phpt
tony2001		Tue Dec 12 22:38:31 2006 UTC

  Modified files:              
    /php-src/ext/standard	file.c 
  Log:
  erm.. somehow this part got here twice
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.475&r2=1.476&diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.475 php-src/ext/standard/file.c:1.476
--- php-src/ext/standard/file.c:1.475	Fri Dec  8 01:02:49 2006
+++ php-src/ext/standard/file.c	Tue Dec 12 22:38:30 2006
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: file.c,v 1.475 2006/12/08 01:02:49 pollita Exp $ */
+/* $Id: file.c,v 1.476 2006/12/12 22:38:30 tony2001 Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -1205,11 +1205,6 @@
 
 	php_stream_from_zval(stream, &zstream);
 
-	if (length >  0) {
-		/* For BC reasons, fgetss() should only return length-1 bytes. */
-		length--;
-	}
-
 	if (stream-> readbuf_type == IS_UNICODE) {
 		UChar *buf = php_stream_get_line_ex(stream, IS_UNICODE, NULL_ZSTR, 0, length, &retlen);
 		UChar *allowed = NULL;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved