foobar
4e3b8c61dd
Fix path
2005-03-26 01:29:43 +00:00
Andi Gutmans
b6554f5ad7
- Fix typos
2005-03-24 01:11:11 +00:00
Marcus Boerger
15ed825d6e
- Notices shouldn't be treatedas errors and thus not being conidered to be
...
converted to exceptions.
2005-03-23 07:54:22 +00:00
Andrei Zmievski
1a3677ea27
Define PHP_ABSTRACT_ME
2005-03-21 06:43:28 +00:00
Marcus Boerger
7b3813ea11
- We don't need to block those here (works as it works with normal error
...
overloading)
2005-03-19 14:27:17 +00:00
Rasmus Lerdorf
00832b763f
Silence a warning here on systems where off_t is a long long.
2005-03-17 16:26:24 +00:00
Rasmus Lerdorf
effa111c5e
Fix Jani breakage
2005-03-16 22:00:07 +00:00
Rasmus Lerdorf
3c0411c496
Fix for bug #32263
...
This adds proto_num to request_info. It is defaulted to HTTP 1.0 (1000)
such that it has a valid value even if the underlying sapi doesn't set it
correctly. It is then used to determine if a 302 or a 303 should be sent
on a Location redirect. Any non GET/HEAD HTTP 1.1 redirect will get a 303
instead of a 302 to be compatible with the HTTP spec.
2005-03-14 19:25:39 +00:00
Andrey Hristov
9e939133d2
FR 32275 - fifth parameter to preg_replace() to count number of replaces
...
made.
#it would be nice if someone of the doc team documents it. thanks!
2005-03-12 12:03:50 +00:00
foobar
d0bb8f5f12
This makes more sense. (Someone might actually use php_error_docref0() :)
2005-03-08 21:42:10 +00:00
foobar
e17ad42e38
- This was not needed (said Marcus)
2005-03-08 21:22:03 +00:00
Moriyoshi Koizumi
5e33c04e95
- Fixed bug #32109 ($_POST is not populated in multithreaded environment).
2005-03-05 16:41:13 +00:00
Zeev Suraski
baf717472e
New egg
2005-03-03 09:55:10 +00:00
foobar
3f57b46f67
cs fix (really annoying :)
2005-02-27 12:50:22 +00:00
Andi Gutmans
f4cdd366e1
- Fix comment
2005-02-24 03:04:57 +00:00
Ilia Alshanetsky
8aaafb1ae9
Increase maximum mmapable file size to 2mb from 1mb.
2005-02-23 22:41:05 +00:00
Anantha Kesari H Y
73ef0fd315
NetWare can make use of Autoconf generated header file
2005-02-23 11:02:12 +00:00
Anantha Kesari H Y
d25d507bec
NetWare LibC has mkstemp implementation
2005-02-23 10:54:06 +00:00
Anantha Kesari H Y
fc7bbdddbd
NetWare can make use autoconf generated header file
2005-02-23 10:31:44 +00:00
Anantha Kesari H Y
f04b1e97bb
NetWare LibC has pwd.h
2005-02-23 08:56:47 +00:00
Moriyoshi Koizumi
b19d28907e
- Silly typo.
2005-02-22 05:07:37 +00:00
Ilia Alshanetsky
c7b931d80d
Fixed bug #31515 (Improve performance of scandir() by factor of 10 or so).
2005-02-22 00:24:13 +00:00
foobar
498cce1f80
Nuke unused variables when PCRE is not compiled in
2005-02-21 21:00:04 +00:00
foobar
42599f8191
Remove the useless TSRM_FETCH calls
2005-02-21 20:57:18 +00:00
Moriyoshi Koizumi
0d7845384f
- Fix bug #28568 (known_post_content_types is not thread safe).
...
# What is eventually necessiated is entire SAPI redesign, I think.
2005-02-21 15:14:02 +00:00
Ilia Alshanetsky
ed9e8c7c81
Fixed bug #31440 ($GLOBALS can be overwritten via GPC when register_globals
...
is enabled).
2005-02-17 04:44:11 +00:00
Ilia Alshanetsky
7ee1fdb657
Prune uploaded file names to \ on all OSes, read comments for explanation.
2005-02-15 00:25:38 +00:00
Anantha Kesari H Y
3c1e2e15b8
NetWare Libc has php.h so no need of having netware specific block here
2005-02-14 11:10:07 +00:00
Wez Furlong
0569078901
Avoid bug where stream_copy_to_stream() call for precisely 2000000 bytes would
...
result in entire resource being copied.
The mmap brake is already present inside mmap_range() and is set to 1MB.
2005-02-06 23:17:09 +00:00
Wez Furlong
f400f0e665
add an open mode for the memory streams that allows the stream to take
...
ownership of the passed-in buffer
2005-02-06 21:41:36 +00:00
Ilia Alshanetsky
e55938b6a8
Fixed bug #31514 (open_basedir uses path_translated rather then cwd for .
...
translation).
2005-02-02 23:43:17 +00:00
Ilia Alshanetsky
d179e6aa40
Final version of filename upload handling.
2005-02-01 02:33:07 +00:00
Ilia Alshanetsky
71695f8159
Use multibyte specific code for handling files and generic basename based
...
code in all other instances.
2005-01-24 22:35:23 +00:00
Moriyoshi Koizumi
76d91f2a3d
- Revert irrelevant part.
2005-01-24 16:47:18 +00:00
Ilia Alshanetsky
844cc09cd1
Fixed bug #31398 (When magic_guotes_gpc are enabled filenames with '
...
get cutoff).
2005-01-20 17:44:58 +00:00
foobar
14058c83e6
- Fix another generated header include
2005-01-14 20:44:28 +00:00
foobar
a139dbf9cc
- Fix outside-source-tree builds. Always include generated header files
...
with #include <some_header.h> to make sure the correct file is used.
2005-01-09 21:05:06 +00:00
foobar
6ffb0dcaf2
- Fix leaks with registered shutdown functions.
2005-01-09 16:30:09 +00:00
Wez Furlong
63ee853b74
bump PHP API number.
...
This is so that we can work around the signature change in the get_method
overloaded object handler in our portable extensions.
Yes, you could argue that the zend api number needs bumping, but then you could
argue which one to bump, as neither of them is specific or generic enough.
Besides all that, the PHP API number really needs a good old bump anyway.
2004-12-26 04:46:09 +00:00
Derick Rethans
6386777fe3
- MF43: Fixed weird types, this also makes it compile on IRIX again.
2004-12-17 13:08:44 +00:00
Andi Gutmans
4e942cb07f
- Fix bug #27728 (Can't return within a zend_try{} or the previous
...
state isn't restored.
2004-12-10 22:59:25 +00:00
Stefan Esser
b1bb6f1735
Do not silently truncate
2004-12-01 22:37:33 +00:00
Stefan Esser
c02b2d2d45
Fixed: Correctly Initialize fields
2004-11-28 13:32:29 +00:00
Stefan Esser
6d98fc38b5
Fixed: removed possible integer over-/underflows
2004-11-28 12:44:28 +00:00
Stefan Esser
224201e635
Fixed: strip quotes from filename
2004-11-20 18:49:36 +00:00
Ilia Alshanetsky
d98a44d483
Fixed bug #29801 (Set limit on the size of mmapable data).
2004-11-15 23:43:12 +00:00
Frank M. Kromann
816bcd3aff
Fix win32 build.
2004-11-15 21:04:09 +00:00
Derick Rethans
61364b5bb1
- MFH4.3: Cleaned up some of the locale mess:
...
* all internal use of sprintf, snprintf and the like will always
use the . as thousands seperator (if php.h is included only!).
* echo, printf() and sprintf() always render locale-aware
* added the %F modifier for non-locale aware rendering for floats
2004-11-15 13:42:22 +00:00
Rob Richards
d563495a24
add support for file://localhost/
...
support file:/// under windows again
2004-11-11 13:08:32 +00:00
Ilia Alshanetsky
f41c40f63e
Fixed bug #30750 (Meaningful error message when upload directory is not
...
accessible).
2004-11-11 00:38:04 +00:00
Andrey Hristov
494d665955
make sleep() return it's return value when possible
...
#on some *nix systems sleep() is implemented with SIGALRM. When SIGALRM
#interrupts sleep() it returns the number of seconds that has to be slept
#till the number of seconds wanted by the script. Sleep() on Windows is
# void.
2004-11-02 17:03:20 +00:00
Antony Dovgal
aa35b11afe
fix Win32 & Netware build
2004-10-28 05:05:20 +00:00
Antony Dovgal
ceacc834fb
fix bug #30388 (rename across filesystems loses ownership and permission info)
2004-10-27 11:58:49 +00:00
Ilia Alshanetsky
0802b1286d
Make request start time be available via $_SERVER['REQUEST_TIME'].
...
# As discussed on internals.
2004-10-24 17:41:13 +00:00
Stanislav Malyshev
f799da0a21
MF4: fix double bailout in HEAD when output is attempted from shutdown
2004-10-20 15:31:06 +00:00
Antony Dovgal
e865bc2bc5
fix bug #30442 ( segmentation fault when parsing ?getvariable[][ )
2004-10-18 15:05:06 +00:00
Anantha Kesari H Y
5bf2be3461
removing inclusion of platform specific config files as they are already included from php_scandir.h
2004-10-18 10:42:16 +00:00
Anantha Kesari H Y
6021286c5d
removing php_output_activate Fix for bug#30397
2004-10-18 10:26:45 +00:00
Derick Rethans
3b2879b3c1
- Revert patch until it is discussed
2004-10-18 06:04:02 +00:00
Anantha Kesari H Y
d5eb399b5e
Fix for Bug #30397
2004-10-16 10:32:42 +00:00
Ilia Alshanetsky
5c04e39383
Fixed bug #30362 (stream_get_line() not handling end string correctly).
2004-10-11 18:31:49 +00:00
Wez Furlong
b7182e85c7
Fix the return value check too
2004-10-11 01:40:41 +00:00
Wez Furlong
7cb4e769ff
check the correct flag for async connect
2004-10-11 01:30:19 +00:00
Christian Stocker
bd99d77bf6
- Fixed bug #27183 (Userland stream wrapper segfaults on stream_write)
...
Was applied to PHP 4 ages ago, but not to PHP 5 branch
2004-10-08 14:40:11 +00:00
Anantha Kesari H Y
940c5b393d
removed unwanted NEW_LIBC checks for NETWARE and removing custom mktemp.h as LibC itself supports mkstemp functionality
2004-10-07 12:22:16 +00:00
Anantha Kesari H Y
1d7a8a9e69
removed unwanted NEW_LIBC checks
2004-10-06 13:22:21 +00:00
Andi Gutmans
216853c0db
- Apply realpath() cache patch. We don't use it if we're in safe_mode and
...
- friends (which are quite slow anyway).
- If it proves to be stable I'll remove the #ifdef's in a few weeks.
2004-10-05 00:42:25 +00:00
Anantha Kesari H Y
ee43ab18b0
enabling few functionalities as the LibC starts supporting them
2004-09-30 15:55:18 +00:00
Anantha Kesari H Y
93be400da9
Including config.nw.h file for NetWare
2004-09-30 14:46:03 +00:00
Marcus Boerger
854b3ebdc3
- Add missing macro
2004-09-30 08:03:38 +00:00
Anantha Kesari H Y
379bb867cb
NetWare LibC don't have search.h
2004-09-29 16:11:47 +00:00
Anantha Kesari H Y
5dbf49e314
removed unwanted NEW_LIBC checks
2004-09-29 14:42:16 +00:00
Anantha Kesari H Y
06a4be43a3
NetWare don't have uid for a file so modified the php_checkuid to return 1 for NetWAre
2004-09-29 12:35:13 +00:00
Anantha Kesari H Y
b38de145ac
removed unneccessary inclusion of headers for NetWare
2004-09-29 12:25:56 +00:00
Anantha Kesari H Y
a93f75ce6b
NETWARE has a proper stat structure Now no need of CLIB_STAT_PATCH checks
2004-09-29 10:54:56 +00:00
Anantha Kesari H Y
0903dcdcf7
removed redundant NEW_LIBC checks for NETWARE
2004-09-29 10:36:24 +00:00
Anantha Kesari H Y
c914bff745
removed unwanted NetWare specific changes
2004-09-23 15:57:30 +00:00
Anantha Kesari H Y
9b0489ac47
removed redundant checks for NETWARE
2004-09-23 15:43:54 +00:00
Anantha Kesari H Y
b855337d39
CLIB_STAT_PATCH check is redundant. So removing it
2004-09-23 13:07:43 +00:00
Wez Furlong
ff4e970fb1
Make new poll stuff work on win32 (and still be safe on unix)
2004-09-17 14:36:55 +00:00
Wez Furlong
99e290f882
Fix for Bug #24189 : possibly unsafe select(2) usage.
...
We avoid the problem by using poll(2).
On systems without poll(2) (older bsd-ish systems, and win32), we emulate
poll(2) using select(2) and check for valid descriptors before attempting
to access them via the descriptor sets.
If an out-of-range descriptor is detected, an E_WARNING is raised suggesting
that PHP should be recompiled with a larger FD_SETSIZE (and also with a
suggested value).
Most uses of select(2) in the source are to poll a single descriptor, so
a couple of handy wrapper functions have been added to make this easier.
A configure option --enable-fd-setsize has been added to both the unix and
win32 builds; on unix we default to 16384 and on windows we default to 256.
Windows FD_SETSIZE imposes a limit on the maximum number of descriptors that
can be select()ed at once, whereas the unix FD_SETSIZE limit is based on the
highest numbered descriptor; 256 should be plenty for PHP scripts under windows
(the default OS setting is 64).
The win32 specific parts are untested; will do that now.
2004-09-17 12:44:56 +00:00
Ilia Alshanetsky
2a2d49b947
Fixed bug #30050 (Possible crash inside php_shutdown_config()).
...
# Patch suggestion by nw at softwarekombinat dot de
2004-09-17 02:48:41 +00:00
Sara Golemon
34550382d8
Added stream_filter_remove() to cancel a stream filter.
...
Register filters as resources when
instantiated by stream_filter_(ap|pre)pend().
Export php_stream_filter_flush() internal function to wind buffered data
out of a particular filter until consumed by a later filter or sent to
stream->readbuffer or stream->ops->write()
2004-09-14 03:48:17 +00:00
Sara Golemon
9cd4320b65
Allocating hash tables should be done via macro, not directly
2004-09-13 21:07:22 +00:00
Stefan Esser
0f860d8f34
only allow valid arrays at this point
2004-09-13 16:00:23 +00:00
Stefan Esser
e7d698c7d8
New Rule: Never try to repair potential malicious user input
2004-09-12 10:45:14 +00:00
Sara Golemon
ed5dcbff9b
A little extra code to allow overriding plainfiles wrapper as well
2004-09-10 21:50:29 +00:00
Sara Golemon
955b43ba12
Add stream_wrapper_unregister()
...
Disables a wrapper (user-defined or built-in) for the life of the request.
Add stream_wrapper_restore()
Restores the wrapper originally defined at the time the request started
to the protocol name mentioned.
2004-09-10 20:45:35 +00:00
Rasmus Lerdorf
bb8167cda3
Stop at the index on an unmatched [
2004-09-09 16:10:24 +00:00
Sara Golemon
d179ac771c
Handle maxlen when stream can't be mmaped
2004-09-08 18:42:15 +00:00
Zeev Suraski
85a36e2bc3
Fix reverse dependency
2004-09-05 22:40:35 +00:00
Joe Orton
0d3884fed1
Move global symbols defined by bundled copy of libgd into private
...
php_gd_* namespace, to avoid symbol conflicts with, for instance,
another Apache module which loads a different copy of libgd.
2004-08-31 16:41:29 +00:00
Antony Dovgal
fd6d9cbeac
fix bug #29723 (file_get_contents() fails with the file:// wrapper under Win32)
2004-08-31 11:37:02 +00:00
Ilia Alshanetsky
c84bd49fb5
Using int when long should be used.
2004-08-22 18:05:24 +00:00
Frank M. Kromann
e398e6b7d6
Fix win32 compilation. Missing uid_t and gid_t definitions.
2004-08-21 03:09:45 +00:00
Brian France
2f97097e0f
If you send a post with a content-type header and then the next post without the content-type header, raw_post_data will not be set. This is because SG(request_info).post_entry is set to the first requests function pointer which makes it follow the wrong code path.
2004-08-19 20:26:39 +00:00
Zeev Suraski
b9310261d7
Fix an oldie fd leak
2004-08-16 12:24:52 +00:00
Derick Rethans
566230a01b
- Added the PHP_EOL constant (Patch by Paul Hudson)
2004-08-13 07:02:50 +00:00
Rasmus Lerdorf
3166314d89
Reset global request_time in sapi_activate. Reset it in sapi_deactivate
...
too, although I can't see why that would be necessary, but most of the
other sapi globals are reset there as well.
2004-08-11 06:18:25 +00:00
Sara Golemon
883e096ce6
Minor format specifier fixes
2004-08-11 04:27:01 +00:00
Rasmus Lerdorf
cad60c3760
Add SAPI hook to get the request time if provided by the web server,
...
otherwise call time(0) on the first call and store it so subsequent
calls will get the same time. Hook support for Apache1/2 included.
2004-08-10 17:40:00 +00:00
Wez Furlong
b21a7357fc
Fix for #29256 from Dmitry, very slightly modified
2004-08-10 13:44:43 +00:00
Wez Furlong
d0be029908
zts fix...
2004-07-31 16:34:44 +00:00
Wez Furlong
ae7285d658
Misc sendto/recvfrom tweaks that have been pending here for a while...
2004-07-31 10:56:55 +00:00
Wez Furlong
05a3fabacb
Make sure this is initialized...
2004-07-31 10:49:09 +00:00
Wez Furlong
71078de71a
Implement an fstat cache for plain files.
2004-07-31 10:09:25 +00:00
Wez Furlong
f1072c2ae9
Ensure that port numbers get set in the peer/socket name functions.
...
(duh!)
2004-07-28 23:30:23 +00:00
Wez Furlong
637c424d64
Fix #29431 : crash when parsing an invalid network address
2004-07-28 23:15:25 +00:00
Ilia Alshanetsky
86efab2cc4
Fixed bug #29369 (Uploaded files with ' or " in their names get their names
...
truncated at those characters).
2004-07-25 19:19:26 +00:00
Marcus Boerger
0cd2da0309
- Execute destructors earlier (Florian Schaper, fschaper at intux org)
2004-07-25 07:14:49 +00:00
Edin Kadribasic
4162f81c88
HEAD is 5.1.0-dev now
2004-07-21 23:02:28 +00:00
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
...
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Marcus Boerger
7722837517
- Use ErrorException instead of Exception
2004-07-15 22:22:06 +00:00
Andi Gutmans
c18badbfbf
- 5.0.1-dev
2004-07-13 19:56:49 +00:00
Andi Gutmans
399e2ca69f
- Roll PHP 5.0.0
2004-07-13 19:05:31 +00:00
Wez Furlong
971fcd4254
Looks like Sara forgot to change this too.
2004-07-13 16:34:56 +00:00
Wez Furlong
ae40d0ef2a
Fix file_get_contents() bug...
2004-07-12 20:59:24 +00:00
Stefan Esser
0e8de752fd
Ooups...
2004-07-11 21:14:50 +00:00
Stefan Esser
8c075de7c7
Fixed: PARSE_TYPE parameter to input_filter
...
Fixed: input_filter should also be able to filter empty variables by name
2004-07-11 20:13:39 +00:00
Wez Furlong
cd732f1a3f
RIP: greedy ready problems
...
This allows people to use fread($fp, filesize($filename)) for regular files,
but packet-based non-greedy reads for everything else.
2004-07-10 10:54:09 +00:00
Andi Gutmans
e5cfb1d05c
- Better stability during premature shutdown of request startup
2004-07-10 07:46:17 +00:00
Wez Furlong
8f435013ff
Fix for Bug #28964 fread "greedy" behaviour
2004-06-29 21:51:53 +00:00
Stefan Esser
59d55efb17
As long we pass values by reference this is needed. Ugly!
2004-06-26 08:09:28 +00:00
Sara Golemon
a2c24ae90e
BugFix#28868 (Part Two): This fixes thread unsafety in the userspace
...
filters which relates to the fix just applied for userspace wrappers.
2004-06-21 21:08:05 +00:00
Sara Golemon
7fcfa8865e
BugFix#28868: Wrapper hash not thread-safe.
...
Userdefined wrappers were being registered into a global wrapper hash
which can cross threads. Termination of once instance then has the
potential to leave an active stream in another instance with no wrapper
leading to segfault.
2004-06-21 18:58:55 +00:00
Ilia Alshanetsky
b8c9e83664
Fixed bug #28692 (\0 in Authenticate header passed via safe_mode).
2004-06-08 13:23:38 +00:00
Andi Gutmans
0bdbbd379e
- Go back to -dev (Shouldn't need another RC)
2004-06-07 18:57:34 +00:00
Andi Gutmans
6f47156228
- Roll RC3
2004-06-07 14:23:45 +00:00
Ilia Alshanetsky
ff5b2d27ae
Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode
...
adds extra spaces).
2004-06-07 13:51:50 +00:00
Andi Gutmans
02032ccf9f
- Prepare for RC3RC2
2004-06-03 08:17:15 +00:00
Ilia Alshanetsky
e389e255e6
The engine will take care out-of-memory situation for us.
2004-05-28 14:14:26 +00:00
Andi Gutmans
e51105c6a6
- Back to RC3-dev until we roll final
2004-05-27 15:03:46 +00:00
Wez Furlong
b369925372
Fix #25939 for good this time.
...
# How could I miss this??
2004-05-27 13:04:14 +00:00
Andi Gutmans
5a9d648f1f
- RC3RC1
2004-05-27 11:39:35 +00:00
Wez Furlong
dd9ac710f1
Fix silly mistake.
...
Thanks Antony :)
2004-05-26 21:19:21 +00:00
Stefan Esser
7dc95709c8
break is better
2004-05-25 22:12:40 +00:00
Wez Furlong
6873d6839d
*sigh*, obviously, we need this to be able to use sapi_module.name
2004-05-25 13:23:20 +00:00
Wez Furlong
ff0ee48537
DEBUG -> PHP_DEBUG
2004-05-25 13:17:01 +00:00
Wez Furlong
146255f35c
check if it matches... not if it doesn't...
2004-05-25 13:00:25 +00:00
Wez Furlong
c6dff79138
In debug mode, under CLI don't close stderr.
...
This is so that we can see any error reports.
# for extra paranoia, could limit this check to happen only after the script is
# finished running.
2004-05-25 12:59:15 +00:00
Andi Gutmans
e410a0f5b1
- Fixed bug #27640 memory leak of registered_zend_ini_directives (Dmitry)
2004-05-23 16:02:36 +00:00
Stefan Esser
bed3f4ce0b
This is more correct.
2004-05-23 10:00:59 +00:00
Derick Rethans
cb1e4ab6c8
- Fixed TSRM problem in latest commit.
2004-05-21 08:16:13 +00:00
Derick Rethans
bc7ad69fbc
- Fixed bug #28456 (Problem with enclosed / in uploaded file names)
2004-05-21 08:11:43 +00:00
Derick Rethans
dcb0ee6ec4
- Allow extra parameters to mail to be forced also from virtual host settings.
2004-05-20 10:24:39 +00:00
Derick Rethans
500f634db9
- Fixed defines
2004-05-11 15:30:54 +00:00
Sara Golemon
0dae58bb2a
Bugfix #28300 Userspace stream/filter names don't need to be lowercased.
2004-05-06 14:29:33 +00:00
Sara Golemon
0180c36951
BugFix#28287 stream_*_register() not calling __autoload().
2004-05-05 18:18:57 +00:00
Andi Gutmans
87a9f7bdbb
- RC3-dev
2004-04-25 10:13:08 +00:00
Andi Gutmans
94c44ea9eb
- RC2
2004-04-25 08:32:50 +00:00
Wez Furlong
0fb4bf9771
Fixed bug #19749 (shouldn't mmap() files larger than memory_limit)
2004-04-21 12:02:47 +00:00
Andi Gutmans
206f0da25a
- RC2-dev
2004-04-21 10:34:27 +00:00
Andi Gutmans
40c20d3d72
- Prepare for RC2RC2 (if everything is OK especially Zeev's interface
...
- patch I'll roll RC2 tomorrow).
2004-04-21 09:59:52 +00:00
Marcus Boerger
43e44e4e9f
Bugfix #28012 , now for snprintf
2004-04-15 23:08:22 +00:00
Marcus Boerger
c007130382
Bugfix #28012 spprintf() output inconsistent for %p
2004-04-15 23:04:49 +00:00
Andi Gutmans
245dd7367d
- RC2-dev
2004-04-14 11:24:17 +00:00
Andi Gutmans
acc4cd17ce
- RC2RC1
2004-04-14 11:03:47 +00:00
Sara Golemon
3feae65f70
BugFix: Copy/Paste mistake referenced undefined variable on platforms without gettimeofday()
2004-04-09 19:18:59 +00:00
Sara Golemon
fac9416797
Only wind filters when appending to the read chain.
2004-04-01 03:52:34 +00:00
Sara Golemon
002f7ef393
This leaks when a stream opener proxy opens another stream.
2004-04-01 01:07:54 +00:00
Sara Golemon
72616e6eae
BugFix#27619
...
Filters not applied to pre-buffered stream data.
(esp. http:// streams)
2004-03-31 23:48:59 +00:00
Wez Furlong
32be6f268b
Fix for Bug #26757 : session.save_path defaults to bogus value on win32
...
Merge from branch with one main difference: the default save_path is
set to the empty string on all platforms, whereas the code in the
branch only does so for win32.
2004-03-29 21:44:07 +00:00
Derick Rethans
fe576c7acb
- Stopped file uploads from throwing E_WARNINGs and E_NOTICEs which can not be
...
hidden from within scripts (and a result value in the $_FILES global can be
used to see the real failure anyway).
2004-03-25 21:27:23 +00:00
Marcus Boerger
bca4347064
Fixed bug #27687 (Bug Adding Default Charset to 'text/*' Content-Type Header
2004-03-25 08:42:00 +00:00
Derick Rethans
9ff10d086a
- Revert bogus commit
2004-03-24 14:28:41 +00:00
Stanislav Malyshev
550da4ae7c
and set module startup flag on startup
2004-03-24 13:33:26 +00:00
Stanislav Malyshev
b514ab2ee9
reset module shutdown flag on startup
2004-03-24 13:31:34 +00:00
Derick Rethans
2face60bef
- Fixed NEWS
...
#- Can we *please* keep this in order?
2004-03-24 13:31:20 +00:00
Andi Gutmans
814000305a
- Back to RC2-dev
2004-03-18 15:27:28 +00:00
Zeev Suraski
aac5c1f6c5
Prepare to roll RC1
2004-03-18 14:12:27 +00:00
Sara Golemon
581948ab00
Provide a meaningful error message when registration fails
2004-03-17 00:08:22 +00:00
Ilia Alshanetsky
88058e5715
Fixed bug #27498 (bogus safe_mode error on nonexistent directories for
...
chdir() and opendir() functions).
2004-03-16 23:23:17 +00:00
Derick Rethans
1ef3c8c74a
- Replaced the exec_finished hook by the zend_post_deactive hook for
...
extensions. The new hook will be run after the symbol table and destructors
are run. (PHP part)
2004-03-16 22:27:57 +00:00
Zeev Suraski
02344b1dae
Improve the way auto-globals JIT works, and add the ability to turn it off
2004-03-16 19:49:19 +00:00
Marcus Boerger
09e76476ef
Improve error message
2004-03-16 10:14:57 +00:00
Ilia Alshanetsky
542b034efa
Fixed bug #27559 (Corrected open_basedir resolving logic).
2004-03-16 00:31:22 +00:00
Marcus Boerger
97b5bb474e
Guard display_startup_errors with checking for default (working) output
...
functions.
2004-03-14 23:56:07 +00:00
Ilia Alshanetsky
09517318b1
Fixed bug #27530 (broken http auth when safe_mode is on and PCRE is
...
disabled).
2004-03-09 02:24:02 +00:00
Ard Biesheuvel
b303ba089c
More wordsize fixes
2004-03-08 23:11:45 +00:00
Wez Furlong
70757063a7
add cast for qsort compare function.
...
Kinda ugly, but helps assert that we are doing the right thing as well as
kill the warning there.
2004-03-07 22:06:36 +00:00
Wez Furlong
1e35cf4f32
Connect feof() call to user-space stream feof() method.
...
Fixes Bug #27417 and #27508
2004-03-07 22:05:21 +00:00
Wez Furlong
0dd2280102
Less magic please
2004-03-07 21:36:55 +00:00
Jon Parise
4db900732d
Cast the php_stream_dirent to a 'const char *' for estrndup() to avoid a
...
compiler warning.
2004-03-01 07:02:23 +00:00
Sara Golemon
860daac5d8
Must addref the resource when we make a new zval reference to it that will be exported to userspace.
2004-03-01 05:33:19 +00:00
Zeev Suraski
3f514ccb79
- Rename compatiblity mode to zend.ze2_compatibility_mode (it doesn't only affect auto-clone).
...
- Perform implementation checks even with simple inheritance (off when
compatibility mode is enabled).
- Restore default arguments in interfaces and handle it correctly.
- Move registration of internal classes later in the startup sequence
in order to have INI options available.
2004-02-25 10:58:06 +00:00
Zeev Suraski
e5e120460a
Remove empty comment
2004-02-24 15:13:13 +00:00
Hartmut Holzgraefe
8c32fa79d7
EXTERN_C wrapping for PHPAPI prototypes
...
(Zend and main should now be ok)
2004-02-20 08:22:12 +00:00
Hartmut Holzgraefe
b8f7d9f9f5
wrap all PHPAPI prototypes into BEGIN_EXTERN_C/END_EXTERN_C blocks
...
(else they won't be usable from C++ extensions)
2004-02-20 08:04:30 +00:00
Hartmut Holzgraefe
d303509e05
be nice to C++ extensions
2004-02-18 21:34:15 +00:00
Marcus Boerger
b59989e716
Fix startup errors
2004-02-15 17:00:42 +00:00
Derick Rethans
ac9f4cc2af
- We always need to destroy the llist though.
2004-02-14 12:35:59 +00:00
Derick Rethans
3781af53cd
- Fixed zero bytes memory allocation when no extra ini files are found in the
...
--with-config-file-scan-dir specified directory. (patch by Eric Colinet
<e.colinet@laposte.net>)
2004-02-14 12:29:04 +00:00
Stefan Esser
debf069a58
better write into the correct buffer
2004-02-12 18:27:33 +00:00
Andi Gutmans
efe864dc34
- We are RC1-dev now
2004-02-12 16:26:59 +00:00
Andi Gutmans
82ad916386
- Roll Beta 4
2004-02-12 15:59:18 +00:00
Zeev Suraski
30171a7590
zend_default_classes.h -> zend_exceptions.h
2004-02-12 10:43:27 +00:00
Andi Gutmans
eca1fdc821
- Go with b4 RC 1 (Sanity package)
2004-02-12 08:46:02 +00:00
Andi Gutmans
d93f899271
- Change to b4
2004-02-11 11:53:45 +00:00
Zeev Suraski
ed113a65b0
Clear that up
2004-02-10 18:50:10 +00:00
Zeev Suraski
acb1f365d2
Cleanup
2004-02-10 18:46:53 +00:00
Zeev Suraski
b8a990ace7
Fix report_memleaks
2004-02-10 17:55:32 +00:00
Zeev Suraski
f069be85bf
Whitespace
2004-02-10 17:44:18 +00:00
Ilia Alshanetsky
e8beeecf3e
Fixed bug #26653 (open_basedir incorrectly resolved on win32).
2004-02-10 16:08:54 +00:00
Ilia Alshanetsky
ec09b090f9
Fixed bug #27175 (tzset() is not being called by PHP on startup).
2004-02-09 04:04:24 +00:00
Wez Furlong
a44838e8a3
Fix a bug in the persistent socket liveness checks and feof(); they were
...
using the default socket timeout of 60 seconds before returning the socket
to the calling script. The reason they were using that value is that the
same code is used for feof(), so the fix is allowing the caller to
indicate the timeout value for liveness checks.
A possible remaining issue now is that 0 second timeout[1] for pfsockopen
is possibly too short; it's impossible to specify a sane value for all
possible uses, so maybe we need a stream context or an .ini option to
control this, or maybe use the timeout value that was passed to
pfsockopen().
# [1] by timeout, I mean the time that PHP will wait for data on a
# persistent socket before deciding if a new connection should be made;
# NOT the timeout while waiting for a new connection to be established.
2004-02-04 22:46:44 +00:00
Sara Golemon
a172481869
This should not have been an INI_ALL directive.
2004-01-29 00:08:21 +00:00
Sara Golemon
6d10371ec6
'Bug Fix': scandir, being a new function in PHP5 should have always been wrapper aware.
2004-01-28 22:21:54 +00:00
Wez Furlong
e1ae61802b
Fix segfault for scripts like this:
...
<?php
pfsockopen("foo");
pfsockopen("foo");
?>
Where the transport fails to connect (since args are bogus);
the problem was that the persistent stream entry was not
correctly freed.
2004-01-27 22:40:44 +00:00
Ilia Alshanetsky
4cc62a06f6
Removed unused variable.
2004-01-27 03:20:35 +00:00
foobar
e3c80d52da
- Remove gpc_order since it doesn't serve any purpose.
2004-01-26 04:15:08 +00:00
Hartmut Holzgraefe
234e8a76c4
stream_lock() method added to userspace streams wrapper
2004-01-21 10:17:12 +00:00
Ilia Alshanetsky
eb3ff409b0
Fixed bug #26974 (rename() doesn't check the destination file
...
against safe_mode/open_basedir).
2004-01-21 02:28:50 +00:00
Marcus Boerger
61fc2a9209
Add missing macro
...
# by popular demand, more and more exts need this
2004-01-12 00:19:40 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Ilia Alshanetsky
be5670af2b
Fixed bug #26707 (Incorrect error for disabled functions/classes).
2003-12-24 16:38:22 +00:00
Derick Rethans
0041a5798b
- Fix version number so that people are not mistaking our development
...
version for RC1.
2003-12-21 18:57:59 +00:00
Zeev Suraski
6ac233f975
B3 here we go (away)
2003-12-21 18:30:57 +00:00
Zeev Suraski
bb531436c8
B3 here we come
2003-12-21 18:26:29 +00:00
Andi Gutmans
d53caa9618
- Make the world a better place.
...
- Will roll b3 tomorrow.
2003-12-20 21:27:49 +00:00
Wez Furlong
ab11c8c5ba
MFB fix for #25597
2003-12-20 20:25:55 +00:00
Andi Gutmans
e7bdc15148
- Prepare for RC2
2003-12-19 13:36:38 +00:00
Wez Furlong
12b0501f55
Counteract brain-death in Apache headers
...
(they #define strtoul to something that will break compilation,
and it successfully breaks the win32 IPv6 headers)
2003-12-18 11:26:00 +00:00
Andi Gutmans
3573c13552
Roll RC1 of B3
2003-12-17 20:20:34 +00:00
Ilia Alshanetsky
1128955aa4
Fixed compiler warnings.
2003-12-14 18:23:15 +00:00
Sara Golemon
822ea95785
Export STREAM_MKDIR_RECURSIVE constant
2003-12-13 23:13:51 +00:00
Sara Golemon
a67bf6ecc9
Fix Win32 Build. mkdir/rmdir are macros
2003-12-13 18:48:39 +00:00
Sara Golemon
c56647833b
Route mkdir()/rmdir() via wrapper ops.
...
Move current rmdir()/rmdir() code to plain_wrappers.c
Implement mkdir()/rmdir() in ftp:// wrapper
2003-12-13 04:07:18 +00:00
Sara Golemon
b1f8236b63
Route rename() via wrapper ops.
...
Move current rename() code to main/streams/plain_wrapper.c
Implement ftp/rename()
Implement userstreams/rename()
2003-12-12 23:06:42 +00:00
Marcus Boerger
2f9be5d518
Do not use before they are initialized.
2003-12-12 08:25:22 +00:00
Marcus Boerger
2c7c86bc60
Add some comments here
2003-12-12 07:59:46 +00:00
foobar
a08c1e4dce
- Brought ext/bcmath to the new millennium
...
# consistency..
2003-12-09 23:59:33 +00:00
foobar
63df219b31
- Update header + added missing Id tags.
2003-12-09 16:29:54 +00:00
Derick Rethans
8eb22d7b8d
- Add comment, I put this ina week ago and it already confused me :)
2003-12-07 14:47:35 +00:00
Wez Furlong
fcdda2e8f8
Fix a problem resolving the php.ini path under win32 terminal services environment.
...
Remove config-file-path option from configure under win32; it is not used except to display what might have been chosen, so lets default to the getenv() thingy.
2003-12-06 16:04:34 +00:00
Wez Furlong
6b679cd6ef
fix ipv6 stuff under vc6
2003-12-06 10:32:35 +00:00
Wez Furlong
dbb152b96a
Detect and enable IPv6 support under win32.
...
The ws2tcpip.h header links to IPv6 functions dynamically
and the generated binary will run on win98 and later.
2003-12-06 00:00:31 +00:00
Wez Furlong
ab0029cabf
Be smarter about which systems should register unix transports.
...
Fix skip conditions in these network tests
2003-12-05 13:41:02 +00:00
Moriyoshi Koizumi
50dad38cd4
Fix libexpat build.
...
Improve replaceEntities patch.
2003-12-05 10:11:06 +00:00
Wez Furlong
35117fdf1b
default install path is c:/php5 for PHP 5
2003-12-04 01:40:59 +00:00
Wez Furlong
5e4eac57bd
Export these so that ftp extension can be build as shared ext.
2003-12-02 23:13:43 +00:00
Sara Golemon
dacb3a68fe
Register url_stat flag constants in userspace
2003-12-02 20:06:40 +00:00
Sara Golemon
1aaf7da2ce
Populate userstream objects with context property
2003-12-02 19:14:31 +00:00
Sara Golemon
88ccc6a630
Update userspace/url_stat proto
2003-12-02 18:52:58 +00:00
Wez Furlong
da9093be3a
this can't be persistent
2003-12-02 16:35:19 +00:00
Sara Golemon
dbfe62117b
CS
2003-12-02 01:04:14 +00:00
Sara Golemon
681d18effd
Move safemode/basedir checks for url_stat to plain_wrapper.
2003-12-01 19:47:05 +00:00
Derick Rethans
74eed61504
- Fix the default SAPI filter too; all weird problems should be gone again.
2003-12-01 19:25:07 +00:00
foobar
91b7cc2079
- Moved ext/db to PECL.
...
# Derick copied the sources in CVS repository to preserve CVS log.
2003-12-01 10:47:08 +00:00
Derick Rethans
630e1692d6
- Fixed standard wrapper for input filter.
2003-11-30 20:07:58 +00:00
Ilia Alshanetsky
c344754d48
Removed unused variables.
2003-11-30 19:43:30 +00:00
Wez Furlong
dd60413c61
implement usleep for win32
2003-11-29 22:48:42 +00:00
Wez Furlong
37f135ceef
Add stream_socket_sendto and stream_socket_recvfrom which work very much
...
like sendto() and recvfrom() syscalls.
2003-11-29 21:46:50 +00:00
Derick Rethans
750b0338bf
- Fix sapi_input_filter patch. Returning 1 from the filter handler should
...
make PHP register the variable, returning 0 shouldn't. The new length of
the variables being filtered is now returned in the new_val_len argument
of the function.
2003-11-29 15:24:35 +00:00
Sara Golemon
026d4c9e4c
Route php_stat() via streams/url_stat API (php_stream_stat_path).
...
This enables fopen-wrappers support on stat() and related family calls.
2003-11-28 23:25:28 +00:00
Wez Furlong
6d86bb9e40
(sort of) MFB, feof fix for sockets.
2003-11-28 23:20:23 +00:00
Ilia Alshanetsky
baced1d63d
Fixed a memory leak.
2003-11-28 00:00:28 +00:00
Wez Furlong
3ee72aa5be
port "liveness" checks and a couple of other things from the 4.3 branch.
...
Liveness checks are used to validate persistent socket connects when they
are re-used.
2003-11-27 17:39:01 +00:00
Derick Rethans
370dfd39a9
- Prevent registration of the variable when a zero-length is returned
...
from the sapi_input_filter.
2003-11-26 09:53:22 +00:00
Sara Golemon
0831f2b03a
Fix for file:// wrapper parsing.
...
(Cristiano Duarte <cunha17@uol.com.br>)
2003-11-23 17:35:00 +00:00
Stefan Esser
28b6c35d80
On error do not leave content_type_dup unitialised.
2003-11-22 21:10:47 +00:00
Andi Gutmans
2fefe6148b
- Commit patch by standards
2003-11-19 06:11:47 +00:00
Edin Kadribasic
45f12cc61f
Windows compile fix (patch by sfox@php.net).
2003-11-13 10:32:05 +00:00
Stefan Esser
befbd6d793
Fix odd increments to repair the boundary checks.
2003-11-12 22:34:58 +00:00
Rui Hirokawa
744212ab45
added buffer reallocation for filename.
2003-11-05 23:27:41 +00:00
Derick Rethans
3ab8d263b8
- Always store the URI path in the streams structure, and expose it with
...
stream_get_meta_data().
2003-11-03 14:12:46 +00:00
Stefan Esser
b763dd42c3
Fixed possible crashbug.
2003-11-03 11:46:33 +00:00
Stefan Esser
f670f9c683
It is usually a good idea to write only into allocated bufferspace.
2003-11-03 09:16:24 +00:00
foobar
9e0da5e741
Next is beta3..
2003-10-30 15:14:31 +00:00
Andi Gutmans
b72364ccc1
- Beta 2
2003-10-30 10:00:44 +00:00
Sara Golemon
495fd01ca4
Stop looking once we've found a matching filter.
2003-10-28 23:29:16 +00:00
Sara Golemon
c9b49af990
Extend Filter matching to check wildcards at multiple levels.
...
Ex: foo.bar.baz.bomb
Searches:
foo.bar.baz.bomb itself,
foo.bar.baz.*,
foo.bar.*, and
foo.*
Also changed tempvar "char wildcard[128];" to an estrdup() to
deal with potential filternames longer than 127 bytes.
2003-10-28 21:52:59 +00:00
Rui Hirokawa
0ce637835a
name/value in multipart/form-date will be converted into internal encoding when mbstring.encoding_translation is On.
2003-10-22 14:14:05 +00:00
Marcus Boerger
2c454d7a1f
Bugfix #25930 Can't compile snprintf.c
2003-10-21 07:36:43 +00:00
Ilia Alshanetsky
24793840b2
Fixed unused variable warning on *nix.
2003-10-20 02:21:25 +00:00
Shane Caraveo
399095e7a5
Add libxml extension for common code that is needed to be shared between
...
various xml extensions. currently the only implemented support is the
addition of the streams support for libxml. One new function,
libxml_set_streams_context, which allows a streams context to bet set
prior to loading or writing documents. This works transparently with any
extension that uses libxml. All ini settings that effect streams will
also now effect the loading and writing of xml documents.
TODO: linux support, not sure if config.m4 will work right.
2003-10-19 21:48:46 +00:00
Shane Caraveo
3a6ff32e2b
finish file uri support, this stuff was unecessary.
2003-10-19 21:19:54 +00:00
Shane Caraveo
2a41429472
A simpler patch to add file uri support
2003-10-19 20:59:12 +00:00
Shane Caraveo
0029a45795
revert file: support in preparation for simpler patch
2003-10-19 20:57:20 +00:00
Shane Caraveo
e5103d764a
make file uri's work with streams
2003-10-19 20:04:33 +00:00
Stanislav Malyshev
06aae4bd9c
Enable setting php.ini path via the registry
2003-10-19 10:39:27 +00:00
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