Brian France
43b75c6ab4
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:16:24 +00:00
Sara Golemon
5c7826716b
Move temporary local storage of primary file's realpath up one block to ensure it stays on the stack.
2006-03-09 20:31:58 +00:00
Ilia Alshanetsky
27e175eef0
So long safe_mode mode.
...
Also removed the magic_quotes configure option, no longer relevant since
the magic is gone :-).
2006-03-08 14:41:45 +00:00
Pierre Joye
bb1ec86f9d
- remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
...
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Alex Waugh
b7d6d705f1
Fix for RISC OS
2006-03-07 22:37:18 +00:00
Colin Viebrock
f8448b426d
change these in HEAD too
2006-03-07 16:47:19 +00:00
Pierre Joye
303bfea78f
- remove register_globals support (aka "Kill the f***ing thing" :)
2006-03-07 00:20:54 +00:00
Dmitry Stogov
c366cc6d1a
Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings
2006-03-02 13:12:45 +00:00
Marcus Boerger
56ec57c614
- If (SEEK_CUR,0) means an illegal seek we return -1 to denote the error
2006-02-28 18:00:03 +00:00
Marcus Boerger
6531669e4e
- Cleanup
2006-02-28 12:06:54 +00:00
Dmitry Stogov
e3b7f3fd0d
Unicode support: MS Visual C compatibility
2006-02-26 11:57:14 +00:00
Marcus Boerger
9845606cef
- Add deprecation function/function alias macros
2006-02-24 13:30:21 +00:00
Dmitry Stogov
0f1209ab3d
Portable unicode string API:
...
- use the same type (int) for zval.value.usr.len and zval.value.str.len
- use union "zstr" as char*/UChar* mixture instead of void*
- Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
- nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Andi Gutmans
1efe984d08
- Get rid of using ENFORCE_SAFE_MODE.
2006-02-19 04:29:42 +00:00
Andi Gutmans
8f126f33ac
- Fix according to Sara's reply
2006-02-19 03:41:25 +00:00
Andi Gutmans
d3f7bee047
Nuke php_check_safe_mode_include_dir
2006-02-19 01:19:37 +00:00
Andi Gutmans
e3b1e8c5dd
- Some more safe_mode nuking
2006-02-19 01:10:13 +00:00
Dmitry Stogov
6da04e6292
pval -> zval (Steph)
2006-02-13 16:35:36 +00:00
Dmitry Stogov
b238135d53
Fixed bug #36205 (Memory leaks on duplicate cookies)
2006-02-13 12:18:31 +00:00
Dmitry Stogov
09ca61c125
Made server wide switch for unicode on/off (according to PDM).
2006-02-13 10:23:59 +00:00
Dmitry Stogov
558e883302
Fixed bug #36268 (Object destructors called even after fatal errors)
2006-02-03 09:33:31 +00:00
Sara Golemon
ff87d57268
Prevent bindport from being used uninitialized
2006-02-02 18:16:25 +00:00
Joe Orton
af6dd5cb7e
Fixed bug #36208 (symbol namespace conflicts using bundled gd). (Jakub Moc)
2006-02-01 13:10:04 +00:00
Marcus Boerger
a372669d4a
- Fixed Bug #35978 %n format string specifier wrongly implemented
2006-01-24 20:57:56 +00:00
Dmitry Stogov
227295a4f1
Unicode stuff is changed according to decision maden on PDM.
...
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
Ilia Alshanetsky
1204ea0e63
MFB51: Only report mkdir() errors if error reporting option is set.
2006-01-17 02:32:34 +00:00
Antony Dovgal
07ff99a075
fix bug #35999 (recursive mkdir() does not work with relative path like "foo/bar")
2006-01-16 19:47:07 +00:00
Dmitry Stogov
7e5b53c2b3
Fixed bug #36016 (realpath cache memleaks)
2006-01-16 09:17:50 +00:00
Marcus Boerger
095c66e715
- Fix two warnings
...
# Here fixing warnings reveals that it often enough means fixing errors
2006-01-12 19:21:36 +00:00
Marcus Boerger
d6e15bf75e
- Fix warning
2006-01-12 19:13:50 +00:00
Ilia Alshanetsky
d2397a9301
MFB51: Fixed bug #35916 (Duplicate calls to stream_bucket_append() lead to
...
a crash).
2006-01-10 16:14:45 +00:00
Marcus Boerger
71af00ec47
- Fix issue with memset seeking
...
- Fix issue with shutdown order of temp/memory stream
2006-01-05 22:05:44 +00:00
foobar
251c5173fd
bump year and license version
2006-01-01 13:10:10 +00:00
foobar
2b1085d103
fix typo
2005-12-30 05:39:38 +00:00
Marcus Boerger
3563b7d571
- Support full range of floats
2005-12-26 14:46:34 +00:00
Marcus Boerger
27986dbc88
- Fix memory corruption in s*printf() (see bug #27678 )
2005-12-26 13:39:17 +00:00
Antony Dovgal
1c7661a301
MFB: fix #35781 (stream_filter_append() can cause segfault)
2005-12-23 15:05:42 +00:00
Ilia Alshanetsky
ec58b74d7f
MFB51: Fixed bug #31347 (is_dir and is_file (incorrectly) return true for any
...
string greater then 255 characters).
2005-12-20 14:27:04 +00:00
Antony Dovgal
3a14188725
MFB: fix #35740 (memory leak when including a directory)
2005-12-20 09:48:24 +00:00
Dmitry Stogov
52a9d56185
Fixed memory overflow, because usage of initialized value
2005-12-07 09:00:29 +00:00
Ilia Alshanetsky
112f016a39
MFB51: Better critical error handling (fix for previous html encoding patch).
2005-12-07 02:37:35 +00:00
Ilia Alshanetsky
f0191491f2
MFB51: Fixed bug #30760 (Remove MessageBox on win32 for E_CORE errors if
...
display_startup_error is off).
2005-12-06 23:32:27 +00:00
Ilia Alshanetsky
a4861d1512
Prevent header injection by limiting each header to a single line.
2005-12-06 03:39:26 +00:00
Ilia Alshanetsky
2d789c2366
MFB51: Fixed possible XSS inside error reporting functionality.
2005-12-06 03:13:53 +00:00
foobar
1c0ece7149
- nuke php3 legacy
2005-12-06 01:04:42 +00:00
foobar
8fa72be4ee
- Nuke php3_compat.h
2005-12-06 00:44:22 +00:00
foobar
34ad5ab731
- list_entry -> zend_rsrc_list_entry
2005-12-05 23:31:09 +00:00
foobar
d2e3d9c244
fix compile failure (bug #35528 )
2005-12-03 01:21:09 +00:00
Ilia Alshanetsky
6407b345b9
MFB51: Fixed bug #35170 (PHP_AUTH_DIGEST differs under Apache 1.x and 2.x)
2005-11-25 00:07:57 +00:00
Rasmus Lerdorf
e1f1857978
Add allow_url_include to let people turn on allow_url_fopen without also
...
enabling remote code execution through url wrappers
2005-11-18 16:20:43 +00:00
Antony Dovgal
a5e2f63d68
fix #35079 (stream_set_blocking(true) toggles, not enables blocking)
...
patch by askalski at gmail dot com
2005-11-17 14:19:06 +00:00
Dmitry Stogov
1f98519ac4
Fixed bug #35176 (include()/require()/*_once() produce wrong error messages about main())
2005-11-15 11:14:34 +00:00
Andrei Zmievski
87e782644b
Grr. Re-re-fix the fix.
2005-11-12 11:11:53 +00:00
Andrei Zmievski
0593d4a41d
Re-fix Marcus's fix.
2005-11-11 17:34:16 +00:00
Marcus Boerger
802fa95416
- Fix build
2005-11-11 16:50:08 +00:00
foobar
8c633a099f
- Revert bad patch. This is wrong way to handle leak in "php -m"
2005-11-06 22:07:12 +00:00
Michael Wallner
ab95f1981c
- sapi_header_op(SAPI_HEADER_(REPLACE|ADD), {NULL, 0, 0}) caused HTTP response splitting
...
- sapi_send_headers() already takes care of default_content_type (left over of fix for bug #29983 )
2005-11-02 14:27:02 +00:00
Ilia Alshanetsky
c1a09f6399
MFB51: Fixed minor memory leak triggered by: -dzlib.output_compression=1 -m
2005-11-01 23:02:52 +00:00
Marcus Boerger
2e67d648fc
- WS: Make function detection work in my editor
2005-11-01 11:12:27 +00:00
Marcus Boerger
7c25bdfe67
- Fix mode handling
2005-10-30 17:17:44 +00:00
Wez Furlong
58f42f04ad
merge VCWD_ACCESS bugfix to head.
...
Test suite is unusable in HEAD, so I guess it works here too.
2005-10-22 17:26:16 +00:00
Ilia Alshanetsky
50686f4d7c
Fixed bug #29983 (PHP does not explicitly set mime type & charset).
2005-10-19 20:30:38 +00:00
Rob Richards
551d6c5505
PHP_CONFIG_FILE_PATH needs to use strlen() due to Win build
2005-10-10 02:26:13 +00:00
Marcus Boerger
8217f84488
- C vs. C++ fix
...
# I do too much C++ and too much languages anyway, right now actively:
# C, C++, Java, PHP, Peral
2005-10-07 07:37:37 +00:00
Marcus Boerger
a27f5b0665
- Fix issue (endless loop) with temp/memory streams
2005-10-06 21:30:56 +00:00
Antony Dovgal
5e72a7c750
fix fwrite() and fgets() in unicode mode
2005-10-05 21:46:28 +00:00
Antony Dovgal
6f4fe0e7ff
fix bugs #34743 & #34118 (fseek/fread unicode related problems in HEAD)
...
patch by Alex
2005-10-05 17:18:06 +00:00
Ilia Alshanetsky
146517684d
Fixed possible GLOBALS variable override when register_globals are ON.
...
Fixed possible register_globals toggle via parse_str().
2005-09-28 22:31:29 +00:00
Andrei Zmievski
34308558ac
Unicode fixes.
2005-09-27 17:50:00 +00:00
Ilia Alshanetsky
6d2e7a84ca
Fixed bug #32937 (open_basedir looses trailing / in the limiter).
...
Patch by Adam Conrad
2005-09-27 15:07:38 +00:00
Derick Rethans
74929f352c
- Fixed bug #34052 (date('U') returns %ld not unix timestamp).
2005-09-15 19:10:13 +00:00
Derick Rethans
0f391bb0b3
- Add E_RECOVERABLE.
...
#- Thought I did this before already actually...
2005-09-15 16:19:48 +00:00
foobar
7d92b356d9
revert
2005-09-02 14:08:09 +00:00
foobar
1496355faf
MFB: Always return something, even if it succeeds :)
2005-09-02 08:26:05 +00:00
Ilia Alshanetsky
5f1aa243c3
Fixed bug #34331 (php crashes when variables_order is empty).
2005-09-01 19:14:54 +00:00
foobar
ec0b4f91f4
- Fixed bug #34307 (OnUpdateStringUnempty INI options can be set as empty)
2005-09-01 14:42:54 +00:00
Andrei Zmievski
674469245f
Further work on Unicode support in file uploads.
2005-08-31 20:42:14 +00:00
Dmitry Stogov
7999c0c3d4
Fixed SIGSEGV
2005-08-29 06:51:51 +00:00
Derick Rethans
cdcf566a21
- Fixed a bug where stream_get_meta_data() did not return the "uri" element for
...
files opened with tmpname().
2005-08-26 12:50:06 +00:00
Ilia Alshanetsky
0408e53679
Remainder of the 34191 bug fix.
2005-08-24 16:19:47 +00:00
Derick Rethans
377c3b3584
- Fixed another little buglet in the spprintf() formatters.
2005-08-23 06:48:55 +00:00
Dmitry Stogov
83bd44f1fd
Don't apply "unicode" filters in non-unicode mode
2005-08-22 14:48:25 +00:00
Dmitry Stogov
6b622046dc
zend_is_callable() and zend_make_callable() were changed to return readable function name as zval (instead of string).
2005-08-22 12:22:16 +00:00
Dmitry Stogov
0f026c9fb7
Unicode support
2005-08-18 10:18:40 +00:00
foobar
5cf36ea50f
Fix EOLs under winblows
2005-08-17 07:52:17 +00:00
Marcus Boerger
a5f023a829
- Prevent E_STRICT from ending up as exception
2005-08-16 18:09:27 +00:00
Derick Rethans
1ee41e0d92
- Fixed a couple of bugs in the new smart_str macros, and allow them to
...
allocate two extra bytes (so that we can pad them with two \0's for UTF-16)
- Fixed usage of smart_str's in the PAD and INS_STRING macros.
2005-08-16 18:02:41 +00:00
foobar
f8e4528a3d
These are not defined anymore
2005-08-15 22:31:59 +00:00
foobar
077e356572
Goodbye PEAR
2005-08-15 22:30:40 +00:00
Dmitry Stogov
fbf8880292
Fixed var_dump() identation bug
2005-08-15 07:19:10 +00:00
Marcus Boerger
b7e23d00c6
- Need to terminate [v]uspprintf() with two \0
2005-08-14 21:04:52 +00:00
Marcus Boerger
5e298240d6
- Where did my backslash vanish?
2005-08-14 20:12:51 +00:00
Marcus Boerger
d0c6d77b9e
- Handle different cases of the actual strings correctly
2005-08-14 20:11:05 +00:00
Marcus Boerger
8b9c131f55
- Initial support of easy way to generate unicode strings: [v]uspprinf()
...
# Same semantics as [v]spprintf, only it prints unicode strings instead of
# native strings. Atm it has a little problem since it length doesn't take
# the difference between UTF-16 code points vs units into account. But as
# long as no 4 byte codes are involved it should already run everything.
2005-08-14 17:14:42 +00:00
Wez Furlong
7d44da10b6
tidy up implicit_mode handling; spotted by Nuno
...
There's probably a much more efficient way to do this than the current strchr stuff.
2005-08-14 13:48:29 +00:00
Wez Furlong
b282b4d1ec
a bit of pedantic ws
2005-08-13 19:22:03 +00:00
Antony Dovgal
6bd0350af8
make valgrind and gcc happy
2005-08-12 23:21:29 +00:00
Antony Dovgal
b40db3bcb8
allow default_charset & default_mimetype to be changed during runtime
2005-08-12 21:46:14 +00:00
Dmitry Stogov
239f84c215
Fixed incorrect variable parsing in non-unicode mode
2005-08-12 13:27:38 +00:00
Andrei Zmievski
264cec8be6
Unicode support.
2005-08-11 23:36:07 +00:00