Ilia Alshanetsky
3c84c0eefc
Fixed bug #25836 (last key of multi-dimensional array passed via GPC
...
not being escaped when magic_quotes_gpc is on).
2003-10-14 03:49:13 +00:00
Ilia Alshanetsky
639216a4aa
Fixed bug #25746 (Do not bail out when unable to chdir original dir on
...
systems with broken getcwd()).
2003-10-09 02:58:34 +00:00
Wez Furlong
590b3ccc79
Set the EOF indicator after each read attempt.
...
This prevents it getting stuck in the on position.
2003-10-08 10:55:51 +00:00
Stanislav Malyshev
dd7bdcf4b1
Fix $_SERVER['argv'] and $_SERVER['argc']
2003-10-07 08:46:16 +00:00
Moriyoshi Koizumi
921e5b47c5
Fix fgetcsv() to correctly support international characters
...
# note: mblen() is not a mbstring function, but is part of the ANSI standard
# which is even supported by Microsoft's libc.
2003-10-04 02:51:19 +00:00
Andrei Zmievski
b3920d5012
Made the $argc and $argv always available as globals in CLI, and not as
...
$_SERVER vars which depended on variables_order anyway. No more
silliness.
2003-10-01 23:11:59 +00:00
Ilia Alshanetsky
6ac36d1a00
More NaN & INF handling fixes.
2003-09-29 23:44:07 +00:00
Ilia Alshanetsky
7356a9b312
Fixed Bug #25665 (var_dump() hangs on Nan and INF).
2003-09-29 01:07:55 +00:00
Hartmut Holzgraefe
075e66cc08
signed/unsigned compiler warning fixes
2003-09-26 08:09:56 +00:00
Ilia Alshanetsky
102a5cadfd
Fixed bug #25293 (Output correct EOL to error_log)
2003-09-24 23:20:48 +00:00
foobar
04a575389f
Removed unnecessary ssl.h include
2003-09-23 16:04:03 +00:00
Ilia Alshanetsky
855015ecd0
When track_errors was enabled, we tried to assign value already freed char.
2003-09-18 00:04:57 +00:00
Marcus Boerger
9f329adb02
Add length modifier L
2003-09-14 09:50:36 +00:00
Marcus Boerger
9b98e42f35
- Add length modifiers(ll, j, t, h, hh)
...
# Still missing formats (%a, %A)
# Still missing modifier (l) in (%lc, %ls)
# Still missing modifier (L) in (%La, %LA, %Le, %LE, %Lf, %LF, %Lg, %LG)
# C99 requires any conversion to be able to produce at least 4095
# characters. Implementation only allows less then 512.
#
# Only inside ext/mbstring etc. we could use %lc and %ls. And none of the
# rest should affect us until we stay with double and avoid long double.
2003-09-14 09:12:54 +00:00
Marcus Boerger
3cf2d2f108
Show the whole message when in debug mode
2003-09-13 19:56:38 +00:00
Ard Biesheuvel
f940b0fe3c
Pointer size fix
2003-09-13 19:43:39 +00:00
Marcus Boerger
af574b9699
- Fix %p to prepend '0x' as suggested by C99.
...
- Add 'z' prefix.
# Now you can use '%zd' in [v]spprintf() and everything that utilizes it
# like error messages BUT you still cannot rely on it in [v]s[n]printf()
# calls.
2003-09-13 16:49:24 +00:00
Ard Biesheuvel
6f37733367
Fixed for 64bit archs
2003-09-13 15:27:09 +00:00
Ilia Alshanetsky
ef23b497d4
Fixed bug #25316 (Possible infinite loop inside _php_stream_write()).
2003-09-11 05:07:26 +00:00
Stefan Roehrich
2fc92e8fd8
Fix for bug #23488 zlib.output_compression overrides vary header.
...
It was already fixed for ob_gzhandler (#24827 ).
2003-09-10 08:47:37 +00:00
Ilia Alshanetsky
0a3d5c9b08
Fixed bug #25429 (fix copying of stdin using copy() function)
2003-09-10 00:58:12 +00:00
foobar
6ed790685f
configure.in
2003-09-08 13:14:41 +00:00
Marcus Boerger
e5e6040efe
Remove unwanted space
2003-09-04 14:43:36 +00:00
Ard Biesheuvel
3d6426ee14
Fix use of EXTERN_C macros
2003-09-02 13:34:23 +00:00
Ard Biesheuvel
e6ea5ca9c3
Fix use of EXTERN_C macros
2003-09-02 13:07:17 +00:00
Marcus Boerger
e69028346a
Error message clean up part IV: spprintf/estrndup don't return on 'out of mem'
...
Error message clean up part V: Show PHP Startup/Shutdown
2003-09-02 12:12:05 +00:00
Marcus Boerger
a383ff01e6
Error message clean up part III: Fix ini setting logic & respect docref_root
2003-09-02 00:35:51 +00:00
Marcus Boerger
107a59ae72
Error message clean up part II: Don't show params where none apply.
2003-09-01 23:32:28 +00:00
Marcus Boerger
4e049f9fc9
Error message clean up part I: always show 'Unknown' instead of empty names.
2003-09-01 22:55:40 +00:00
Marcus Boerger
d45fd8a1b1
Make vspprintf available as zend utility function. Use it in exception output.
2003-08-31 09:35:54 +00:00
Marcus Boerger
ab22461262
Add define to reset error handling more easily
2003-08-29 00:22:36 +00:00
Ilia Alshanetsky
9d9727aac5
Fixed compiler warnings.
2003-08-28 19:17:34 +00:00
Sascha Schumann
af8e15b8db
kill warnings
2003-08-28 17:07:40 +00:00
Sascha Schumann
341b7b5df1
add format attribute where appropiate
2003-08-28 16:49:43 +00:00
Sascha Schumann
258d958d4f
Use ZEND_GCC_VERSION and ZEND_ATTRIBUTE_MALLOC
2003-08-28 14:53:36 +00:00
Sascha Schumann
5ef7cc4cb6
Let GCC check format arguments
2003-08-28 05:23:08 +00:00
Ilia Alshanetsky
a326bde2e8
Prevent a crash when expand_filepath() fails.
2003-08-27 01:10:10 +00:00
foobar
e4677c014a
- Fixed bug #25166 (WDDX serializer handler missing in win32). (Jani)
2003-08-26 02:50:39 +00:00
Marcus Boerger
3b7d5781de
- Simplify php_error_cb()
...
- Make errors show the class where possible
2003-08-25 20:51:40 +00:00
Ilia Alshanetsky
d52172ad89
Fixed bug #25127 (reset memory_limit before terminating the request)
2003-08-22 20:01:53 +00:00
Brian France
ab2ebdb49b
Updated PHP_API_VERSION to 20030820 for the php_setcookie api change
2003-08-22 16:43:29 +00:00
Zeev Suraski
7b4ec88d76
No need for those code blocks anymore...
2003-08-20 23:00:08 +00:00
Ilia Alshanetsky
ece0a731e9
Fixed bug #25170 (Problem with generation of random numbers on solaris)
2003-08-20 16:40:22 +00:00
Wez Furlong
b61e6e24c3
Unify TSRMLS_FETCH() usage.
...
Fix release build: two instances of } were placed inside #ifdef ZEND_DEBUG
2003-08-19 03:25:00 +00:00
Wez Furlong
ef498a27b8
linkage for C++
2003-08-18 23:19:27 +00:00
Zeev Suraski
642e331309
Improve tracking
2003-08-18 22:31:29 +00:00
Sascha Schumann
602d1b0045
One bit fields need to be unsigned, otherwise there is no storage for
...
the sign bit
"A signed bit field has a length of 1 bit."
2003-08-17 13:49:52 +00:00
Wez Furlong
6e6a793bb9
fix this stuff
2003-08-14 17:06:43 +00:00
Wez Furlong
6df5d5ba20
Add new COM (and .Net) extension for php5.
...
Not yet complete, but should work for most people.
2003-08-14 16:49:56 +00:00
Ilia Alshanetsky
93bcd55eaf
emalloc -> safe_emalloc
2003-08-12 00:58:52 +00:00
Marcus Boerger
c60d2a312e
Bugfix #25044
2003-08-11 19:36:26 +00:00
Masaki Fujimoto
ab9dcec292
- added script encoding support to Zend Engine 2.
...
this enables ZE2 to gracefully parse scripts written in UTF-8 (with BOM),
UTF-16, UTF-32, Shift_JIS, ISO-2022-JP etc... (when configured with
'--enable-zend-multibyte' and '--enable-mbstring')
2003-08-11 05:24:42 +00:00
Marcus Boerger
3466a48add
Initialize this variable to 0 as suggested by sara
2003-08-10 21:30:36 +00:00
Ilia Alshanetsky
c99e16d14a
Timeout fix.
2003-08-09 23:15:40 +00:00
foobar
3c1cb7431e
MFB
2003-08-09 14:27:16 +00:00
Ilia Alshanetsky
5e9a18a5c0
Fixed bug #24951 (ob_flush() needlessly destroys output handler).
2003-08-08 23:43:45 +00:00
Marcus Boerger
4ea2599301
Clearify
2003-08-08 19:48:33 +00:00
Marcus Boerger
2ede480de2
Bugfix #24063 (marcus/ilia)
2003-08-08 19:47:30 +00:00
Zeev Suraski
4e796a7080
Remove unnecessary macro
2003-08-03 17:42:01 +00:00
Ilia Alshanetsky
de7f7658cf
Only register server variables when needed.
2003-07-31 22:56:57 +00:00
Ilia Alshanetsky
0eb76eb2ec
Fixed bug #24883 (variables created through register_globals, ignore
...
gpc_order and variables_order).
Prevent multiple registration of ENV & SERVER variables when more then one
is specified.
Prevent multiple addition of GET/POST/COOKIE variables when building
_REQUEST.
2003-07-31 22:29:32 +00:00
Ilia Alshanetsky
ecbcd7f59f
Fixed bug #22154 (Possible crash when memory_limit is reached and
...
output buffering in addition to session.use_trans_sid is used).
2003-07-31 19:46:03 +00:00
Ilia Alshanetsky
9ba651c692
Fixed bug #24873 (incorrect handling of / inside open_basedir)
2003-07-30 17:55:06 +00:00
Zeev Suraski
0d77cf2a33
Call exec_finished()
2003-07-30 16:15:03 +00:00
Ilia Alshanetsky
4d98e9ec97
Finalize the closing process of persistent streams. The current
...
behavior/API is as follows:
1) To close a persistent use php_stream_pclose(), it will close the stream
and remove it from the persistent list.
2) Inside PHP code only explicit fclose() will close persistent streams,
all other actions such as unset() or assigning a value to stream handle
will not.
3) Regular streams can still be closed by either fclose(), unset() or an
assignment of a value to the stream handler.
2003-07-29 18:26:34 +00:00
Ilia Alshanetsky
37ee0e57cc
Fixed a double free bug when freeing persistent streams.
2003-07-28 18:57:28 +00:00
Edin Kadribasic
37cbc7cbb5
Partial MDB
2003-07-25 11:41:33 +00:00
Zeev Suraski
0a49c033d0
- Use the new infrastructure of zend_symtable_*() (fixes bug #24565 )
...
- Fix bogus use of get_current_key()
2003-07-22 16:08:50 +00:00
Ilia Alshanetsky
1e92b5e7a3
Make php_check_safe_mode_include_dir check independent of unrelated
...
open_basedir directive and make it properly handle undefined/empty
safe_mode_include_dir directive when safe_mode is enabled.
2003-07-22 01:32:01 +00:00
Zeev Suraski
023c8a7d95
Fix register_globals
2003-07-21 17:42:24 +00:00
Zeev Suraski
f4ae16519c
Remove old code
2003-07-21 17:41:42 +00:00
Marcus Boerger
244795a4df
Fix text output of numbers with absolute exponent greater than or equal 80.
...
#
# Probably not last conclusion on wisdom. But i looked up current apache
# sources and they have the same error and so this must do the trick.
#
2003-07-17 21:26:25 +00:00
Marcus Boerger
bdfed34ef6
Bugfix #22690
2003-07-16 08:36:04 +00:00
Wez Furlong
5cf5248b00
Fix for mips compiler.
2003-07-14 19:38:13 +00:00
foobar
253dc38445
Fixed bug #24563 (preg_match() crashes PHP under Apache2)
2003-07-10 16:08:56 +00:00
Wez Furlong
fa342d2404
MFB: binary mode by default under win32.
2003-07-05 08:25:25 +00:00
Sterling Hughes
9a29929029
avoid external conflicts in apache
2003-07-04 18:19:02 +00:00
Moriyoshi Koizumi
fd9d9dea1c
Fix build
2003-07-03 15:26:12 +00:00
foobar
50d3650a92
Cut the long line a bit for readability..
2003-07-03 02:59:04 +00:00
Ilia Alshanetsky
a96aa89ae3
Compiler warning fix.
2003-07-03 00:55:20 +00:00
Sara Golemon
444615e74c
Introduce connection pooling API. I'll use these in http/ftp fopen wrappers soon.
2003-07-02 22:18:59 +00:00
Wez Furlong
49228bd5e2
more size_t -> socklen_t.
...
Noticed by tychay@php.net
2003-07-02 21:11:35 +00:00
Wez Furlong
989500b347
socklen_t needs this.
...
We might need some more magic to ensure that socklen_t gets defined in
the correct places; lets see if any more problems arise...
2003-07-02 01:35:39 +00:00
Wez Furlong
17cbf83404
size_t -> socklen_t
...
fixes warnings under macosx
2003-07-01 19:51:06 +00:00
Ilia Alshanetsky
8cb5c9c6ba
Fixed bug #24063 (*printf() did not handle scientific notation correctly)
2003-06-30 01:03:21 +00:00
Rui Hirokawa
2b44c63d50
Fixed corruption of multibyte character including 0x5c as second
...
byte in multipart/form-data.
2003-06-28 23:37:18 +00:00
Wez Furlong
5ecc91c27d
Merge selectable descriptor casting from PHP_4_3 branch.
2003-06-28 11:24:47 +00:00
Wez Furlong
8dfe385215
Merge getaddrinfo() tidy-up from PHP_4_3 branch.
2003-06-28 11:12:48 +00:00
Wez Furlong
c0c20ef6f6
Fix for mips compiler
2003-06-28 11:06:11 +00:00
Edin Kadribasic
2e9c9427ec
Move along, nothing to see.
2003-06-27 22:18:06 +00:00
Sterling Hughes
1135af7340
beta 1
2003-06-27 22:09:12 +00:00
Sebastian Bergmann
f8af9c3cee
MFB: libpcre 4.X needs POSIX_MALLOC_THRESHOLD to be defined.
2003-06-27 16:43:05 +00:00
foobar
3a7ca909be
- HAVE_OPENSSL_EXT is not defined always.
2003-06-27 16:41:41 +00:00
Sara Golemon
2e4ef86e10
MFB
...
Plug leak in context notifiers, implement notifier->dtor
2003-06-27 16:23:58 +00:00
Edin Kadribasic
94b7050bc0
Enabled sqlite by default on Windows.
...
# Also added iconv.lib to the build since it is a dependency of
# the precompiled libxml. This will be removed later.
2003-06-27 14:32:59 +00:00
Sascha Schumann
9979003eeb
undefine macros before defining them
2003-06-27 07:43:42 +00:00
Sara Golemon
ac79577776
MFB PHP_4_3 main/streams.c r-1.125.2.70
2003-06-27 04:27:18 +00:00
Zeev Suraski
daae086380
New logo (not final yet...)
2003-06-26 17:30:41 +00:00
Sebastian Bergmann
1c6c9e9485
Sync.
2003-06-26 15:15:02 +00:00
Sebastian Bergmann
4434c8e0d6
Add ext/dom and ext/simplexml to the Win32 default build. #Apart from a linker error when HAVE_SIMPLEXML=1 is set this already works. More research, after a good night's sleep, is required ;-)
2003-06-25 21:37:50 +00:00
Sebastian Bergmann
926bd5cf29
Disable MySQL extension by default.
2003-06-25 05:01:50 +00:00
Sebastian Bergmann
a10e5b6381
Remove ext/rpc references from Windows build.
2003-06-25 04:54:23 +00:00
Ilia Alshanetsky
419448238b
Fixed typo.
2003-06-24 14:36:01 +00:00
Ilia Alshanetsky
6b5b6079da
Fix for bug #24313 (port from dead PHP_5 branch)
2003-06-24 13:56:25 +00:00
Ilia Alshanetsky
caef4c7776
Handle numeric keys passed via GPC
2003-06-17 17:15:02 +00:00
Ilia Alshanetsky
e40142047b
Fixed bug #24208
2003-06-16 19:24:56 +00:00
Sara Golemon
730ce7b06f
Add context property to userspace streams object.
2003-06-16 19:13:39 +00:00
Sara Golemon
2f4e91bf8a
optionvalue is being copied via zval_copy_ctor, there's no need to addref the original
2003-06-16 18:19:14 +00:00
Edin Kadribasic
6e2743023b
Win32 build fixes for openssl
2003-06-15 23:34:46 +00:00
Marcus Boerger
f304458bdb
Fix ZTS mode (hopefully all is working fine now again)
2003-06-14 19:30:42 +00:00
Ilia Alshanetsky
93a5238465
Fixed bug #24007 (Problem with register_globals & arrays)
2003-06-14 15:08:27 +00:00
Sara Golemon
99db19661a
Plug leak (context options not freed)
...
Make contexts auto-registered, ensures userland contexts
and C API contexts are both dealt with on request shutdown.
Also brings contexts in keeping with streams which are already
auto-registered.
2003-06-13 21:33:59 +00:00
Derick Rethans
5b1f7be3eb
- MFB: HTTP Request Methods are case sensitive
...
#- This was surrounded by an #ifdef, but I thought I fixed it too.
2003-06-12 08:38:58 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Edin Kadribasic
f7c9551d5e
MFB
2003-06-09 01:00:23 +00:00
Zeev Suraski
ce40bc9073
Make $_FILES auto global (bug #23680 )
2003-06-08 15:30:33 +00:00
Edin Kadribasic
b7713f411e
Fix for #23902 by Shane.
...
Removed bogus recommendation from php.ini files.
# Basic authentication is actually possible
# usign IIS + PHP cgi countrary to our current docs
2003-06-03 10:06:45 +00:00
foobar
d5253b4f1f
Follow the "standard" naming.
2003-05-30 20:03:10 +00:00
Hartmut Holzgraefe
ac2606bf58
fix for crashbug with user level wrapper implementations of stream_stat
2003-05-29 20:19:03 +00:00
Sebastian Bergmann
d1cb228bf1
Get rid of references to expat in MSVC project files. For now this expects libxml2 (library and includes) in one of the MSVC default include/library directories. Right now it doesn't link, dunno why -- working on it.
2003-05-24 08:03:38 +00:00
Sara Golemon
dccf33b4e8
MFB(r-1.122.2.10)
...
Bug#23765 File upload handler should not care about case sensitivity of header values.
2003-05-23 21:40:45 +00:00
Ilia Alshanetsky
5298fd6256
MFB
2003-05-21 22:56:59 +00:00
Wez Furlong
2d1a6e5dc2
MFB context refcounting and text-mode fopen fixes
2003-05-21 13:33:55 +00:00
Sara Golemon
83b7b75c3c
Implement default contexts. For the moment this is useless
...
but it will be used soon for connection pooling.
2003-05-21 04:04:50 +00:00
Hartmut Holzgraefe
b5bef8f7b3
always return timestamps as 'atime', 'mtime' and 'ctime'
...
no matter what names the underlying platform uses for them
2003-05-20 13:09:11 +00:00
Wez Furlong
192f632e2e
MFB fix for persistent streams recycling.
2003-05-19 22:58:34 +00:00
Marcus Boerger
f10a7b90b2
Fix warning
2003-05-19 18:48:15 +00:00
Marcus Boerger
1b0fdbf63a
Fix memleaks
2003-05-19 18:46:59 +00:00
Sebastian Bergmann
88cb80020a
First try at getting the Windows build working again after libxml2 got unbundled.
2003-05-19 16:28:08 +00:00
Derick Rethans
92f0da58e6
- Rename stream_register_filter() to stream_filter_register(),
...
stream_register_wrapper() to stream_wrapper_register() and added an alias for
the latter change.
2003-05-19 15:35:06 +00:00
Stanislav Malyshev
605eb159e0
Bump API version - HEAD is no longer binary compatible
...
to 4.3 branch due to changes in globals, etc.
2003-05-18 10:22:50 +00:00
Frank M. Kromann
941d4c3e99
Fix compilation under Win32
2003-05-17 22:15:39 +00:00
Wez Furlong
84fc3f384a
Fix segfault
2003-05-17 09:34:37 +00:00
Sebastian Bergmann
85a13e3e9a
Fix warnings.
2003-05-17 06:21:34 +00:00
Wez Furlong
e9b62698c7
Stronger validation of ob_start() parameters.
2003-05-16 19:08:13 +00:00
Sara Golemon
44743cf9ec
Implement userspace wrapper support for unlink method
2003-05-14 18:30:49 +00:00
Sara Golemon
65d359d71a
Fold 'options' parameter into wops->unlink method
2003-05-14 15:12:07 +00:00
Sara Golemon
5126fbe556
Setup unlink() method in wrapper_ops structure, implement unlink in plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
2003-05-14 06:10:04 +00:00
Ilia Alshanetsky
b76261dcbb
Fixed bug #23454 (_REQUEST did not handle arrays with same names from
...
different sources correctly).
2003-05-13 22:08:48 +00:00
Sascha Schumann
2c7c0457b6
Ensure that open(".", 0); works, otherwise bail out
2003-05-13 18:48:01 +00:00
Sascha Schumann
af402a9e13
MFB don't close random fds
2003-05-13 02:26:42 +00:00
Ilia Alshanetsky
56ba9b4ae5
emalloc -> safe_emalloc
2003-05-13 01:57:54 +00:00
Ilia Alshanetsky
b20df54af7
Make serialize precision a configurable option.
2003-05-08 01:23:21 +00:00
Marcus Boerger
3fc4a32743
Infrastructure to catch warnings and throw tehm as errors autmatically
2003-05-07 01:02:23 +00:00
Sebastian Bergmann
4c8e30eccc
MFB: Fix for bug #23489 .
2003-05-06 04:22:01 +00:00
Ilia Alshanetsky
4f4cc4f7a3
Sanity check that ensures proper handling of 'E' doubles/floats as well as
...
prevents an unlikely buffer overflow.
2003-05-05 19:54:28 +00:00
foobar
1948b45b3f
Make use of --with-exec-dir for real..
2003-04-28 21:00:32 +00:00
foobar
f140ae993f
fix compiler warning (unused variable)
2003-04-25 18:11:32 +00:00
foobar
2219a62606
- Made 'register_long_arrays' to be "On" by default.
2003-04-25 10:57:23 +00:00
Sascha Schumann
652b615438
Fix PUTS/PUTS_H to only evaluate their argument once.
2003-04-19 18:35:31 +00:00
Sara Golemon
0c366c24e5
Macro: php_stream_get_from_zval(php_stream *stream, zval **zstream, char *mode, int options, char **opened_path, php_stream_context *context) Z_TYPE_PP(zstream) can be either IS_RESOURCE (An already opened stream) or IS_STRING (a path to a stream to be opened)
2003-04-17 00:00:34 +00:00
Marcus Boerger
b09aa87120
Don't access what is already freed (noticed by Sascha)
2003-04-16 17:30:03 +00:00
Moriyoshi Koizumi
49b43ad115
Changed stream filter factory to be capable of accepting a zval as a parameter
...
instead of a string
2003-04-16 14:30:25 +00:00
Sascha Schumann
bb50c3846f
Fix uninitialized reads
...
==32323== Conditional jump or move depends on uninitialised value(s)
==32323== at 0x80F5A5C: zend_ini_color_displayer_cb (/home/sas/src/php4/Zend/zend_ini.c:374)
==32323== by 0x80C5B7F: php_ini_displayer_cb (/home/sas/src/php4/main/php_ini.c:60)
==32323== by 0x80C5D15: php_ini_displayer (/home/sas/src/php4/main/php_ini.c:115)
==32323== by 0x80F0168: zend_hash_apply_with_argument (/home/sas/src/php4/Zend/zend_hash.c:707)
2003-04-16 12:44:08 +00:00
Marcus Boerger
75c8f37c03
Make it static
2003-04-13 20:30:57 +00:00
Marcus Boerger
887d5ec9c1
Speling
2003-04-13 20:12:54 +00:00
Marcus Boerger
bff63db577
Fix persistent stream closing (that one took me at least 3 days)
2003-04-13 19:47:55 +00:00
Wez Furlong
2090d23f02
Fix for #23069 (Windows sets readonly mode for temporary files in tempnam)
2003-04-11 11:08:44 +00:00
Andrei Zmievski
2154cddd0e
Move memnstr into Zend and make an alias for BC in PHP.
2003-04-08 15:04:26 +00:00
Sara Golemon
d6c24de842
Add IPv6 support to stream_socket_client/server()
2003-04-05 02:42:12 +00:00
Andrei Zmievski
81482833b5
Introduce ZEND_ME() and ZEND_METHOD() macros. Use these for declaring
...
class methods to avoid name collisions.
2003-04-04 15:38:20 +00:00
Sascha Schumann
7f5a42da17
Backout Jani's commit to resync branches
2003-04-04 08:40:48 +00:00
Sara Golemon
c985b780a5
Prevent php_stream_get_record from grabbing more than maxlen characters
2003-04-04 01:34:00 +00:00
foobar
ff22d581d9
WS & CS fix
2003-04-03 18:44:00 +00:00
Sascha Schumann
7e2fcf986e
Add some checks and avoid passing invalid data to call_user_function_ex.
...
Fixes some heap corruption and allocation of negative amounts of memory.
2003-04-03 18:19:15 +00:00
Moriyoshi Koizumi
f7a8499806
Fixed memleak in output buffering facility
2003-04-03 00:50:17 +00:00
Colin Viebrock
a77cb3c35d
oops ... committed the wrong one
2003-04-02 16:28:38 +00:00
Colin Viebrock
6aa1481f83
fix logo (outline around letters)
2003-04-02 15:36:34 +00:00
Sascha Schumann
e2333fd1df
Fix an uninitialized read, default to FAILURE
2003-04-01 19:14:47 +00:00
Moriyoshi Koizumi
8d2dd87d89
Fixed bug #22538 (stream filter problem)
2003-03-31 23:22:10 +00:00
Ilia Alshanetsky
62909237c4
WS
2003-03-31 22:13:01 +00:00
Marcus Boerger
0235d331b7
use the correct macro - noticed by Andrei
2003-03-31 19:14:18 +00:00
Marcus Boerger
7a76d5f438
cleanup
2003-03-30 13:59:05 +00:00
Shane Caraveo
0f3a0dfa52
_SERVER also should not be quoted by magic_quotes_GPC
...
also remove an empty if statement
2003-03-30 01:06:54 +00:00
Marcus Boerger
b5c97d8dab
fix phpinfo() & php -i
2003-03-29 21:25:03 +00:00
Moriyoshi Koizumi
e1eb238cf2
On 64bit platforms, pointers are 64bit long..
2003-03-28 17:09:04 +00:00
Moriyoshi Koizumi
961ad8e24a
Improved php_import_environment_variables: avoid emalloc()ing in most cases
2003-03-27 21:13:47 +00:00
Sterling Hughes
84f0dd0e44
really fix
2003-03-26 23:03:48 +00:00
Sterling Hughes
c0f04cc087
fix segfault
2003-03-26 23:01:39 +00:00
Sebastian Bergmann
3fc852824f
Eliminate TSRMLS_FETCH() calls in destroy_op_array() and zend_get_class_entry().
2003-03-26 07:44:11 +00:00
Sebastian Bergmann
5ca078779a
Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI/CLI on Win32.
2003-03-25 08:07:13 +00:00
Shane Caraveo
456b6cbeab
The environment should *never* be magic quoted.
2003-03-23 19:30:31 +00:00
Shane Caraveo
26296130ad
Fix PHPRC overriding other ini files. This is how PHPRC worked prior to
...
4.3.x, and is usefull for applications that execute PHP and want to
emulate CGI and define alternate INI files (ie. cannot use -c).
2003-03-22 18:54:35 +00:00
Wez Furlong
e451d88399
Fix for persistent stream shutdown under debug builds
2003-03-20 01:23:04 +00:00
foobar
88fe9c2d3c
Fixed bug #22775 (Fatal errors exit with status 0 with CGI/CLI)
2003-03-19 08:22:12 +00:00
Wez Furlong
7379f47518
Sanity check for when a stream is requested to be persistent but the wrapper
...
does not respect the flag.
2003-03-19 00:17:15 +00:00
Wez Furlong
86fb577d59
Implement persistent plain file streams.
...
Usage:
php_stream *stream = php_stream_fopen("/path/to/file", "r+b", NULL,
STREAM_OPEN_PERSISTENT | ENFORCE_SAFE_MODE | REPORT_ERRORS);
the filename and mode are combined to form the hash key for the persistent
list; they must be identical for this same stream to be returned again in the
next request.
Calling php_stream_close() on a persistent stream *will* close it, as is
usual with all persistent resources in PHP/ZE.
This is deliberately *not* exposed to user-space PHP at this time.
2003-03-18 23:37:54 +00:00
Wez Furlong
6a87651006
Q}
2003-03-18 22:26:02 +00:00
Marcus Boerger
4529fb344c
-turn html_errors on by default again
...
-disbale clickable error messages by docref_root default to ''
2003-03-18 22:21:54 +00:00
Marcus Boerger
3e621fac94
make phpinfo() depend on executed sapi
2003-03-18 20:52:52 +00:00
Wez Furlong
ce01fd9526
Avoid using FILE* where possible.
...
Tidy up handling of potential error situations for the php:// wrapper.
2003-03-18 16:40:29 +00:00
Marcus Boerger
63739c7db8
give sapi modules the possibility to overwrite default ini settings
2003-03-18 15:53:33 +00:00
Wez Furlong
267db80b21
avoid unsigned issues.
2003-03-18 15:15:10 +00:00
Wez Furlong
7c2ccb5f65
Fix for #22721 (poor file() performance on systems without mmap)
2003-03-18 14:35:01 +00:00
Stig Bakken
0e6fca4f22
* email address change
2003-03-18 12:06:09 +00:00
Ilia Alshanetsky
e15cc99415
Win32 build fix.
2003-03-17 22:25:55 +00:00
Ilia Alshanetsky
27a7eaf4e7
Fixed bug #22538 (failed stat on stdio/stdin/stderr streams).
2003-03-17 18:32:15 +00:00
Wez Furlong
cfd0466389
Fix for Bug #21310 , based on a patch by jflemer@php.net.
2003-03-17 13:40:45 +00:00
Marcus Boerger
aba27fc6ca
- disable html_errors per default as suggested by php.ini-<xxx>
...
- new error format that does not point to any documentation (if either
not html_errors or no docref_root given e.g.: production boxes and default)
- documentation update in php.ini-<xxx>
# hope everyone is happy now
# and why on earth was enabling html_errors default?
2003-03-16 20:47:56 +00:00
Marcus Boerger
f60e8941e7
fix Bug #21751 - the parameter was wrong when this code was introduced
2003-03-15 16:39:35 +00:00