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
ec09b090f9
Fixed bug #27175 (tzset() is not being called by PHP on startup).
2004-02-09 04:04:24 +00:00
Sara Golemon
a172481869
This should not have been an INI_ALL directive.
2004-01-29 00:08:21 +00:00
foobar
e3c80d52da
- Remove gpc_order since it doesn't serve any purpose.
2004-01-26 04:15:08 +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
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
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
Andi Gutmans
2fefe6148b
- Commit patch by standards
2003-11-19 06:11:47 +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
Ilia Alshanetsky
102a5cadfd
Fixed bug #25293 (Output correct EOL to error_log)
2003-09-24 23:20:48 +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
e5e6040efe
Remove unwanted space
2003-09-04 14:43:36 +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
Sascha Schumann
af8e15b8db
kill warnings
2003-08-28 17:07:40 +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
Zeev Suraski
7b4ec88d76
No need for those code blocks anymore...
2003-08-20 23:00:08 +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
Zeev Suraski
642e331309
Improve tracking
2003-08-18 22:31:29 +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
Ilia Alshanetsky
c99e16d14a
Timeout fix.
2003-08-09 23:15:40 +00:00
Zeev Suraski
0d77cf2a33
Call exec_finished()
2003-07-30 16:15:03 +00:00
Zeev Suraski
f4ae16519c
Remove old code
2003-07-21 17:41:42 +00:00
Ilia Alshanetsky
caef4c7776
Handle numeric keys passed via GPC
2003-06-17 17:15:02 +00:00
Ilia Alshanetsky
93a5238465
Fixed bug #24007 (Problem with register_globals & arrays)
2003-06-14 15:08:27 +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
foobar
d5253b4f1f
Follow the "standard" naming.
2003-05-30 20:03:10 +00:00
Ilia Alshanetsky
5298fd6256
MFB
2003-05-21 22:56:59 +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
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
foobar
1948b45b3f
Make use of --with-exec-dir for real..
2003-04-28 21:00:32 +00:00
foobar
2219a62606
- Made 'register_long_arrays' to be "On" by default.
2003-04-25 10:57:23 +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
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
Sebastian Bergmann
3fc852824f
Eliminate TSRMLS_FETCH() calls in destroy_op_array() and zend_get_class_entry().
2003-03-26 07:44:11 +00:00
foobar
88fe9c2d3c
Fixed bug #22775 (Fatal errors exit with status 0 with CGI/CLI)
2003-03-19 08:22:12 +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
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
Stefan Esser
10fc5dd573
reverting half the patch (it is not that simple)
2003-03-12 12:00:22 +00:00
Stefan Esser
4535ff1756
fix possible XSS in error messages
2003-03-08 15:20:12 +00:00
foobar
3c9155e0cb
Renamed OnUpdateInt -> OnUpdateLong to prevent further misunderstandings.
...
# Intentionally left out any 'alias' for it, this way 3rd party extension
# maintainers will really NOTICE the change.
2003-03-07 05:15:28 +00:00
Stefan Esser
af4aa97d1e
Fixing functionicalls with variable number of parameters...
2003-03-06 20:31:20 +00:00
foobar
61668d86b2
ws & CS
2003-03-04 14:12:39 +00:00
Ilia Alshanetsky
4705fef539
More compiler warnings fixed.
2003-03-03 19:46:16 +00:00
Harald Radi
3e52882d3b
adding disable_classes ini directive based on the
...
newly introduced zend_disable_class function
2003-03-03 01:27:22 +00:00
Zeev Suraski
4e55747a2b
Add JIT initialization for _SERVER and _ENV
...
(it's less important for the others, even though it should be fairly
easy now too)
2003-03-02 10:19:15 +00:00
Rasmus Lerdorf
ca2a28774a
MFB: Get rid of a redundant syscall on non-Windows
2003-02-26 22:19:01 +00:00
Derick Rethans
424c41a72e
- Added an extra ini setting with which extra commands can be forced to
...
the sendmail deamon on a per-vhost base. The value in this ini setting
will override all extra commands passed as the 5th parameter to mail()
and will work in Safe Mode.
@- Added an extra ini setting (mail_force_extra_paramaters) which forces
@ the addition of the specified parameters to be passed as extra
@ parameters to the sendmail binary. These parameters will always replace
@ the value of the 5th parameter to mail(), even in safe mode. (Derick)
2003-02-26 20:04:16 +00:00
Harald Radi
53d70b2c14
prevent xdebug from crashing
2003-02-19 16:17:15 +00:00
Wez Furlong
e52aac940f
Implement simple stream support in the ZE scanners.
2003-02-18 09:37:54 +00:00
Zeev Suraski
4934744b93
Win32 build improvements
2003-02-17 13:29:59 +00:00
foobar
3a94aeae72
- Fix unsetting of open_basedir, safe_mode_exec_dir and user_dir with
...
"php_admin_value <ini option> none"
- Fixes bug #22220
2003-02-15 20:22:19 +00:00
Harald Radi
f8e014b228
MFPHP_4_3
2003-01-29 00:49:09 +00:00
Ilia Alshanetsky
a7ac507ade
Fixed bug #21499 (more descriptive message in the event of require/include
...
failure).
2003-01-08 02:44:09 +00:00
Zeev Suraski
968f3f9a12
Remove unnnecessary initialization
2003-01-05 16:11:10 +00:00
Sebastian Bergmann
2c5d4b8c23
Bump year.
2002-12-31 15:59:15 +00:00
Ilia Alshanetsky
5bad812dad
A better, strtok() free implementaion of php_disable_functions().
2002-12-16 15:43:52 +00:00
Marcus Boerger
4ce4a1c32c
php_error -> php_error_docref
2002-12-05 21:53:25 +00:00
Marcus Boerger
b7cd48efdd
Make it possible to test language features like newly introduced 'abstract'
...
independantly from debug mode.
2002-11-21 14:56:06 +00:00
Marcus Boerger
c41b6b2967
Allow error_prepend and error_append being empty as used in run-test.php
2002-11-19 14:11:50 +00:00
Sebastian Bergmann
51e4dbaba0
Fix ZTS build.
2002-11-18 06:04:06 +00:00
George Schlossnagle
99c7ddc3a8
added support functions for the apache_hooks SAPI
2002-11-18 00:59:23 +00:00
Ilia Alshanetsky
f14b742392
Fixed bug #20466 .
2002-11-17 22:52:47 +00:00
Zeev Suraski
d372861f03
Unify handling of error_reporting - fix bug #16137
2002-11-17 13:26:38 +00:00
Ilia Alshanetsky
8ed36bc318
Changed max_input_time PHP_INI_SYSTEM|PHP_INI_PERDIR because ini_set() will
...
already be too late, the POST/GET/COOKIE processing occures before the script
gets parsed.
Changed the default value to -1. If users have previously (older PHPs)
adressed the problem by setting timeout to a large value, we can avoid breaking
their script by detecting the -1 and using timeout_seconds instead of
max_input_time when setting the 'input' timeout.
2002-11-12 14:40:00 +00:00
Ilia Alshanetsky
bb14455e62
Added missing zend_lineno initilization.
2002-11-10 19:28:51 +00:00
foobar
609992baeb
ws fixes
2002-11-10 02:48:22 +00:00
Stig Bakken
cd72343bb3
* honor track_errors ini setting in php_verror()
2002-11-10 02:09:26 +00:00
Ilia Alshanetsky
728eacbf52
A better fix for bug #20110 .
2002-10-28 03:45:21 +00:00
Sterling Hughes
29a344b384
remove $_FILES from $_REQUEST as per php-dev conversation...
2002-10-28 02:46:09 +00:00
Derick Rethans
7592362b4c
- Allow the report_memleak setting to be set everywhere
2002-10-24 16:56:59 +00:00
Sascha Schumann
2909e5c9c9
centralize #include "build-defs.h" and drop (sometimes inconsistent) other
...
instances
2002-10-24 13:15:49 +00:00
Moriyoshi Koizumi
fdc91ccc73
Renaming the functions.
2002-10-23 18:32:55 +00:00
Derick Rethans
d54f58d164
- Trying to clean up this mess :)
2002-10-23 09:35:21 +00:00
Derick Rethans
273d5e04d2
- No reason why implicit_flush should not be settable from a script
2002-10-23 09:31:33 +00:00
Hartmut Holzgraefe
8b7e9d7774
some changes to how request input data (Content-Lenght >0) is handled
...
- webdav-specific stuff removed (should be handled using httpd.conf
LIMIT or equivalents)
- always_populate_raw_post_data now working on any method, not just
POST (and webdav methods with allow_webdav_methods), when
Content-Length is greater zero
- raw input data is also available using php://input stream,
this way one doesn't have to care about memory_limit
- input data is now always consumed (although maybe ignored,
this fixes we had withproblems with keep-alive connections
@ raw POST data is now available as php://input stream (hartmut)
2002-10-21 16:41:06 +00:00
Ilia Alshanetsky
b9efd22339
Fixed bug #16880 . Added an ini option max_input_time that allows the user
...
to specify how much time a script may spend parsing input data (POST, GET, etc..).
2002-10-21 13:09:29 +00:00
Masaki Fujimoto
a6ecdca0ef
fixed highlight related bugs (in case shift_jis input/output filters are enabled)
2002-10-20 02:57:40 +00:00
Ilia Alshanetsky
5ce6d653b8
Fixed bug #19921 . (memory leak introduced by me in rev 1.492)
2002-10-16 16:52:08 +00:00
Sascha Schumann
5e97e66abb
Nuke warning
2002-10-04 19:20:13 +00:00
Rasmus Lerdorf
989a61ed98
As discussed, add --with-config-file-scan-dir compile-time switch defining
...
a directory which will be scanned for *.ini files after the main php.ini
file has been parsed. This makes it much easier to automatically deploy
a modular PHP since adding extensions which have their own ini switches can
now be done by simply dropping a foo.ini file in the right directory and
restarting. A list of parsed ini files is maintained and shown on the
phpinfo page.
2002-10-04 04:47:35 +00:00
Zeev Suraski
d58c3dda96
Guys, please keep K&R.
2002-10-03 11:18:39 +00:00
Ilia Alshanetsky
7f18442882
Fixed a mem leak inside the path resolving code.
2002-09-29 22:16:29 +00:00
foobar
7aaa6bd77d
ws fix
2002-09-29 19:22:39 +00:00
Ilia Alshanetsky
3f8ec7e764
Fixed bug #13936
2002-09-28 20:13:28 +00:00
Sascha Schumann
6816ba4b32
We are about to enter 2003, sending two-digit years does not make too
...
much sense anymore. According to an article from '98, only Netscape 3.x was
affected anyway.
2002-09-25 16:11:31 +00:00
Wez Furlong
696e0a2301
Implement persistent streams. (for pfsockopen).
...
Juggle some includes/definitions.
Tidy up streams use in ext/standard/file.c
2002-09-25 15:25:12 +00:00
Sander Roobol
90407dbf3e
Changing the magic_quotes_gpc setting has no effect at USER level
...
# this partially fixes the #19526 shit
2002-09-20 18:07:48 +00:00
Zeev Suraski
3ae3eb06e9
Fix connection_status()
2002-09-19 15:54:23 +00:00
Zeev Suraski
76312b4508
another startup initialization fix - only ISAPI and CGI SAPI's tested,
...
minor compile buglets might occur in other SAPIs, but should be trivial
to fix...
2002-09-18 21:57:42 +00:00
Zeev Suraski
31429c60db
Call zend_post_startup() - use local copies of the function, class and
...
constant tables in the startup thread
2002-09-17 09:07:10 +00:00
Anantha Kesari H Y
fa94fc6384
NetWare related changes/modifications
2002-09-09 11:17:40 +00:00
Sebastian Bergmann
714c19fe66
Per discussion on #php.bugs (+1 from at least Derick and Jani), revert double_buffering.
2002-09-01 11:33:19 +00:00
Wez Furlong
2a71d7d5bb
Respect safe mode setting when opening scripts and things for the ZE.
2002-08-23 17:39:20 +00:00
Christian Stocker
9495fb9d7d
@ - Added php.ini option "allow_webdav_methods" to allow handling of
...
@ WebDAV http requests within PHP scripts. (chregu)
# More methods (for DeltaV) will follow.
2002-08-22 07:48:23 +00:00
Marcus Boerger
2a443b2e77
Changed handling of output buffer sizes.
...
@Added php.ini option "double_buffering" that forces an additional first
@output buffer and improved handling of buffer sizes. (Marcus)
2002-08-20 19:49:37 +00:00
Marcus Boerger
3408366776
-allow changing html_errors any time changing display_errors is already
...
-use sizeof for strftime call
-removed unused #define
-mention CODING_STANDARDS as documentation
2002-08-19 18:40:28 +00:00
Marcus Boerger
968721bc55
allow target anchor only for docref parameter
2002-08-13 09:37:51 +00:00
Marcus Boerger
1134977baf
fix for extension = ""
...
make php_verror available
2002-08-12 20:12:31 +00:00
Wez Furlong
1861f1bae3
Minor fix for html_errors=on in php_error_docref.
2002-08-11 09:52:06 +00:00
Marcus Boerger
9c8ba935d6
Improved handling of output buffers (see news)\n#No trim for the string parameter...
2002-08-09 22:29:58 +00:00
Marcus Boerger
2e29e53e00
docref shall either be NULL or a reference to a manual page without an
...
extension or an external reference starting with 'http://'.
2002-08-09 21:57:03 +00:00
Marcus Boerger
e11e0b0ec0
No missleading
2002-08-08 22:11:24 +00:00
Marcus Boerger
976a91a55b
Say FIXME to non function calls and non TSRM builds. Both will currentls
...
not show a default reference.
2002-08-08 19:36:49 +00:00
Marcus Boerger
88c385e817
rename php_error_func<n> to php_error_docref and support Wez idea
...
that solves ToDo requirement to point to PHP Manual in error messages.
2002-08-08 19:12:27 +00:00
Marcus Boerger
e50228ab5b
-new functions php_error_func<0> to support unified error messages
...
#read followup
2002-08-07 18:29:36 +00:00
Rui Hirokawa
7527bf0c58
made sapi_register_treat_data() to support multibyte input encoding translation without MBSTR_ENC_TRANS and changed php_treat_data to php_default_treat_data.
2002-08-02 06:53:48 +00:00
foobar
2dbd41869c
Allow setting post_max_size and upload_max_filesize in .htaccess files too
2002-07-25 17:31:34 +00:00
Stefan Esser
3e05678842
do not dtor empty elements
2002-07-25 09:33:26 +00:00
Derick Rethans
9ae8c39bab
- set_time_limit() now returns whether it succeeded in changing the time
...
limit.
2002-07-17 08:06:43 +00:00
foobar
ed58d3a235
- Added predefined constants for the upload errors.
...
- Removed the debugging error (not useful for end-users)
2002-07-12 01:49:58 +00:00
Derick Rethans
6819ee3624
- Fix for bug #18283
...
#- It doesn't work from within a script anyways
2002-07-11 19:38:08 +00:00
foobar
2afacbf1cf
These two can not be set in script. (so that they would have any effect)
2002-07-08 06:51:41 +00:00
foobar
4b321b0430
Fix win32 build.
2002-07-01 09:00:00 +00:00
Sander Roobol
d325d07b1a
Main script should not be parsed when (include|require)_once()'ed, #17720
...
# Derick, MFH?
2002-06-30 13:38:16 +00:00
Derick Rethans
d812929d2f
- Implement Andrei's request for disabling memory leak reporting in debug
...
builds.
#- Andrei: I can show you the logs :)
2002-06-26 19:43:46 +00:00
Marcus Boerger
761e234a43
-unlimited php_printf
2002-06-23 00:57:01 +00:00
foobar
d2f2ed76d1
Use correct macro for boolean ini values.
2002-06-19 00:18:40 +00:00
Stig Bakken
40ab700677
@New constants: PHP_PREFIX and PHP_SHLIB_SUFFIX (Stig)
2002-06-07 12:19:26 +00:00
Markus Fischer
b04656ad40
- Finish implementation of custom smtp port (introduces "smtp_port" ini config).
2002-06-02 17:13:48 +00:00
Zeev Suraski
2260e1742d
- Centralize html_puts() again
...
- Revolutionize phpinfo()'s speed
2002-05-13 08:46:24 +00:00
Sascha Schumann
f866bdc368
Simplify even more
2002-05-12 15:30:44 +00:00
Sascha Schumann
5c4ae13670
Simplify white space handling in php_html_puts.
...
If we encounter a ' ', we will look for the next non-' ' and set p
accordingly.
2002-05-12 15:22:11 +00:00
Sascha Schumann
a769454d79
reenable php_html_puts
2002-05-12 14:48:22 +00:00
Zeev Suraski
bf97148978
Centralize html_puts() logic - php_html_puts() remains as an API wrapper
2002-05-11 12:41:33 +00:00
Zeev Suraski
77f41212f6
Removing HTMLization of ' ' wasn't ok, it didn't deal with series of spaces
...
properly. Turn series of spaces into 's.
2002-05-11 12:17:53 +00:00
Zeev Suraski
5af649efbd
Revert to the old php_ini.c, and reimplement the binary-path searching.
...
Should now also work under UNIX (CLI/CGI)
2002-05-11 03:41:17 +00:00
foobar
773da954f8
ws fix
2002-05-09 19:58:39 +00:00
Rui Hirokawa
f30b722f14
Added conversion support from script character encoding to internal character encoding. This feature is very useful for japanese who uses Shift_JIS encoding because some of characters in Shift_JIS are including '0x5c' and it causes some troubles on Zend parser. This patch is made by Masaki Fujimoto.
2002-05-08 12:33:44 +00:00
Yasuo Ohgaki
f61b795a8f
Make Content-Type output always correct.
...
# Flushing buffer is needed to be fixed properly anyway...
2002-05-02 01:58:12 +00:00
Wez Furlong
479aa767f5
revert...
2002-04-30 00:17:48 +00:00
Wez Furlong
37411dd674
Implement context option setting API.
...
Add/amend debugging code for sockets.
Add a flag that will help the http wrapper optimize itself when
it is not being used for include/require.
2002-04-30 00:16:00 +00:00
Wez Furlong
e1d0a14790
Implement stream context and status notification system.
...
Bump the BC for zlib notice to a warning
# See my RFC to php-dev a few days ago
2002-04-10 22:42:32 +00:00
Marcus Boerger
bd9cf79efb
new ini setting log_errors_max_len
...
@-New ini setting log_errors_max_len controls maximum length for error
@ messages. Set it to 0 for infinite. Default is 1024 (old behaviour) (Marcus)
2002-04-10 01:27:44 +00:00
foobar
14a6bc6d69
upload_max_filesize can only be set in php.ini
2002-04-08 07:58:47 +00:00