Commit Graph

2771 Commits

Author SHA1 Message Date
Antony Dovgal
1cc0339d40 MFH: fix crash when parsing invalid hostnames/IPs 2006-10-11 12:53:56 +00:00
Ilia Alshanetsky
7f75be9fb9 back to dev 2006-10-06 21:36:07 +00:00
Ilia Alshanetsky
9ebb3f127e 5.2.0RC5 2006-10-05 19:49:03 +00:00
Ilia Alshanetsky
557838efa4 Last set of zend_hash_init() optimizations 2006-10-03 19:51:01 +00:00
Stefan Esser
abfc08dc82 If one name is disallowed don't drop all files 2006-09-29 10:05:34 +00:00
Antony Dovgal
646cfe11e1 MFH 2006-09-28 08:26:33 +00:00
Dmitry Stogov
dbae50bf13 Fixed wrong pipe detection code 2006-09-28 07:26:02 +00:00
Ilia Alshanetsky
5860f47122 Fixed bug #38963 (Fixed a possible open_basedir bypass in tempnam()). 2006-09-27 23:44:13 +00:00
Ilia Alshanetsky
ccc25cc3eb Fixed bug #38904 (apache2filter changes cwd to /). 2006-09-25 14:48:33 +00:00
Dmitry Stogov
7d14dad02e MFH: Fixed mess with CGI/CLI -d command line option (now it works with cgi; constants are working exactly like in php.ini; with FastCGI -d affects all requests). 2006-09-19 20:33:12 +00:00
Stefan Esser
1e8fc23095 Delete empty temporary files if file upload hook forbids the upload 2006-09-19 11:34:19 +00:00
Ilia Alshanetsky
fe6effeeb4 Avoid generating php_errormsg twice in some instances. 2006-09-18 23:08:36 +00:00
Ilia Alshanetsky
5aa6dcc6c8 Fixed memory leak on require() error 2006-09-18 03:29:21 +00:00
Antony Dovgal
99b133d7a7 MFH: fix double free(), add test 2006-09-15 07:27:22 +00:00
Ilia Alshanetsky
7bf39e9212 Back to dev 2006-09-14 18:04:40 +00:00
Ilia Alshanetsky
b5446194ec PHP 5.2.0RC4 2006-09-14 17:49:12 +00:00
Dmitry Stogov
2604f21fa6 Removed unused macro USE_ZEND_ALLOC 2006-09-14 09:58:27 +00:00
Ilia Alshanetsky
f0fd70fadb Fixed bug #37779 (empty include_path leads to search for files inside /). 2006-09-12 15:47:25 +00:00
Sara Golemon
93c8a45083 MFH: Bug #38687 - sockaddr local storage insufficient for all sock families 2006-09-11 19:18:07 +00:00
Antony Dovgal
9fa594c2dd fix coverity issue #197
"I can't think of a reason to pass a NULL buf" (c) Wez
2006-09-10 13:01:37 +00:00
Rasmus Lerdorf
935b0c88e9 Minor tweak to the file upload hooks. The MULTIPART_EVENT_FORMDATA event
was only triggering when an input filter was applied.  This simple change
makes the event also trigger when no filter is applied.  The newlength
pointer is set to NULL to let a downstream module differentiate between
the two cases.
2006-09-09 22:06:27 +00:00
Edin Kadribasic
ef058cdd9a Search for php.ini in CWD in all sapi's *but* CLI.
This patch reverses wrong behavaiour introduced before the
release of 5.1.0.

