Jani Taskinen
11a1fa5b92
- Use correct macro name
2007-07-18 09:04:37 +00:00
Jani Taskinen
497218eedf
ws fix
2007-07-17 13:29:25 +00:00
Jani Taskinen
97abf9d5dc
- Fixed bugs #36796 , #36918 , #41371 (stream_set_blocking() does not work)
2007-07-17 13:27:38 +00:00
Jani Taskinen
869a00ee3f
- Removed leftovers from nuking safe-mode
2007-07-16 12:58:23 +00:00
Jani Taskinen
41c6375840
- Moved the old regex functions to it's own extension: ereg
2007-07-15 19:50:07 +00:00
Jani Taskinen
12361c16b1
MFB: free error messages + ws fix
2007-07-15 15:20:29 +00:00
Jani Taskinen
7faedf9646
- Unused macros removed
2007-07-15 15:09:36 +00:00
Johannes Schlüter
c91907a515
- Always enable mail() function
2007-07-11 17:39:04 +00:00
Dmitry Stogov
eb5dab85c9
Unicode support
2007-07-11 15:17:59 +00:00
Dmitry Stogov
922f3d5512
Fixed wrong warning
2007-07-11 14:32:54 +00:00
Jani Taskinen
8e399854e6
- No return value for void function
2007-07-11 10:23:47 +00:00
Sascha Schumann
ad31680f34
- fix concurrent reader/writer use case
...
(we read, while the other process writes -> if we don't try
read we won't notice that the file has been growing.)
2007-07-10 20:13:29 +00:00
Stanislav Malyshev
9993892a18
check if write is allowed before writing to error log
2007-07-10 18:42:01 +00:00
Dmitry Stogov
1f8c608320
Fixed symlink("", "somthing") and link("", "somthing") in ZTS mode
2007-07-10 13:21:31 +00:00
Dmitry Stogov
da28d1e673
wrong comments
2007-07-09 16:42:45 +00:00
Dmitry Stogov
f766275b7a
Added ability to create local or remote (URL) user streams
...
Local user streams must not be able to open(), URLs if allow_url_include is off
Implemented new function stream_is_local()
[
- stream_wrapper_register() extended with additional optional argument "flags"
of type long. This time only one flag is implemented - STREAM_IS_URL, that
means that userstream wrapper is remote (URL). By default stream is local.
- stream_is_local() is a new function that accepts stream and tell if this
stream is local or remote (URL)
]
2007-07-03 10:22:55 +00:00
Dmitry Stogov
740f5957ba
Restore big exponent letter in var_export() ('1e300' -> '1E300')
2007-06-25 08:39:23 +00:00
Derick Rethans
ad8eca0b05
- Added the H modifier to create non-locale-aware non-fixed-precision float
...
representations.
- Fixed var_export() to use the new H modifier so that it can generate
parsable PHP code for floats again, independent of the locale.
2007-06-19 12:19:27 +00:00
Dmitry Stogov
e6209db14c
HTTP 500 is sent to browser in case of PHP error instead of blank page
2007-06-15 09:20:53 +00:00
Dmitry Stogov
613b37a73e
(wrong previous patch)
2007-06-15 07:32:17 +00:00
Dmitry Stogov
1e87928766
Prevent crash in case of wrong arguments to CRT functions (dtrftime()) on PHP complead by MS VC8
2007-06-15 07:28:49 +00:00
Antony Dovgal
a9f6f71460
check return value of *time_r() functions for NULL
...
more checks will follow
2007-06-07 08:46:32 +00:00
Antony Dovgal
b445a2eaa2
fix HTTP_RAW_POST_DATA in Unicode mode
2007-06-05 11:24:37 +00:00
Antony Dovgal
71d7ee6d33
port the max_input_nesting_level ini option to Unicode mode
2007-06-05 11:24:13 +00:00
Antony Dovgal
ecd414c3b8
no register_globals in HEAD
2007-06-04 07:56:39 +00:00
foobar
feab02f3ed
- Improved the error message for exceeding max_input_nesting_level.
2007-06-03 16:53:37 +00:00
Ilia Alshanetsky
7d74c2c3e6
MFB: Improved fix for MOPB-02-2007
2007-06-03 16:19:55 +00:00
Antony Dovgal
cd7750e4ba
fix #41518 (file_exists() warns of open_basedir restriction on non-existent file)
2007-06-01 13:33:48 +00:00
Ilia Alshanetsky
e844eaedbb
MFB
2007-05-29 21:06:04 +00:00
Ilia Alshanetsky
373ae24839
MFB
2007-05-28 23:52:13 +00:00
Ilia Alshanetsky
66526cee92
MFB
2007-05-28 23:00:25 +00:00
Rasmus Lerdorf
5c0389a6f8
Optimize sapi_get_request_time() slightly making it use the cached time
...
and also checking if there is a server_context before trying to call
the request_time sapi hook.
2007-05-25 09:19:05 +00:00
Antony Dovgal
c66d75a933
use correct constant
2007-05-19 12:52:31 +00:00
Scott MacVicar
b0856d961f
Fixed bug #41390 (Clarify error message with invalid protocol scheme syntax)
2007-05-15 13:01:47 +00:00
Antony Dovgal
f6a01b2ace
use estrdup() and plug the leak
2007-05-14 12:19:25 +00:00
Hannes Magnusson
e7c7f95ecd
Fixed bug#41361 (shell_exec() does not find binaries)
2007-05-12 16:06:07 +00:00
Hannes Magnusson
c85e26cb06
MFB - use php_strtok_r() rather than strsep()
2007-05-10 19:51:19 +00:00
Dmitry Stogov
0ddb071abb
Fixed bug #41304 (compress.zlib temp files left)
2007-05-08 12:08:41 +00:00
Nuno Lopes
018e610436
update pcre symbols list
2007-05-07 15:43:21 +00:00
Antony Dovgal
47d3276cd7
removed unused highlight.bg ini option
2007-04-26 09:39:03 +00:00
Dmitry Stogov
00e9c1b1bf
ZTS fix
2007-04-25 14:18:15 +00:00
Antony Dovgal
e6e242f418
MFB: Fix crashes when SAPI handlers are overriden in dl()-ed extensions
2007-04-25 11:19:10 +00:00
Hannes Magnusson
f1e35024fb
- Don't pick up php.ini from cwd on BSDs
...
- "Resolve" (with the help of $PATH) to /path/to/php and pick up
the php.ini from there
2007-04-25 10:02:23 +00:00
Dmitry Stogov
2918cda494
Fixed crash on win32 in case of negative size
2007-04-18 14:23:35 +00:00
Dmitry Stogov
98423baf13
Fixed crash
2007-04-18 13:53:32 +00:00
Dmitry Stogov
44ac45fd92
Fixed endless loop in open_basedir check
2007-04-18 11:59:03 +00:00
Rob Richards
c88e2b7618
MFB: add file locking under windows
...
change win build to use common clock compat files
2007-04-18 09:48:07 +00:00
Dmitry Stogov
2908322c14
WIN64 support
2007-04-16 09:43:53 +00:00
Antony Dovgal
c94da398b9
add support for %I64(u|d) to sprintf() utilities
2007-04-12 22:00:56 +00:00
Antony Dovgal
a8e133eafa
MFB: fix #40931 (open_basedir bypass via symlink and move_uploaded_file())
2007-04-10 22:31:27 +00:00
Dmitry Stogov
8610b4f6cf
Fixed 64-bit support
2007-04-09 15:39:16 +00:00
Dmitry Stogov
e43c55d20f
ZTS fix
2007-04-09 15:35:49 +00:00
Antony Dovgal
8bb69d5e0d
MFB: Avoid locks when appening to the error log file
2007-04-08 08:02:02 +00:00
Andrei Zmievski
dce63050b8
MFB
2007-04-06 19:27:15 +00:00
Antony Dovgal
b3352b6a04
drop deprecated funcs and change error level to E_WARNING
2007-03-28 10:22:33 +00:00
Antony Dovgal
39454ffdfa
fix compile warning
2007-03-28 09:13:55 +00:00
Sara Golemon
98e832d29e
Fix handling over overridden file:// wrapper
2007-03-06 20:04:05 +00:00
Marcus Boerger
bf8ea04c13
- Missed to add [ to meta char check
2007-03-03 23:56:43 +00:00
Marcus Boerger
c7faeb736a
- Allow to retrieve flags with php_glob_stream_get_count()
...
- Detect meta chars in pathand switch to append mode so that path can
actually changes for each entry
2007-03-03 23:41:10 +00:00
Marcus Boerger
ce1d14eae8
- Allow to get number of entries of a glob stream
2007-03-03 23:04:57 +00:00
Marcus Boerger
53e5a8894c
- One more tab to go
2007-03-03 22:30:07 +00:00
Marcus Boerger
3666425b9b
- Change to hex to help read-/maintainability
2007-03-03 22:28:21 +00:00
Marcus Boerger
3f5e89cf31
- Provide access to pattern used in glob
2007-03-03 21:38:25 +00:00
Marcus Boerger
0c52e058b0
- php_stream_is() requires php_glob_stream_ops to be public
...
- little bit of additional whitespace
2007-03-03 20:56:45 +00:00
Marcus Boerger
01220f548f
- Add glob stream wrapper
2007-03-03 20:41:12 +00:00
Marcus Boerger
ff3a914147
-A stream wrapper might only allow directory access
2007-03-03 18:59:53 +00:00
Johannes Schlüter
65aca2f200
- Fix old behaviour, ob_list_handlers() should always return an array
2007-03-03 10:27:04 +00:00
Stanislav Malyshev
3a0d0d1f2d
limit nesting level of input variables
2007-03-02 22:04:46 +00:00
Antony Dovgal
ce78040c39
fix CS/WS
2007-02-26 11:55:32 +00:00
Dmitry Stogov
5b2c00bfff
ZTS fix
2007-02-26 10:22:44 +00:00
Nuno Lopes
8a03498f2d
MFB: update pcre symbol list
2007-02-25 18:48:19 +00:00
Marcus Boerger
49add78645
- Make [v]s[nl]printf compatible with 5.2 versions and [v]spprintf of head
2007-02-24 18:33:03 +00:00
Marcus Boerger
1c66194f86
- Add [v]slprintf
2007-02-24 18:24:06 +00:00
Marcus Boerger
20a40063c5
- avoid sprintf
2007-02-24 16:25:58 +00:00
Sara Golemon
3b00d29d5a
Add retry for interrupted reads and graceful handling for failed retries
2007-02-23 23:08:40 +00:00
Marcus Boerger
bbfce40c49
- Fix logic
2007-02-22 23:25:36 +00:00
Antony Dovgal
30dacafa72
implement PHP_STREAM_FLAG_NO_CLOSE and avoid hacks in plain wrapper
2007-02-21 21:56:45 +00:00
Antony Dovgal
be4b75b136
improve php_userstreamop_seek()
...
check for errors in stream_seek() and return correct status
2007-02-13 19:50:13 +00:00
Antony Dovgal
5a6d0f0424
use strdup()
2007-02-06 17:35:42 +00:00
Andi Gutmans
7b6523c8e6
- Make sure to be ANSI C compliant
2007-02-05 05:15:49 +00:00
Marcus Boerger
66398d4e3e
- Fix memleak
2007-02-03 14:57:24 +00:00
Marcus Boerger
67206a2cbf
- Fix mem/temp stream exports and readonlyissue
2007-02-03 14:45:54 +00:00
Michael Wallner
db22b925bf
- don't do memory limit checks for chunk_size
2007-01-29 13:04:57 +00:00
Marcus Boerger
93918c7a7c
- Add option support for temp/memory stream (adds ftruncate support)
2007-01-27 15:17:23 +00:00
Sara Golemon
cc1b19cf0e
Expand allow_url_fopen/allow_url_include functionality
2007-01-24 21:43:47 +00:00
Marcus Boerger
27a4e7a2ea
- Change hardcoded size to lentgh translation to use sizeof(UChar) as suggested by Andrei
2007-01-19 09:12:08 +00:00
Marcus Boerger
511351bf99
- We need to return the length not the byte size
2007-01-18 23:11:42 +00:00
Marcus Boerger
fcef8d4836
- Fix [v]uspprintf()
...
- Add [v]zspprintf
2007-01-18 21:39:50 +00:00
Nuno Lopes
22fbaf2d6c
MFB: use only 2 bits
2007-01-18 16:06:28 +00:00
Antony Dovgal
53e179ea11
fix fodling, mark set_time_limit() unicode safe
2007-01-18 12:37:44 +00:00
Andrei Zmievski
94123c919e
Update PHP API version.
...
# Wonder why it hasn't been done already.
2007-01-16 22:18:39 +00:00
Marcus Boerger
1c60406349
- Add more unicode stuff
2007-01-16 20:36:04 +00:00
Marcus Boerger
99bd9f758a
- Help streams debugging
2007-01-15 22:19:33 +00:00
Antony Dovgal
902e6583d9
add trailing '\0' to stream hashes
2007-01-15 17:06:52 +00:00
Antony Dovgal
3868c1533e
include \0 to the hash
...
it does matter because we use these strings in phpinfo()
2007-01-15 14:59:40 +00:00
Marcus Boerger
25095070cf
- Use relay to aid debugging
2007-01-14 19:13:34 +00:00
Marcus Boerger
672eae9c90
- Fix readonly mode to 'rb'
2007-01-14 19:09:55 +00:00
Hannes Magnusson
61b4b4b628
MFB: Fix build (wharmby at uk dot ibm dot com)
2007-01-12 14:34:46 +00:00
Antony Dovgal
9efc4483c0
plug newly added leak
2007-01-12 09:10:05 +00:00
Ilia Alshanetsky
e5a2796223
MFB:
...
Fixed bug #40098 (php_fopen_primary_script() not thread safe).
Adjusted previous fixes for similar issue to handle sysconf() failures
2007-01-12 01:50:43 +00:00
Antony Dovgal
8c64f4279b
use closesocket() on Win32 and close() on *nix
2007-01-11 15:51:29 +00:00
Sara Golemon
53333166fc
Add convenience function for openeing files with unicode names
2007-01-10 22:43:17 +00:00
Marcus Boerger
54917a290b
- MFH (Ilia's changes)
2007-01-09 18:38:38 +00:00
Nuno Lopes
42fc7a07ba
make a var static
2007-01-06 20:43:51 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Ilia Alshanetsky
e88897ec7b
MFB: Fixed bug #39984 (redirect response code in header() could be ignored
...
in CGI sapi).
2006-12-31 19:22:17 +00:00
Ilia Alshanetsky
7c161a1fe6
MFB: strcat() stuff
2006-12-28 15:10:54 +00:00
Antony Dovgal
fbf05e4b70
use strlcat()
2006-12-28 12:18:47 +00:00
Antony Dovgal
8dce10427f
use strlcat() and a bigger buffer
2006-12-28 12:01:14 +00:00
Antony Dovgal
867d6380a8
fix php_stream_u_get_line() macro
2006-12-27 15:22:46 +00:00
Ilia Alshanetsky
2dbfe66e4a
MFB: safety checks
2006-12-26 17:40:20 +00:00
Dmitry Stogov
1ed6591f8a
Fixed heap overflow
2006-12-25 13:11:48 +00:00
Antony Dovgal
4bfad779d7
fix ws, cs and overall code readability
2006-12-21 21:49:13 +00:00
Dmitry Stogov
d7b7678817
Default memory_limit value is set to 128M
2006-12-21 09:12:59 +00:00
Antony Dovgal
b07ab323ad
apply correct fix (aka "oops!")
2006-12-21 01:18:14 +00:00
Antony Dovgal
7a6b75e8ac
don't leak on error
2006-12-21 01:07:52 +00:00
Antony Dovgal
50791bce76
fix potential leak
2006-12-21 00:46:51 +00:00
Dmitry Stogov
a7c536fbcd
Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make a
...
ny significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it
still set to 16M.
2006-12-20 10:50:46 +00:00
Hannes Magnusson
460360ae53
MFB:
...
- Fixed incorrect function names on FreeBSD where inet_pton() was named
__inet_pton() and inet_ntop() was named __inet_ntop()
- Fixed bug #39685 (iconv() - undefined function)
- Fixed bug #38852 (XML-RPC Breaks iconv)
2006-12-20 10:38:24 +00:00
Antony Dovgal
884fb55a29
-NAN should not be possible
2006-12-19 13:26:39 +00:00
Antony Dovgal
0632620997
inf->INF
...
nan->NAN
2006-12-19 13:15:30 +00:00
Dmitry Stogov
fb7237eebd
Support for systems without locale.h
2006-12-19 13:13:48 +00:00
Dmitry Stogov
869003830b
Fixed bug #39815 (SOAP double encoding is not locale-independent)
2006-12-19 11:55:16 +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
58673959f9
fix possible invalid read (reproducible only on big-endian machines)
2006-12-18 13:15:18 +00:00
Hannes Magnusson
44693bbf85
- make %f locale aware again
...
- fix precision loss with %F (noticed by Sebastian Nohn)
- add new tests
2006-12-18 09:25:32 +00:00
Ilia Alshanetsky
fe1176d443
Fixed compiler warning
2006-12-17 18:30:50 +00:00
Andrei Zmievski
3de95b79c3
Keep CLI args as binary strings.
2006-12-12 18:05:07 +00:00
Michael Wallner
8ad12c9899
- upgrade phpinfo() and phpcredits()
2006-12-10 15:02:50 +00:00
Ilia Alshanetsky
9901e4a31d
MFB:
...
Fixed handling of multiple cookies with the same name.
Added support for cookies into run-tests.php
2006-12-09 14:17:17 +00:00
Ilia Alshanetsky
16e11ad947
MFB: Strip leading spaces from cookie names, that can come from multi-cookie
...
headers where ; can be followed by any number of spaces.
2006-12-09 13:14:06 +00:00
Andrei Zmievski
4097992ed4
Don't use zend_ascii_hash_find() here -- module names are binary strings.
2006-12-08 19:13:31 +00:00
Antony Dovgal
4789badd3a
use BSD licensed implementation of double-to-string utilities instead of LGPL one
...
this patch also fixes thread safety issues in zend_strtod()
2006-12-06 09:50:28 +00:00
Stanislav Malyshev
40b496d63f
Merge from 5.2:
...
Improve tolower()-related functions on Windows and VC2005 by caching locale and using
tolower_l function.
2006-12-05 02:55:27 +00:00
Antony Dovgal
576797c7c1
fix retval type
...
it should be int, not zend_bool
2006-12-04 15:58:35 +00:00
Ilia Alshanetsky
b728cd3b05
MFB: Fixed php_readdir_r() usage in scandir emulation
2006-12-03 15:52:37 +00:00
Antony Dovgal
f5ad39de6d
fix Solaris build
2006-12-03 14:38:05 +00:00
Frank M. Kromann
8fba0806cd
MFB: Fix win32 build
2006-12-01 20:22:11 +00:00
Ilia Alshanetsky
3fb8bece12
MFB: Thread-safety issues
2006-11-30 16:10:48 +00:00
Antony Dovgal
9ed4f515d1
fix #39673 (file_get_contents causes bus error on certain offsets)
2006-11-29 11:10:49 +00:00
Dmitry Stogov
e229ea6cb7
Fixed bug #39548 (ZMSG_LOG_SCRIPT_NAME not routed to OutputDebugString() on Windows)
2006-11-23 08:37:34 +00:00
Antony Dovgal
8373efc9b9
fix #39551 (Segfault with stream_bucket_new in user filter)
...
also fixes several segfaults and leaks
add test
2006-11-21 15:47:44 +00:00
Dmitry Stogov
a563332ee4
COM initialization/deinitialization are done only if necessary
2006-11-17 11:41:13 +00:00
Dmitry Stogov
57d22421db
Unicode support.
...
Now the real UG(unicode) value is available during MINIT calls.
2006-11-17 10:48:53 +00:00
Hannes Magnusson
9da991dd50
MFB: Fix ftruncate() with negative size
2006-11-16 16:08:09 +00:00
Michael Wallner
d96f225a15
- fix buffer size alignment
...
- avoid memory overflow #if MEMORY_LIMIT
2006-11-13 14:05:03 +00:00
Dmitry Stogov
6850e95c3e
Removed unnecessary ftell() calls (one call for each included PHP file)
2006-11-10 13:18:46 +00:00
Dmitry Stogov
c39eecf9ae
Disabled reading from stream (calls to read()) after EOF
2006-11-10 13:10:28 +00:00
Dmitry Stogov
768185e58f
Implemented registry cache that prevent registry lookup on each request. In case of modification of corresponding registry-tree PHP will reload it automatic.
2006-11-10 11:42:40 +00:00
Dmitry Stogov
a68d5f0a89
opendir() is reimplemented using GetFistFile/GetNextFile those are faster then _findfirst/_findnext
2006-11-10 11:20:58 +00:00