Commit Graph

502 Commits

Author SHA1 Message Date
Antony Dovgal
6549f5b422 fix ws and avoid freeing integer vars 2007-10-06 21:15:46 +00:00
David Soria Parra
ab38cc8d89 - Add an escape parameter to fgetcsv to satisfy rfc4180 and bug #40501. 2007-10-03 10:31:04 +00:00
Ilia Alshanetsky
4ed9af35cd MFB: Fixed possible buffer overflows inside the fnmatch() and glob()
functions
2007-09-05 12:55:36 +00:00
Jani Taskinen
ea2d704953 MFB: Fixed bug #42468 (Write lock on file_get_contents fails when using a compression stream) 2007-09-03 11:53:43 +00:00
Jani Taskinen
bdd54e7c9b MFB: Fix tests + directory check inside copy() function 2007-08-13 08:14:03 +00:00
Rui Hirokawa
424d842729 MF PHP_5_2 2007-08-12 02:00:03 +00:00
Antony Dovgal
edd76024a3 MFB: Fixed bug #42243 (copy() does not ouput an error when the first arg is a dir) 2007-08-10 08:58:12 +00:00
Antony Dovgal
b608bd654d fix ws, cs & folding 2007-07-14 08:38:20 +00:00
Dmitry Stogov
5e4fde527b Fixed fgets() and fgetss() with limits 2007-07-10 17:02:43 +00:00
foobar
f730ecf98c - Fixed bug #41865 (fputcsv(): 2nd parameter is not optional) 2007-07-01 21:26:30 +00:00
Pierre Joye
a06fbeebc5 - #41609, file_put_contents is not binary safe when a binary string is
given (make it consistent with fwrite&co when unicode=1)
2007-06-14 19:56:35 +00:00
Antony Dovgal
f90bb0e967 check length only when it's specified
add the same check to fgetss()
2007-05-30 09:16:29 +00:00
Antony Dovgal
7b5215d83a fix #41516 (fgets() returns a line of text when length parameter is <= 0) 2007-05-29 20:48:38 +00:00
Antony Dovgal
5b56ff03b4 fix leak and check for < 0 only of the 5th arg was passed 2007-05-18 20:34:07 +00:00
Antony Dovgal
eb2240d494 fix #41430 (Fatal error with negative values of maxlen parameter of file_get_contents()) 2007-05-18 12:05:55 +00:00
Dmitry Stogov
2908322c14 WIN64 support 2007-04-16 09:43:53 +00:00
Marcus Boerger
2b5f0d87b7 - Fix realpath() logic 2007-03-03 19:07:51 +00:00
Antony Dovgal
72c8da0695 fix #40606 (umask is not being restored when request is finished) 2007-02-23 16:21:31 +00:00
Antony Dovgal
f6987cb6bc plug possible leak 2007-02-13 12:56:10 +00:00
Marcus Boerger
e5762b7241 - Fix mem access 2007-01-10 20:12:14 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
a04c65f97f fix ZTS build 2006-12-28 15:03:19 +00:00
Andrei Zmievski
6212288bea Unicode support in sscanf() and fscanf(). (Tony, Andrei) 2006-12-26 22:34:05 +00:00
Antony Dovgal
0bf0c3c75a fix double free 2006-12-21 00:00:11 +00:00
Antony Dovgal
2073b38b0f fix double free on error 2006-12-20 22:42:59 +00:00
Dmitry Stogov
938f3d6efa Added function stream_socket_shutdown(). It is a wraper for system shutdown() function, that shut downs part of a full-duplex connection 2006-12-19 08:59:26 +00:00
Antony Dovgal
6f0472aa4c erm.. somehow this part got here twice 2006-12-12 22:38:30 +00:00
Sara Golemon
aa08686c85 More BC bodges for fgets/fgetss 2006-12-08 01:02:49 +00:00
Antony Dovgal
7ea07ff6dc MFB tests (they still fail though)
fix BC in fgetss()
2006-12-07 23:00:45 +00:00
Sara Golemon
53a4c18c6a Change fgets() behavior back to BC version 2006-12-07 09:51:36 +00:00
Antony Dovgal
2f5f375850 don't pass negative maxchars to php_stream_get_line_ex() 2006-12-05 13:45:49 +00:00
Sara Golemon
fac71c77c1 Add str_getcsv() and fix a couple cases in recent fgetcsv() reimplementation 2006-12-05 04:52:44 +00:00
Sara Golemon
78f65cc451 Unicode upgrade for fgetcsv() 2006-12-05 04:13:47 +00:00
Pierre Joye
19abc4b507 - #39538, fgetcsv can't handle starting newlines and trailing odd
number of backslashes (David Soria Parra, Pierre)
2006-11-22 12:56:26 +00:00
Antony Dovgal
7032c7dddf efree() if not NULL 2006-11-20 11:12:35 +00:00
Antony Dovgal
c7fd59af0f don't forget to close the stream when/if flock() fails 2006-11-13 20:31:15 +00:00
Antony Dovgal
49a2ae60d0 fix leaks in get_meta_tags() when used with b0rked HTML
add test
2006-11-13 20:17:05 +00:00
Andrei Zmievski
bee52acb7d Unicode support for fnmatch(). 2006-10-25 17:28:20 +00:00
Ilia Alshanetsky
f3eee9d980 MFB: Fixed bug #38934 (move_uploaded_file() cannot read uploaded file
outside of open_basedir).
2006-10-13 01:44:42 +00:00
Sara Golemon
25af62e3f4 Fix realpath() in unicode mode 2006-10-09 02:52:27 +00:00
Hannes Magnusson
176b72284c Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Antony Dovgal
1bdcfa172a use correct type for p_len 2006-10-03 23:09:08 +00:00
Sara Golemon
a4b9e3719b Apply new path encoding style to the rest of e/s/file.c
This layout is definately simpler to maintain
and every bit as functional as the other version.
2006-10-02 03:13:47 +00:00
Sara Golemon
d2ff6db191 Apply simplified path encoding to copy() and give it a context param.
Funnily enough, this makes the copy() implementation almost identical
to what it was back in PHP5.
2006-10-02 02:47:34 +00:00
Sara Golemon
e321287b4f Try out simplified API for encoding paths/filenames 2006-10-02 02:24:29 +00:00
Sara Golemon
e1c934d56c PHP6 Updates for rmdir/mkdir/rename 2006-09-24 21:40:44 +00:00
Sara Golemon
f8fdb67056 PHP6 Updates for popen() and related functionality 2006-09-24 20:33:14 +00:00
Sara Golemon
74e30fd41d PHP6 Update for get_meta_tags() -- What a silly function... 2006-09-24 20:01:29 +00:00
Sara Golemon
6dffc7bf14 Fix copy() from last commit and add a few more PHP6 updates 2006-09-22 21:48:33 +00:00
Sara Golemon
6905daca8e Update copy() for PHP6 2006-09-22 20:02:26 +00:00