# We should probably consider killing adding CWD php.ini lookup
# altogether.
2006-09-05 11:54:15 +00:00
Dmitry Stogov
75876d57be Fixed VIRTUAL_DIR inconsistency 2006-09-04 08:18:15 +00:00
Ilia Alshanetsky
4427552b60 Fixed bug #38661 (mixed-case URL breaks url-wrappers). 2006-09-03 16:32:27 +00:00
Ilia Alshanetsky
73eba86360 Back to dev 2006-09-01 01:29:05 +00:00
Ilia Alshanetsky
98d26b6b18 5.2.0RC3 2006-09-01 01:06:14 +00:00
Antony Dovgal
4e971e8874 MFH: fix #38199 (fclose() unable to close STDOUT and STDERR) 2006-08-28 17:15:03 +00:00
Andrei Zmievski
fdd1370d99 Namespace more PCRE functions. 2006-08-23 20:39:11 +00:00
Dmitry Stogov
7dfbf5b2e4 Fixed bug #38488 (Access to "php://stdin" and family crashes PHP on win32) 2006-08-22 06:15:26 +00:00
Ilia Alshanetsky
d7209229a3 Back to dev 2006-08-17 14:04:09 +00:00
Ilia Alshanetsky
c7d83d7ba3 5.2.0RC2 2006-08-17 13:44:36 +00:00
Ilia Alshanetsky
3a211712eb Increased default memory limit to 16 megabytes to accommodate for a more
accurate memory utilization measurement.
2006-08-17 13:43:08 +00:00
Antony Dovgal
f42e9f5e15 MFH: fix #38450 (constructor is not called for classes used in userspace stream wrappers) 2006-08-14 15:01:29 +00:00
Nuno Lopes
a16935fd42 const/static keywording 2006-08-12 19:33:54 +00:00
Dmitry Stogov
c946b4d1b2 In addtion to path to php.ini, PHPRC now may specify full file name 2006-08-03 11:04:52 +00:00
Ilia Alshanetsky
cfda15ffc1 Binary safe multipart request handling 2006-07-27 17:04:15 +00:00
Ilia Alshanetsky
7ba86d078f Fixed bug #38236 (Binary data gets corrupted on multipart/formdata POST). 2006-07-27 15:37:56 +00:00
foobar
7625313f9c MFH: - Added PHP_VERSION_ID == PHP_VERSION as integer. 2006-07-27 08:53:16 +00:00
Antony Dovgal
e1dfc4259f eliminate compilation warnings on AIX 2006-07-26 13:22:06 +00:00
Ilia Alshanetsky
7fdcd281c6 back to dev 2006-07-24 18:53:01 +00:00
Ilia Alshanetsky
5e24aedf46 5.2.0RC1 2006-07-24 18:51:31 +00:00
Stefan Esser
cfac29e20e Added RFC1867 fileupload processing hook. 2006-07-22 16:38:29 +00:00
Michael Wallner
46f21b8a32 MFH: added error_get_last() function 2006-07-19 12:25:46 +00:00
Dmitry Stogov
29ed52ffa4 New memory manager 2006-07-18 09:06:33 +00:00
Dmitry Stogov
d68797945a Fixed memory leaks in ZTS mode. 2006-07-17 07:20:12 +00:00
Antony Dovgal
19a9052d6e fix build 2006-07-13 17:03:35 +00:00
Ilia Alshanetsky
9c125eeb27 Fixed compiler warnings. 2006-07-13 15:05:30 +00:00
Antony Dovgal
4902fc6c25 MFH: fix #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length)
add tests
2006-07-13 12:00:17 +00:00
Nuno Lopes
8b139b654d static + const keywords 2006-07-07 23:32:14 +00:00
Dmitry Stogov
acb1e07980 Changed priority of PHPRC environment variable on win32 to be higher then value from registry. 2006-07-04 06:35:49 +00:00
Nuno Lopes
7961207d6b add const keywords 2006-07-01 11:35:34 +00:00
Hannes Magnusson
7a6fe06e4b url->URL 2006-06-29 14:40:49 +00:00
Hannes Magnusson
c4154145df MFH: plug memleak 2006-06-20 18:09:50 +00:00
Rasmus Lerdorf
6bfeea9eb9 MFH: Backported allow_url_include from HEAD. This directive allows
separate control of URL handling in includes/requires allowing sites to
enable allow_url_fopen without enabling remote includes.
2006-06-16 14:09:01 +00:00
Dmitry Stogov
60328ea7c3 Added automatic module globals management 2006-06-15 14:06:35 +00:00
Antony Dovgal
2f26d8d7ae MFH: don't leak when decoding failed 2006-06-06 14:09:12 +00:00
Antony Dovgal
073ee1397a MFH: no need to check if non-existing include_path complies with open_basedir setting 2006-06-05 22:39:50 +00:00
Edin Kadribasic
8b764bd08c Fixed bug #35886 (nlopes) 2006-06-05 22:19:36 +00:00
Stanislav Malyshev
1ebb0590bd improve .dsp build 2006-06-05 09:02:28 +00:00
Antony Dovgal
fbeb246a3a no need to do TSRMLS_FETCH() twice 2006-06-01 14:06:23 +00:00
Andrei Zmievski
b8ebfce9af Revert accidentally committed internal patch 2006-05-31 21:48:43 +00:00
Andrei Zmievski
1f04ac91b0 MFB 2006-05-31 17:18:08 +00:00
Edin Kadribasic
58962c7371 Missing definition, patch by Steph Fox 2006-05-25 18:47:21 +00:00
Edin Kadribasic
740d39454b Initialize windows globals, fixes #37428 2006-05-24 22:00:15 +00:00
Ilia Alshanetsky
cd8c7a3e09 Fixed handling of extremely long paths inside tempnam() function. 2006-05-23 23:22:04 +00:00
Marcus Boerger
59d2ce8258 - MFH Fix feof() 2006-05-23 22:31:25 +00:00
Marcus Boerger
e145343b57 - MFH Handle corrupt base64 data in data: url 2006-05-21 13:37:19 +00:00
Antony Dovgal
6557578657 MFH: initialize factory 2006-05-19 10:24:05 +00:00
Dmitry Stogov
14f6b9149d Optimized zend_try/zend_catch macroses (eliminated memcpy()) 2006-05-19 06:09:15 +00:00
Antony Dovgal
3a830a30f4 fix #37395 (recursive mkdir() fails to create nonexistent directories in root dir) 2006-05-16 13:05:02 +00:00
Ilia Alshanetsky
cccb406ee8 Disable realpath cache when open_basedir or safe_mode are enabled on a
per-request basis.
2006-05-16 00:39:32 +00:00
Marcus Boerger
5d43fe49f7 - MFH No need to have this controlled by allow_url_fopen 2006-05-14 19:15:31 +00:00
Marcus Boerger
3577115118 - MFH Add strict compliant RFC2397 support (no //) 2006-05-14 18:40:12 +00:00
Marcus Boerger
5b44266a5f - MFH RFC2397 decoding 2006-05-14 01:42:03 +00:00
Marcus Boerger
0c09d4cb63 - MFH RFC 2397 meta data handling 2006-05-14 01:06:09 +00:00
Marcus Boerger
2100a86198 - MFH Initial support for RFC2397 2006-05-13 17:58:58 +00:00
Dmitry Stogov
1f41b288e9 Fixed bug #37306 (max_execution_time = max_input_time) 2006-05-11 22:10:31 +00:00
Marcus Boerger
f7776502b5 - MFH Fix error mode handling 2006-05-11 07:56:36 +00:00
Rasmus Lerdorf
4df7ab403c Add input_filter hook call in getenv() 2006-05-10 21:19:32 +00:00
Rasmus Lerdorf
cbb11e018a Now that ext/filter is bundled, we should be defining these in one place 2006-05-10 21:10:45 +00:00
Antony Dovgal
8a03fc5ef3 add missing parts of E_RECOVERABLE merge 2006-05-10 14:04:18 +00:00
Marcus Boerger
c018b83003 - MFH %v for s[np]printf 2006-05-07 12:40:17 +00:00
Ilia Alshanetsky
89e3ac9531 Creation of the 5.2 branch 2006-05-06 21:58:03 +00:00
Ilia Alshanetsky
5649f24524 Back to dev 2006-05-03 23:31:43 +00:00
Ilia Alshanetsky
87583528c6 go with 5.1.4 2006-05-03 23:30:02 +00:00
Dmitry Stogov
efad37874b Fixed bug #37276 (problems witch $_POST array) 2006-05-03 11:24:29 +00:00
Ilia Alshanetsky
0c54f6f72b Restore dev 2006-04-26 16:07:11 +00:00
Ilia Alshanetsky
ca2efe468d Go with 5.1.3 2006-04-26 14:08:26 +00:00
Wez Furlong
8663f1644d fix for #37158 2006-04-22 17:17:40 +00:00
Ilia Alshanetsky
ee103a7c39 Back to dev 2006-04-20 23:09:20 +00:00
Ilia Alshanetsky
50e1a51e5c Prepare for RC3 2006-04-20 21:11:29 +00:00
Michael Wallner
f7a6327728 - Fix reading stream filters never notified about EOF 2006-04-20 17:43:18 +00:00
Ilia Alshanetsky
7315288591 Restore dev so win32 snaps can build 2006-04-18 23:47:10 +00:00
Dmitry Stogov
73e4913cca Fixed memory leaks 2006-04-18 06:58:43 +00:00
Antony Dovgal
d23c1d763b fix #37053 (html_errors with internal classes produces wrong links) 2006-04-12 12:49:39 +00:00
foobar
8cd558757f MFH: - Silence some PCRE compile warnings 2006-04-10 11:55:14 +00:00
Andrei Zmievski
9e5655387a MFH 2006-04-08 17:53:11 +00:00
Ilia Alshanetsky
5151efc2aa RC3 2006-04-07 14:21:13 +00:00
Dmitry Stogov
e9d452b9a9 Optimization 2006-04-07 13:57:27 +00:00
Dmitry Stogov
ead7652457 We don't need setup the same time-out two times. 2006-04-07 11:44:03 +00:00
Ilia Alshanetsky
46ba651680 MFH:
Removed extra space in the Content-Type header for logos
Simplified stderr error reporting in apache sapi.
2006-04-02 17:58:17 +00:00
Ilia Alshanetsky
7385433f34 Back to dev 2006-03-30 19:40:16 +00:00
Ilia Alshanetsky
0e07f0b117 Go with RC2 2006-03-30 19:19:20 +00:00
Antony Dovgal
2030a7a2ed fix #36869 (memory leak in output buffering when using chunked output) 2006-03-27 08:26:10 +00:00
Dmitry Stogov
658ac96cfa Fixed bug #36809 (__FILE__ behavior changed) 2006-03-21 08:49:42 +00:00
Dmitry Stogov
d355704998 Fixed register_argc_argv behavior. Now it behave in the same way as before in all combinations with register_globals, register_long_arrays, variables_order and auto_globals_jit. 2006-03-20 10:15:02 +00:00
Antony Dovgal
ef1f36e2c1 first check stream for NULL, then dereference 2006-03-19 22:33:10 +00:00
Marcus Boerger
fa922fb51c - MFH Fix seek/eof issue in temp streams 2006-03-18 19:57:00 +00:00
Dmitry Stogov
63b3f5c041 Eliminated unnecessary getcwd() syscall 2006-03-17 10:42:31 +00:00
Dmitry Stogov
55159796b0 Allowed 'auto_globals_jit' work together with 'register_argc_argv' 2006-03-17 08:58:51 +00:00
Dmitry Stogov
98bacb0e21 Fixed bug #35988 (Unknown persistent list entry type in module shutdown) 2006-03-14 15:16:07 +00:00
Dmitry Stogov
d21669fc80 Fixed realpath() cache for main script with FastCGI SAPI 2006-03-13 09:35:45 +00:00
Brian France
6c4e9d30b9 MFH:
for the primary file only lookup the real file path and
        add it to the included_files list if already opened
        otherwise it will get opened and added to the included_files list in zend_execute_scripts
2006-03-10 18:19:29 +00:00
Sara Golemon
6dff869c51 MFH: Move temporary local storage of primary file's realpath up one block to ensure it stays on the stack. 2006-03-09 20:32:22 +00:00
Ilia Alshanetsky
fe13b8ef69 Back to dev 2006-03-09 14:22:59 +00:00
Ilia Alshanetsky
b04ecd08d2 5.1.3RC1 2006-03-09 14:12:15 +00:00
Michael Wallner
0aa24dc0a1 - remove declaration of non existant function php_treat_data 2006-03-08 08:43:25 +00:00
Alex Waugh
b8d26da1be MFH Fix for RISC OS 2006-03-07 22:37:53 +00:00
Colin Viebrock
e70571c251 fix logo (proper spacing between the letters) 2006-03-06 19:10:19 +00:00
Marcus Boerger
5a69b29082 - Warning fixes by Steph 2006-02-26 10:57:00 +00:00
Marcus Boerger
941b0651dc - MFH: Function deprecation flag 2006-02-25 18:25:45 +00:00
Dmitry Stogov
11187a40e0 Fixed bug #36205 (Memory leaks on duplicate cookies) 2006-02-13 12:18:16 +00:00
Dmitry Stogov
b179e081ab Fixed bug #36268 (Object destructors called even after fatal errors) 2006-02-03 09:31:59 +00:00
Sara Golemon
3a4a0e3cef MFH: Prevent bindport from being used uninitialized 2006-02-02 18:16:43 +00:00
Joe Orton
8c55d477d8 MFH: - Fixed bug #36208 (symbol namespace conflicts using bundled gd). (Jakub Moc) 2006-02-01 13:52:46 +00:00
Marcus Boerger
9cb7d29f84 - MFH Bug #35978 %n format string specifier wrongly implemented 2006-01-24 20:59:46 +00:00
Ilia Alshanetsky
5f9dde24d8 Only report mkdir() errors if error reporting option is set. 2006-01-17 02:32:09 +00:00
Antony Dovgal
3062348c75 MFH: fix #35999 (recursive mkdir() does not work with relative path like "foo/bar") 2006-01-16 19:48:23 +00:00
Dmitry Stogov
4b1791a767 Fixed bug #36016 (realpath cache memleaks) 2006-01-16 09:12:22 +00:00
Ilia Alshanetsky
e731da3653 Back to dev 2006-01-12 15:24:10 +00:00
Ilia Alshanetsky
ad1bbaca04 5.1.2 2006-01-11 14:19:14 +00:00
Ilia Alshanetsky
778c635c40 Fixed bug #35916 (Duplicate calls to stream_bucket_append() lead to a crash). 2006-01-10 16:14:16 +00:00
Marcus Boerger
0d0f3e290b - Fix issue with memset seeking
- Fix issue with shutdown order of temp/memory stream
2006-01-05 22:03:07 +00:00
Ilia Alshanetsky
c4790e3a9e Back to dev 2006-01-05 21:36:05 +00:00
Ilia Alshanetsky
32dc6ee526 Go with 5.1.2RC2 2006-01-05 18:36:24 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
foobar
c5b9552891 MFH: typofix 2005-12-30 05:40:43 +00:00
Marcus Boerger
22ee7f8e3e - MFH Support full range of floats 2005-12-26 14:46:49 +00:00
Marcus Boerger
ec1a7e02d4 - SWH (WS + memory corruption fix) 2005-12-26 13:41:58 +00:00
Ilia Alshanetsky
e18a1d7c08 Back to dev 2005-12-23 14:42:49 +00:00
Antony Dovgal
248be6fcfc fix #35781 (stream_filter_append() can cause segfault) 2005-12-23 14:32:11 +00:00
Ilia Alshanetsky
7c17499079 5.1.2RC1 2005-12-22 14:17:56 +00:00
Ilia Alshanetsky
cd82349b9e Fixed bug #31347 (is_dir and is_file (incorrectly) return true for any
string greater then 255 characters).
2005-12-20 14:24:24 +00:00
Antony Dovgal
aec3b4e73c fix #35740 (memory leak when including a directory) 2005-12-20 09:47:57 +00:00
Zeev Suraski
59dc41f761 Fix prototype 2005-12-18 15:38:08 +00:00
Wez Furlong
b041abbb4e Fixes for building with vs.net 2005. 2005-12-14 02:01:13 +00:00
Marcus Boerger
71c7cdb7d9 - Fix temp/memory stream modes 2005-12-14 00:06:09 +00:00
Ilia Alshanetsky
2796160d15 Better critical error handling (fix for previous html encoding patch). 2005-12-07 02:37:05 +00:00
Ilia Alshanetsky
481ec28566 Fixed bug #30760 (Remove MessageBox on win32 for E_CORE errors if
display_startup_error is off).
2005-12-06 23:32:06 +00:00
Ilia Alshanetsky
f2415625d4 MFH: Prevent header injection by limiting each header to a single line. 2005-12-06 03:39:45 +00:00