Commit Graph

3613 Commits

Author SHA1 Message Date
Stefan Esser
3efb925931 Overwrite control chars in parameters with whitespace instead of truncating. 2002-08-24 11:37:50 +00:00
Marcus Boerger
149ad05b4f php_error_docref
#New conversion available at: http://docref.txt.marcus-boerger.de
2002-08-24 01:19:28 +00:00
Zeev Suraski
5a5e206ec2 Fix import_request_variables() 2002-08-24 00:45:09 +00:00
foobar
ff5ed789bc style fix 2002-08-22 01:20:50 +00:00
Ilia Alshanetsky
ea1bb5e172 Added monetary.h to prevent compile warning.
Fixed a memory leak inside money_format function, which occures if the
parameters to the function are not valid.
Fixed a segmentation fault inside money_format in the event the value
to be formated is >1024 bytes.
Made the return value of money_format be null terminated.
2002-08-21 13:14:57 +00:00
Marcus Boerger
95e933fc99 Fixes array test 004.phpt. Nice copy paste error. 2002-08-21 11:23:44 +00:00
Marcus Boerger
a70640480a Patch from Melvyn Sopacua <msopacua@idg.nl> finally fixes it (bug 19006). 2002-08-21 10:42:55 +00:00
Sebastian Bergmann
090e30a863 Fix ZTS build. 2002-08-21 06:22:19 +00:00
Marcus Boerger
d3d12daec4 add ini setting precision - this does not fix the real problem here 2002-08-21 03:13:33 +00:00
Marcus Boerger
be1e23cbc9 Add var_dump float format test 2002-08-21 01:27:56 +00:00
Marcus Boerger
534a63b5af Add combined base64 and md5 test 2002-08-21 01:26:21 +00:00
Marcus Boerger
9607a482b2 fix array tests
someone must have changed precision in php.ini-dist from 14 to 12
2002-08-21 01:22:02 +00:00
Wez Furlong
9d348ea800 Implement filter API for streams.
Filters can be stacked onto a stream; more details will follow in docs and
on php-dev.

Implement "string.rot13" filter

Allows the following script:

$fp = fopen("file.txt", "r");
stream_filter_prepend($fp, "string.rot13");

// File contents will be subject to a rot13 transformation before
// being output.
fpassthru($fp);
fclose($fp);
2002-08-20 20:47:47 +00:00
Wez Furlong
a9ba30cd89 fix vim modeline 2002-08-20 20:43:45 +00:00
Marcus Boerger
0f8681fc69 Changed handling of output buffer sizes. 2002-08-20 20:07:00 +00:00
Marcus Boerger
7bd7e14e4c Changed handling of output buffer sizes.
#.c to follow
2002-08-20 20:01:14 +00:00
Derick Rethans
c20c3fc610 - Fix for the compiler on Compaq Tru64 4.0F PK3 (bug #18974) 2002-08-20 11:18:18 +00:00
Wez Furlong
5f9a5a7c8e Remove php_stream_sock_set_blocking and replace with
php_stream_set_option which can be used in a similar way as ioctl()
to set options for streams.

Current options include buffering and blocking support.

o Buffer control is support for stdio based streams.
o Blocking/non-blocking is supported for stdio and socket based streams.
2002-08-19 22:59:10 +00:00
Ilia Alshanetsky
6dbc0e5483 Convert the value of tz_minuteswest inside struct timezone on Windows to
minutes from seconds.
2002-08-19 21:59:46 +00:00
Zeev Suraski
df4fdeb54e Fix a warning 2002-08-19 20:47:42 +00:00
Sander Roobol
bed405cce4 Sync with var_unserializer.re 2002-08-19 20:02:59 +00:00
Sander Roobol
47ae4068bb Made unserialize handle floats with an E notation - bug #18654
Patch by Christophe Sollet <csollet@coleebris.com>.
(I'll commit a new var_unserializer.c in a second)
2002-08-19 19:45:46 +00:00
Stanislav Malyshev
2282ac6074 ZE2 compatibility fix
## In ZE2 the hash contains zend_class_entry *!
2002-08-19 10:58:18 +00:00
Stanislav Malyshev
05156fa349 ZE2 compatibility fix
## In ZE2 the hash contains zend_class_entry *!
2002-08-18 12:22:28 +00:00
Ilia Alshanetsky
1aea030cf2 Corrected if() syntax in previous patch. 2002-08-18 07:54:33 +00:00
Ilia Alshanetsky
d42dbfce8e Fixed a segmentation fault that would occur if an entry contained a
non-terminated enclosure. Bug #12556
2002-08-18 06:55:32 +00:00
Ilia Alshanetsky
3bd899ea43 Fixed a compile failure in Win32 caused by previous patch.
Changed else statement to comply with PHP coding standards.
2002-08-16 15:04:00 +00:00
Ilia Alshanetsky
f11c3a4095 Added a handler for php -r '' for SAFE_MODE 2002-08-16 12:47:56 +00:00
Sterling Hughes
88c1d8983f clean this up a bit 2002-08-16 10:08:32 +00:00
Ilia Alshanetsky
b284497eaf Added safe_mode & open_basedir check when a user is chaning ini options
that specify file system paths. Fixes bug #17168.
2002-08-16 01:39:10 +00:00
Dan Kalowsky
dee21adc3d Fix for bug #18401, makes shuffle() properly generate all possibilities.
Patch provided by Adam Trachtenberg <adam@trachtenberg.com>
2002-08-15 19:09:05 +00:00
Marcus Boerger
18ef76e361 do not include "php_have_iconv.h" 2002-08-14 23:48:52 +00:00
Dan Kalowsky
19e42a2ed3 Fixed another memory leak, patch provided by Ilia <ilia@prohost.org> 2002-08-13 23:12:54 +00:00
Dan Kalowsky
ed135034a9 Fixes a memory leak which results when an invalid format code is
specified.  Patch by Ilia <ilia@prohost.org>
#Someone give him php4 karma :)
2002-08-13 21:56:39 +00:00
Rasmus Lerdorf
b025bb1023 Missing proto 2002-08-13 05:08:47 +00:00
Rasmus Lerdorf
f50df31d7f bool not boolean 2002-08-13 04:44:45 +00:00
Rasmus Lerdorf
d820c177bf dir() returns an instantiated object, not a class. 2002-08-13 04:24:15 +00:00
Wez Furlong
fc1ef270ce Implement curl based wrappers.
Currently read-only, and http is the only thing tested.
Because of this, using them can be controlled by configure:

--with-curlwrappers     Use CURL for url streams

Not for production use...

This enables http, https, ftp and ldap protocols as streams.
2002-08-12 15:56:13 +00:00
Wez Furlong
3fe62cf0fb Missing word... 2002-08-11 18:51:40 +00:00
Wez Furlong
bcef712ad6 Properly implement TSRM parameters to the new log_error
function... (Thanks Marcus!)
Add a convenience macro for importing a stream from a zval.
2002-08-11 14:29:01 +00:00
Wez Furlong
5a21ab42cb Introduce an error stack for wrappers, to help prevent multiple errors
and warnings (some of which are bogus) when there are problems opening
streams.
Implement sanity check on the mode used to open ftp and http connections.
This fixes Bug 12004.
2002-08-11 10:53:10 +00:00
Marcus Boerger
21903dfc7e corrected handling of internal output buffers
minor fixs
2002-08-10 16:12:36 +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
Wez Furlong
ccb5c84b6c Centralize some blocking socket related code.
# It's been a while since I wrote this!
2002-08-09 21:02:36 +00:00
Marcus Boerger
783fddeb0f possible memoryleak 2002-08-09 20:53:37 +00:00
Yasuo Ohgaki
c528157123 Remove duplicated checks. 2002-08-08 22:59:41 +00:00
Hartmut Holzgraefe
1059312f37 reverting ' to \" to stop stupid discussions
although i still do not believe the arguments are reasonable ...
2002-08-08 20:19:33 +00:00
Marcus Boerger
9cf0c30968 those are allways defined -> fixes warning in basic_functions.c 2002-08-08 17:53:52 +00:00
Hartmut Holzgraefe
e539c5564d the order to do things is save-compile-commit
no variations and make sure editor and shell are in the same dir :(
2002-08-08 13:59:19 +00:00
Hartmut Holzgraefe
83586a6c06 fix for #18782 (setting background color without making sure the text
crtmut in /new/php/php4untouched on hartmut
php4untouched > cvs update ext/standard/info.
cvs [update aborted]: received interrupt signal

hartmut in /new/php/php4untouched on hartmut
php4untouched > cvs update ext/standard/info.c
RCS file: /repository/php4/ext/standard/info.c,v
retrieving revision 1.184
retrieving revision 1.188
Merging differences between 1.184 and 1.188 into info.c
rcsmerge: warning: conflicts during merge
cvs server: conflicts found in ext/standard/info.c
C ext/standard/info.c

hartmut in /new/php/php4untouched on hartmut
php4untouched > cvs log ext/standard/info.c

RCS file: /repository/php4/ext/standard/info.c,v
Working file: ext/standard/info.c
head: 1.188
branch:
locks: strict
access list:
symbolic names:
        dev/: 1.188
				        php_4_2_2: 1.167.2.1
								        PHP_4_2_2: 1.167.2.1.0.2
												        php_4_3_0_dev_zend2_alpha2: 1.183
																        php5_5_0: 1.182
																				        php_4_3_0dev: 1.182
																								        php_4_3_0_dev_zend2_alpha1: 1.181
																												        php_4_2_1: 1.167.2.1
																																        php_4_2_1RC2: 1.167.2.1
																																				        php_4_2_1RC1: 1.167.2.1
																																								        php_4_2_0: 1.167.2.1
																																												        php_4_2_0RC4: 1.167.2.1
																																																        php_4_2_0RC3: 1.167.2.1
																																																				        php_4_2_0RC2: 1.167.2.1
																																																								        php_4_2_0RC1: 1.167.2.1
																																																												        PHP_4_2_0: 1.167.0.2
																																																																        php_4_1_2: 1.153.2.1
																																																																				        php_4_1_1: 1.153.2.1
																																																																								        ChangeLog: 1.161
																																																																												        php_4_1_0: 1.153.2.1
																																																																																        php_4_1_0RC5: 1.153.2.1
																																																																																				        php_4_1_0RC4: 1.153.2.1
																																																																																								        php_4_1_0RC3: 1.153.2.1
																																																																																												        php_4_1_0RC2: 1.153.2.1
																																																																																																        php_4_1_0RC1: 1.153.2.1
																																																																																																				        php_4_0_7RC3: 1.153
																																																																																																								        php4: 1.157
																																																																																																												        POST_SUBST_Z_MACROS: 1.157
																																																																																																																        PRE_SUBST_Z_MACROS: 1.155
																																																																																																																				        php_4_0_7RC2: 1.153
																																																																																																																								        RAND_REDESIGN: 1.154.0.2
																																																																																																																												        php_4_0_7RC1: 1.153
																																																																																																																																        PHP_4_0_7: 1.153.0.2
																																																																																																																																				        PRE_TSRM_MERGE_PATCH: 1.142
																																																																																																																																								        php_4_0_6: 1.137.2.1
																																																																																																																																												        php_4_0_6RC4: 1.137.2.1
																																																																																																																																																        php_4_0_6RC3: 1.137.2.1
																																																																																																																																																				        php_4_0_6RC2: 1.137.2.1
																																																																																																																																																								        php_4_0_6RC1: 1.137
																																																																																																																																																												        PHP_4_0_6: 1.137.0.2
																																																																																																																																																																        php_4_0_5: 1.132
																																																																																																																																																																				        php_4_0_5RC8: 1.132
																																																																																																																																																																								        php_4_0_5RC7: 1.132
																																																																																																																																																																												        php_4_0_5RC6: 1.132
																																																																																																																																																																																        php_4_0_5RC5: 1.132
																																																																																																																																																																																				        php_4_0_5RC4: 1.132
																																																																																																																																																																																								        php_4_0_5RC3: 1.132
																																																																																																																																																																																												        php_4_0_5RC2: 1.132
																																																																																																																																																																																																        php_4_0_5RC1: 1.132
																																																																																																																																																																																																				        PHP_4_0_5: 1.132.0.2
																																																																																																																																																																																																								        php_4_0_4pl1: 1.124
																																																																																																																																																																																																												        php_4_0_4pl1RC2: 1.124
																																																																																																																																																																																																																        php_4_0_4pl1RC1: 1.124
																																																																																																																																																																																																																				        php_4_0_4REL: 1.124
																																																																																																																																																																																																																								        php_4_0_4RC6: 1.124
																																																																																																																																																																																																																												        php_4_0_4RC5: 1.124
																																																																																																																																																																																																																																        php_4_0_4RC4: 1.124
																																																																																																																																																																																																																																				        php_4_0_4RC3: 1.124
																																																																																																																																																																																																																																								        php_4_0_4: 1.124.0.2
																																																																																																																																																																																																																																												        php_4_0_3: 1.116
																																																																																																																																																																																																																																																        php_4_0_3RC2: 1.114
																																																																																																																																																																																																																																																				        php_4_0_3RC1: 1.114
																																																																																																																																																																																																																																																								        php_4_0_2: 1.113
																																																																																																																																																																																																																																																												        php_4_0_2RC1: 1.110
																																																																																																																																																																																																																																																																        PRE_FILE_COMPILE_API_CHANGE: 1.108
																																																																																																																																																																																																																																																																				        php_4_0_1pl1: 1.104
																																																																																																																																																																																																																																																																								        php_4_0_1: 1.104
																																																																																																																																																																																																																																																																												        php_4_0_1RC2: 1.104
																																																																																																																																																																																																																																																																																        php_4_0_1RC: 1.101
																																																																																																																																																																																																																																																																																				        php_4_0_0: 1.93
																																																																																																																																																																																																																																																																																								        php_4_0RC2: 1.89
																																																																																																																																																																																																																																																																																												        php_4_0RC1: 1.70
																																																																																																																																																																																																																																																																																																        php_4_0b4pl1: 1.67
																																																																																																																																																																																																																																																																																																				        php_4_0b4: 1.65
																																																																																																																																																																																																																																																																																																								        php_4_0b4_rc1: 1.65
																																																																																																																																																																																																																																																																																																												        BEFORE_SAPI_POST_PATCH_17_FEB_2000: 1.62
																																																																																																																																																																																																																																																																																																																        BEFORE_SAPIFICATION_FEB_10_2000: 1.60
																																																																																																																																																																																																																																																																																																																				        BEFORE_PRE_SHUTDOWN_REVERSE_PATCH: 1.57
																																																																																																																																																																																																																																																																																																																								        PRE_ISSET_TYPE: 1.55
																																																																																																																																																																																																																																																																																																																												        PRE_LIBZEND_TO_ZEND: 1.51
																																																																																																																																																																																																																																																																																																																																        PRE_USED_RETURN_VALUE_PATCH: 1.39
																																																																																																																																																																																																																																																																																																																																				        php_4_0b3: 1.39
																																																																																																																																																																																																																																																																																																																																								        php_4_0b3_RC5: 1.39
																																																																																																																																																																																																																																																																																																																																												        php_4_0b3_RC4: 1.39
																																																																																																																																																																																																																																																																																																																																																        php_4_0b3_RC3: 1.39
																																																																																																																																																																																																																																																																																																																																																				        php_4_0b3_RC2: 1.39
																																																																																																																																																																																																																																																																																																																																																								        before-sapi-split: 1.36
																																																																																																																																																																																																																																																																																																																																																												        php_4_0b2: 1.30
																																																																																																																																																																																																																																																																																																																																																																        php_4_0b2-2: 1.27
																																																																																																																																																																																																																																																																																																																																																																				        php_4_0b2-1: 1.27
																																																																																																																																																																																																																																																																																																																																																																								        BEFORE_NEW_OPERATOR_FIX: 1.26
																																																																																																																																																																																																																																																																																																																																																																												        newoperator: 1.26.0.2
																																																																																																																																																																																																																																																																																																																																																																																        BEFORE_BIG_SYMBOL_CHANGE: 1.26
																																																																																																																																																																																																																																																																																																																																																																																				        php_4_0b1: 1.25
																																																																																																																																																																																																																																																																																																																																																																																								        BEFORE_REMOVING_AI_COUNT_FINAL_STEP: 1.14
																																																																																																																																																																																																																																																																																																																																																																																												        BEFORE_REMOVING_GC_STEP1: 1.14
																																																																																																																																																																																																																																																																																																																																																																																																        BEFORE_PHP4_APACHE_MODULE_CHANGE: 1.14
																																																																																																																																																																																																																																																																																																																																																																																																				keyword substitution: kv
																																																																																																																																																																																																																																																																																																																																																																																																				total revisions: 191;   selected revisions: 191
																																																																																																																																																																																																																																																																																																																																																																																																				description:
																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.188
																																																																																																																																																																																																																																																																																																																																																																																																				date: 2002/08/05 19:00:09;  author: helly;  state: Exp;  lines: +16 -2
																																																																																																																																																																																																																																																																																																																																																																																																				Correct carset if iconv is active
																																																																																																																																																																																																																																																																																																																																																																																																				#Same solution would work for mbstring - but that must wait
																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.187
																																																																																																																																																																																																																																																																																																																																																																																																				date: 2002/08/04 22:49:48;  author: helly;  state: Exp;  lines: +9 -3
																																																																																																																																																																																																																																																																																																																																																																																																				-Send charset US-ASCII or ini setting default_charset.
																																																																																																																																																																																																																																																																																																																																																																																																				#After some discussion with Ilia Alshanetsky
																																																																																																																																																																																																																																																																																																																																																																																																				#But perhaps we should have a look for a mbstring solution...
																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.186
																																																																																																																																																																																																																																																																																																																																																																																																				date: 2002/08/04 18:59:16;  author: georg;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																				ups.. :)
																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.185
																																																																																																																																																																																																																																																																																																																																																																																																				date: 2002/08/04 18:57:02;  author: georg;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																				added meta tag (w3c compliance)
																																																																																																																																																																																																																																																																																																																																																																																																				Thx to Ilia Alshanetsky (ilia@prohost.org)
																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.184
																																																																																																																																																																																																																																																																																																																																																																																																				date: 2002/07/01 18:52:30;  author: derick;  state: Exp;  lines: +8 -8
																																																																																																																																																																																																																																																																																																																																																																																																				- No C++ comments
																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.183
																																																																																																																																																																																																																																																																																																																																																																																																				date: 2002/06/19 13:24:01;  author: sander;  state: Exp;  lines: +7 -12
																																																																																																																																																																																																																																																																																																																																																																																																				Made the API versions appear better on phpinfo();
																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.182
																																																																																																																																																																																																																																																																																																																																																																																																				date: 2002/06/08 10:25:44;  author: mfischer;  state: Exp;  lines: +32 -2
																																																																																																																																																																																																																																																																																																																																																																																																				- Since streams are always enabled, instead of just printing 'enabled' we tell
																																																																																																																																																																																																																																																																																																																																																																																																				  what streams are currently registered.
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.181
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/05/24 17:25:40;  author: sander;  state: Exp;  lines: +4 -4
																																																																																																																																																																																																																																																																																																																																																																																																					Fix <head> and <body> tags in phpinfo() output (#17411)
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.180
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/05/13 17:43:04;  author: zeev;  state: Exp;  lines: +6 -6
																																																																																																																																																																																																																																																																																																																																																																																																					- Fix a buglet in printing of GPCSE arrays
																																																																																																																																																																																																																																																																																																																																																																																																					- Remove indirect access
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.179
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/05/13 08:46:21;  author: zeev;  state: Exp;  lines: +4 -1
																																																																																																																																																																																																																																																																																																																																																																																																					- Centralize html_puts() again
																																																																																																																																																																																																																																																																																																																																																																																																					- Revolutionize phpinfo()'s speed
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.178
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/05/12 14:50:54;  author: sas;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																					Use string_len information
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.177
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/05/12 14:48:22;  author: sas;  state: Exp;  lines: +7 -6
																																																																																																																																																																																																																																																																																																																																																																																																					reenable php_html_puts
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.176
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/05/11 12:41:32;  author: zeev;  state: Exp;  lines: +6 -6
																																																																																																																																																																																																																																																																																																																																																																																																					Centralize html_puts() logic - php_html_puts() remains as an API wrapper
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.175
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/05/09 11:56:52;  author: derick;  state: Exp;  lines: +4 -1
																																																																																																																																																																																																																																																																																																																																																																																																					- Add PHP_API_VERSION too
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.174
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/05/09 11:47:37;  author: derick;  state: Exp;  lines: +7 -4
																																																																																																																																																																																																																																																																																																																																																																																																					- Show both API nos
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.173
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/05/02 17:36:00;  author: fmk;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																					Fixing wrong pointer
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.172
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/05/02 12:33:03;  author: derick;  state: Exp;  lines: +7 -1
																																																																																																																																																																																																																																																																																																																																																																																																					- Add Zend API No. to phpinofo() output
																																																																																																																																																																																																																																																																																																																																																																																																					----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																					revision 1.171
																																																																																																																																																																																																																																																																																																																																																																																																					date: 2002/03/29 10:19:23;  author: ssb;  state: Exp;  lines: +71 -17
																																																																																																																																																																																																																																																																																																																																																																																																					(PHP php_uname) display runtime uname rather than compile-time uname, added
																																																																																																																																																																																																																																																																																																																																																																																																					                an optional parameter to get single fields (like uname(1))
																																																																																																																																																																																																																																																																																																																																																																																																													# Windows version is not tested, and I didn't know how to get
																																																																																																																																																																																																																																																																																																																																																																																																													# `uname -n` on Windows, so it's hardcoded to "localhost" for now.
																																																																																																																																																																																																																																																																																																																																																																																																													# Windows gurus feel free to fix. :-)
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.170
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2002/03/15 21:03:05;  author: wez;  state: Exp;  lines: +2 -4
																																																																																																																																																																																																																																																																																																																																																																																																													New PHP streams...
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.169
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2002/03/14 18:39:53;  author: zeev;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																													Change case for consistency
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.168
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2002/03/14 13:35:19;  author: zeev;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																													Make it clearer what this entry means
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.167
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2002/03/04 20:14:52;  author: sas;  state: Exp;  lines: +2 -1
																																																																																																																																																																																																																																																																																																																																																																																																													branches:  1.167.2;
																																																																																																																																																																																																																																																																																																																																																																																																													Add apparently missing include
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.166
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2002/03/04 18:46:53;  author: sas;  state: Exp;  lines: +7 -6
																																																																																																																																																																																																																																																																																																																																																																																																													Supply php_html_puts which escapes a whole string.. now fully works in ZTS
																																																																																																																																																																																																																																																																																																																																																																																																													mode, too.
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.165
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2002/03/04 18:12:55;  author: sas;  state: Exp;  lines: +5 -5
																																																																																																																																																																																																																																																																																																																																																																																																													revert last commit, puts does more through putc.
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.164
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2002/03/04 17:48:20;  author: sas;  state: Exp;  lines: +6 -6
																																																																																																																																																																																																																																																																																																																																																																																																													Use PHPWRITE to output data.  Because this just outputs diagnostic
																																																																																																																																																																																																																																																																																																																																																																																																													information, a few spaces won't hurt (and multiple ones are rendered
																																																																																																																																																																																																																																																																																																																																																																																																													as one by browsers anyway).  Micro-benchmarks which use phpinfo()
																																																																																																																																																																																																																																																																																																																																																																																																													as a mean to generate output will yield more through-put now
																																																																																																																																																																																																																																																																																																																																																																																																													(35 req/s vs. 83 req/s in tux).
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.163
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2002/02/28 08:26:45;  author: sebastian;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																													Maintain headers.
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.162
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2001/12/29 14:23:58;  author: sebastian;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																													PHP 4.0 -> PHP 4. Patch by Martin Jansen <mail@martin-jansen.de>.
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.161
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2001/12/11 15:30:32;  author: sebastian;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																													Update headers.
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.160
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2001/12/06 13:31:34;  author: sterling;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																													use PHP_INFO_ALL and PHP_CREDITS_ALL instead of hardcoding them
																																																																																																																																																																																																																																																																																																																																																																																																													----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																													revision 1.159
																																																																																																																																																																																																																																																																																																																																																																																																													date: 2001/10/11 23:33:49;  author: ssb;  state: Exp;  lines: +17 -6
																																																																																																																																																																																																																																																																																																																																																																																																													* zend_module_entry change: apino, debug and zts are moved first,
																																																																																																																																																																																																																																																																																																																																																																																																													  see README.EXTENSIONS file for upgrade help.
																																																																																																																																																																																																																																																																																																																																																																																																														@Introduced extension version numbers (Stig)
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.158
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/10/06 20:13:37;  author: derick;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																														- <br> -> <br />
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.157
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/09/25 22:48:43;  author: jeroen;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																														2nd phase in back-substitution those macro's

																																																																																																																																																																																																																																																																																																																																																																																																														I've got pretty much everything now...
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.156
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/09/25 21:58:23;  author: jeroen;  state: Exp;  lines: +13 -13
																																																																																																																																																																																																																																																																																																																																																																																																														Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.155
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/09/09 13:29:18;  author: derick;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																														- Don't wrap lines... this is annoying while coding.
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.154
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/08/15 22:37:31;  author: sniper;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																														Add the build time too. Bug: #12774
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.153
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/08/13 19:31:16;  author: zeev;  state: Exp;  lines: +5 -3
																																																																																																																																																																																																																																																																																																																																																																																																														branches:  1.153.2;
																																																																																																																																																																																																																																																																																																																																																																																																														Fix crashes in parse_parameters calls
																																																																																																																																																																																																																																																																																																																																																																																																														HEADS UP:  Make sure you supply TSRMLS_CC for this function!
																																																																																																																																																																																																																																																																																																																																																																																																														I'll try to think of a way that'd allow us to find this issue using
																																																																																																																																																																																																																																																																																																																																																																																																														the compiler.
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.152
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/08/13 07:55:38;  author: rasmus;  state: Exp;  lines: +19 -13
																																																																																																																																																																																																																																																																																																																																																																																																														Track down a few more functions that don't check for 0 args and use
																																																																																																																																																																																																																																																																																																																																																																																																														faster mechanism
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.151
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/08/13 07:28:57;  author: rasmus;  state: Exp;  lines: +3 -1
																																																																																																																																																																																																																																																																																																																																																																																																														Oops, a little too much simplification there.. ;)
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.150
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/08/13 06:43:47;  author: rasmus;  state: Exp;  lines: +34 -36
																																																																																																																																																																																																																																																																																																																																																																																																														We don't consistently check for args passed to functions that don't
																																																																																																																																																																																																																																																																																																																																																																																																														take any args.  In some cases we probably want to skip the check for
																																																																																																																																																																																																																																																																																																																																																																																																														performance reasons, but in other cases where performance is unlikely
																																																																																																																																																																																																																																																																																																																																																																																																														to be a factor, not throwing a warning on the wrong number of args passed
																																																																																																																																																																																																																																																																																																																																																																																																														to a function is at best inconsistent, and at worst it could hide a bug.
																																																																																																																																																																																																																																																																																																																																																																																																														So, add a few such checks.  There are still lots of cases out there.
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.149
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/08/11 17:03:37;  author: zeev;  state: Exp;  lines: +11 -11
																																																																																																																																																																																																																																																																																																																																																																																																														Whitespace
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.148
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/08/08 17:16:20;  author: zeev;  state: Exp;  lines: +8 -7
																																																																																																																																																																																																																																																																																																																																																																																																														- Implement $_FORM
																																																																																																																																																																																																																																																																																																																																																																																																														- Update phpinfo()
																																																																																																																																																																																																																																																																																																																																																																																																														- Update NEWS
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.147
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/07/31 04:53:50;  author: zeev;  state: Exp;  lines: +4 -5
																																																																																																																																																																																																																																																																																																																																																																																																														More TSRMLS_FETCH work
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.146
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/07/30 09:16:44;  author: zeev;  state: Exp;  lines: +3 -4
																																																																																																																																																																																																																																																																																																																																																																																																														More TSRMLS_FETCH work
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.145
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/07/30 06:18:06;  author: zeev;  state: Exp;  lines: +3 -2
																																																																																																																																																																																																																																																																																																																																																																																																														More TSRMLS_FETCH work, and a bit of cleanup
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.144
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/07/28 11:36:17;  author: zeev;  state: Exp;  lines: +1 -2
																																																																																																																																																																																																																																																																																																																																																																																																														Redesigned thread safety mechanism - nua nua
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.143
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/07/27 10:16:30;  author: zeev;  state: Exp;  lines: +10 -10
																																																																																																																																																																																																																																																																																																																																																																																																														- Get rid of ELS_*(), and use TSRMLS_*() instead.
																																																																																																																																																																																																																																																																																																																																																																																																														- Move to the new ts_allocate_id() API
																																																																																																																																																																																																																																																																																																																																																																																																														This patch is *bound* to break some files, as I must have had typos somewhere.
																																																																																																																																																																																																																																																																																																																																																																																																														If you use any uncommon extension, please try to build it...
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.142
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/06/19 15:21:28;  author: sbergmann;  state: Exp;  lines: +12 -12
																																																																																																																																																																																																																																																																																																																																																																																																														Finish phpinfo() HTML 4.01 tweaking.
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.141
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/06/15 18:34:09;  author: sbergmann;  state: Exp;  lines: +38 -40
																																																																																																																																																																																																																																																																																																																																																																																																														Make output of phpinfo() compliant with HTML 4.01.
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.140
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/06/06 13:05:51;  author: rasmus;  state: Exp;  lines: +27 -13
																																																																																																																																																																																																																																																																																																																																																																																																														Fix folding and clean up some extensions
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.139
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/06/05 13:12:04;  author: rasmus;  state: Exp;  lines: +2 -1
																																																																																																																																																																																																																																																																																																																																																																																																														vim-6 does folding - clean up a bunch of missing folding tags plus
																																																																																																																																																																																																																																																																																																																																																																																																														some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.138
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/05/20 01:31:53;  author: sniper;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																														This looks better.
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.137
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/05/11 13:34:49;  author: derick;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																														branches:  1.137.2;
																																																																																																																																																																																																																																																																																																																																																																																																														Tabs please...
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.136
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/05/11 13:32:10;  author: sbergmann;  state: Exp;  lines: +3 -1
																																																																																																																																																																																																																																																																																																																																																																																																														Fix for bug #10815.
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.135
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/05/06 15:20:56;  author: sniper;  state: Exp;  lines: +14 -14
																																																																																																																																																																																																																																																																																																																																																																																																														Fix bug: #10323. Every value outputted is now escaped.
																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.134
																																																																																																																																																																																																																																																																																																																																																																																																														date: 2001/04/22 01:09:13;  author: ssb;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																														* expanded the following constants and made them available in PHP:
																																																																																																																																																																																																																																																																																																																																																																																																														  DEFAULT_INCLUDE_PATH
																																																																																																																																																																																																																																																																																																																																																																																																															  PEAR_INSTALL_DIR
																																																																																																																																																																																																																																																																																																																																																																																																																  PHP_EXTENSION_DIR
																																																																																																																																																																																																																																																																																																																																																																																																																	  PHP_BINDIR
																																																																																																																																																																																																																																																																																																																																																																																																																		  PHP_LIBDIR
																																																																																																																																																																																																																																																																																																																																																																																																																			  PHP_DATADIR
																																																																																																																																																																																																																																																																																																																																																																																																																				  PHP_SYSCONFDIR
																																																																																																																																																																																																																																																																																																																																																																																																																					  PHP_LOCALSTATEDIR
																																																																																																																																																																																																																																																																																																																																																																																																																						  PHP_CONFIG_FILE_PATH
																																																																																																																																																																																																																																																																																																																																																																																																																							* no longer generating pear/PEAR.php
																																																																																																																																																																																																																																																																																																																																																																																																																							* fixed some tests
																																																																																																																																																																																																																																																																																																																																																																																																																							* some more installer work
																																																																																																																																																																																																																																																																																																																																																																																																																							----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																							revision 1.133
																																																																																																																																																																																																																																																																																																																																																																																																																							date: 2001/04/17 17:06:06;  author: wez;  state: Exp;  lines: +6 -1
																																																																																																																																																																																																																																																																																																																																																																																																																							Changes for streams.  Added temporary fopenstream function to PHP so that
																																																																																																																																																																																																																																																																																																																																																																																																																							the streams can be tested.
																																																																																																																																																																																																																																																																																																																																																																																																																							----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																							revision 1.132
																																																																																																																																																																																																																																																																																																																																																																																																																							date: 2001/03/04 22:03:23;  author: zeev;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																							I don't know German, but I imagine that was the problem :)
																																																																																																																																																																																																																																																																																																																																																																																																																							----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																							revision 1.131
																																																																																																																																																																																																																																																																																																																																																																																																																							date: 2001/03/04 15:49:38;  author: zeev;  state: Exp;  lines: +7 -8
																																																																																																																																																																																																																																																																																																																																																																																																																							Fix phpinfo() bug that crept in
																																																																																																																																																																																																																																																																																																																																																																																																																							----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																							revision 1.130
																																																																																																																																																																																																																																																																																																																																																																																																																							date: 2001/03/04 02:41:27;  author: fmk;  state: Exp;  lines: +9 -15
																																																																																																																																																																																																																																																																																																																																																																																																																							Changed code layout to remove PHP warning when running php as a CGI.
																																																																																																																																																																																																																																																																																																																																																																																																																							----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																							revision 1.129
																																																																																																																																																																																																																																																																																																																																																																																																																							date: 2001/02/26 06:07:17;  author: andi;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																							- Fix copyright notices with 2001
																																																																																																																																																																																																																																																																																																																																																																																																																							----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																							revision 1.128
																																																																																																																																																																																																																																																																																																																																																																																																																							date: 2001/01/02 22:49:26;  author: zeev;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																																							Many patches.  I hope I remember them all:

																																																																																																																																																																																																																																																																																																																																																																																																																							- Make sapi_module available to external modules (PHPAPI)
																																																																																																																																																																																																																																																																																																																																																																																																																							- Make the php.ini path reported in phpinfo() always point to
																																																																																																																																																																																																																																																																																																																																																																																																																							  real full path of the php.ini file
																																																																																																																																																																																																																																																																																																																																																																																																																								- Optimized the ISAPI module not to read unnecessary server
																																																																																																																																																																																																																																																																																																																																																																																																																								  variables and read necessary variables at most once.
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.127
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/12/27 15:43:05;  author: zeev;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																									- Make the INI mechanism thread safe (fix necessary API changes from Zend)
																																																																																																																																																																																																																																																																																																																																																																																																																									- Make the Win32 non-TS configuration build again
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.126
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/12/22 12:57:08;  author: zeev;  state: Exp;  lines: +2 -3
																																																																																																																																																																																																																																																																																																																																																																																																																									Heads up people!

																																																																																																																																																																																																																																																																																																																																																																																																																									Updated the get_current_key() API - the relevant authors, please take
																																																																																																																																																																																																																																																																																																																																																																																																																									a look at the updated code and make sure it's ok...
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.125
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/12/19 22:59:14;  author: zeev;  state: Exp;  lines: +2 -1
																																																																																																																																																																																																																																																																																																																																																																																																																									Add the QA team to the credits
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.124
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/11/20 10:05:57;  author: hholzgra;  state: Exp;  lines: +1 -146
																																																																																																																																																																																																																																																																																																																																																																																																																									first step towards auto-generated credits
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.123
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/11/19 19:18:12;  author: hholzgra;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																									typo fix (copy/paste bug?)
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.122
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/11/11 18:38:26;  author: sas;  state: Exp;  lines: +7 -6
																																																																																																																																																																																																																																																																																																																																																																																																																									Add Apache 2.0 sapi module and sort alphabetically.
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.121
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/11/06 22:53:11;  author: derick;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																									- Added myself to the credits...
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.120
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/11/05 23:34:49;  author: jdonagher;  state: Exp;  lines: +25 -5
																																																																																																																																																																																																																																																																																																																																																																																																																									Bring phpcredits() up to date
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.119
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/11/02 19:07:15;  author: neotron;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																									Added Caudium to credit line.
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.118
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/10/31 17:21:52;  author: hholzgra;  state: Exp;  lines: +4 -4
																																																																																																																																																																																																																																																																																																																																																																																																																									generalization of image handling in phpinfo
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.117
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/10/29 11:38:24;  author: zeev;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																									Initial steps to move the INI mechanism to the Zend engine
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.116
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/10/11 13:51:32;  author: hholzgra;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																																									proto typo fixes
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.115
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/10/11 11:40:29;  author: hholzgra;  state: Exp;  lines: +10 -1
																																																																																																																																																																																																																																																																																																																																																																																																																									added missing protos
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.114
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/09/30 16:12:54;  author: andi;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																									- Cleanup some output functions
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.113
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/08/27 22:46:40;  author: rasmus;  state: Exp;  lines: +17 -20
																																																																																																																																																																																																																																																																																																																																																																																																																									Some minor cleanup to make W3C's tidy validator happy
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.112
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/08/27 19:42:45;  author: ssb;  state: Exp;  lines: +35 -19
																																																																																																																																																																																																																																																																																																																																																																																																																									@Added php_uname() function (Stig)
																																																																																																																																																																																																																																																																																																																																																																																																																									Added php_uname() function.
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.111
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/08/26 12:53:13;  author: rubys;  state: Exp;  lines: +2 -1
																																																																																																																																																																																																																																																																																																																																																																																																																									Add ***EXPERIMENTAL*** Zend OO Extension support for Microsoft.Net
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.110
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/08/21 09:50:52;  author: sas;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																									Cleaning up some mess
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.109
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/08/20 14:43:56;  author: sas;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																									Fix numerus of SAPI Modules title
																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.108
																																																																																																																																																																																																																																																																																																																																																																																																																									date: 2000/07/26 05:41:38;  author: sterling;  state: Exp;  lines: +2 -1
																																																																																																																																																																																																																																																																																																																																																																																																																									* EXTENSIONS -- update status on CURL & SWF
																																																																																																																																																																																																																																																																																																																																																																																																																									* NEWS --
																																																																																																																																																																																																																																																																																																																																																																																																																									  1.  Change wording for the ibase and sybase DB announcement.
																																																																																																																																																																																																																																																																																																																																																																																																																										  2.  Remove second pfpro announcement, if pfpro is being released with 4.0.2
																																																																																																																																																																																																																																																																																																																																																																																																																											  entries about new features before 4.0.2 shouldn't be in there.
																																																																																																																																																																																																																																																																																																																																																																																																																												  3.  Joey, that entry just doesn't seem incredibly relevant to the NEWS file,
																																																																																																																																																																																																																																																																																																																																																																																																																													  I'll backport it if you want (or add a new entry).
																																																																																																																																																																																																																																																																																																																																																																																																																														* ext/standard/info.c -- Add a CREDIT_LINE() for CURL.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.107
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/07/25 10:54:07;  author: stas;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																																														Report configuration path that is really used, not that is compiled in
																																																																																																																																																																																																																																																																																																																																																																																																																														# it does matter when using -c option
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.106
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/07/24 01:39:49;  author: david;  state: Exp;  lines: +3 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.
																																																																																																																																																																																																																																																																																																																																																																																																																														Added a few RCS $Id$ tags.

																																																																																																																																																																																																																																																																																																																																																																																																																														# Note: I have avoided changing any .h files if the corresponding .c file
																																																																																																																																																																																																																																																																																																																																																																																																																														# had not already been changed as I am not sure if there are any legal
																																																																																																																																																																																																																																																																																																																																																																																																																														# issues here. So some extensions still have PHP 3 headers.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.105
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/07/08 19:31:16;  author: eschmid;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Uncomplete proto.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.104
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/06/26 18:05:49;  author: andrei;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														Separate plain name returned by php_sapi_module() and pretty name
																																																																																																																																																																																																																																																																																																																																																																																																																														used for output.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.103
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/06/26 14:55:38;  author: kk;  state: Exp;  lines: +3 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														Corrected a syntax error: Macro requires braces.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.102
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/06/26 14:43:37;  author: kk;  state: Exp;  lines: +12 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														Added function php_sapi_name() as written by Stefan Livieratos.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.101
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/06/17 07:08:53;  author: hholzgra;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														changed default cell alignment to "left" (see bug id #5048)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.100
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/06/16 18:23:57;  author: hholzgra;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														C++ // comments are evil ...
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.99
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/06/09 01:50:44;  author: zeev;  state: Exp;  lines: +9 -7
																																																																																																																																																																																																																																																																																																																																																																																																																														Move back everything to where it belongs...
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.98
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/06/06 17:26:15;  author: hholzgra;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														added missing '/' to closing <center> tag (BUG ID #4416)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.97
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/06/05 19:47:44;  author: andi;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.96
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/06/03 03:05:29;  author: zeev;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														- Make the INI entries sorted in phpinfo()
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.95
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/05/27 00:24:03;  author: zeev;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Add Sam Ruby
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.94
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/05/25 11:01:31;  author: kk;  state: Exp;  lines: +2 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														- Added credits.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.93
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/05/19 08:28:53;  author: zeev;  state: Exp;  lines: +6 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Minor output mods
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.92
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/05/18 15:34:35;  author: zeev;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														Update the license with the new clause 6
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.91
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/05/12 20:49:26;  author: sterling;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														Add Meself for LibSWF.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.90
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/05/12 20:11:14;  author: jah;  state: Exp;  lines: +3 -3

																																																																																																																																																																																																																																																																																																																																																																																																																														# Correct spelling, adding Andrew because half the code in that module is
																																																																																																																																																																																																																																																																																																																																																																																																																														# his, removing myself from Informix because I don't think my influence to
																																																																																																																																																																																																																																																																																																																																																																																																																														# that module was big enough worth mentioning, adding myself to GD because
																																																																																																																																																																																																																																																																																																																																																																																																																														# I think T1lib is worth mentioning. BTW, who wrote the TTF extension? I think
																																																																																																																																																																																																																																																																																																																																																																																																																														# he is missing credits here.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.89
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/05/04 10:38:14;  author: sas;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Change reentrancy API to always use the php prefix.

																																																																																																																																																																																																																																																																																																																																																																																																																														Check for the declaration of reentrant functions, so that we can use
																																																																																																																																																																																																																																																																																																																																																																																																																														them in non-ZTS mode on all platforms.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.88
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/27 18:37:02;  author: zeev;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														More error handling work (still completely disabled)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.87
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/21 16:20:11;  author: thies;  state: Exp;  lines: +6 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														add VDIR info
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.86
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/19 23:46:26;  author: zeev;  state: Exp;  lines: +2 -5
																																																																																																																																																																																																																																																																																																																																																																																																																														Fix Win32 compilation.  Hillarious April 1st joke!
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.85
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/19 23:17:02;  author: cmv;  state: Exp;  lines: +17 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														A little easter egg for April 1st ... :)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.84
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/19 12:43:54;  author: zeev;  state: Exp;  lines: +6 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														phpcredits() update.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.83
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/17 18:57:40;  author: eschmid;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Have forgotten myself.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.82
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/14 21:12:21;  author: eschmid;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Small corrections.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.81
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/14 18:22:43;  author: zeev;  state: Exp;  lines: +5 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Add the documentation team to the credits page
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.80
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/10 20:21:01;  author: zeev;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														Object overloading API changed slightly (llist is now a pointer)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.79
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/07 16:41:19;  author: cmv;  state: Exp;  lines: +11 -10
																																																																																																																																																																																																																																																																																																																																																																																																																														more prettiness
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.78
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/07 15:30:47;  author: zeev;  state: Exp;  lines: +8 -6
																																																																																																																																																																																																																																																																																																																																																																																																																														Unify
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.77
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/06 22:54:33;  author: andi;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														- ZEND_DEBUG is always defined
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.76
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/05 22:30:19;  author: cmv;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														phpinfo() prettying

																																																																																																																																																																																																																																																																																																																																																																																																																														I will get to the rest of the functions later tonight or tomorrow
																																																																																																																																																																																																																																																																																																																																																																																																																														(i.e. from hyperwave to snmp)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.75
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/05 21:03:30;  author: cmv;  state: Exp;  lines: +5 -3
																																																																																																																																																																																																																																																																																																																																																																																																																														finally (thanks Andreas)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.74
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/05 21:00:35;  author: cmv;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																																														still cant get this
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.73
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/05 20:48:46;  author: cmv;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														phpinfo() prettying
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.72
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/05 20:29:20;  author: cmv;  state: Exp;  lines: +5 -3
																																																																																																																																																																																																																																																																																																																																																																																																																														fixed the segfault problem (probably not the prettiest way, but)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.71
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/04/05 20:17:02;  author: cmv;  state: Exp;  lines: +132 -62
																																																																																																																																																																																																																																																																																																																																																																																																																														Prettying up the output of phpinfo().  Someone has to tell me how
																																																																																																																																																																																																																																																																																																																																																																																																																														to get a new .gif logo in there, and why the ZEND_DEBUG output is
																																																																																																																																																																																																																																																																																																																																																																																																																														causing seg faults.

																																																																																																																																																																																																																																																																																																																																																																																																																														I also need to go through all the modules and fix up the output they
																																																																																																																																																																																																																																																																																																																																																																																																																														create.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.70
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/03/16 02:18:24;  author: thies;  state: Exp;  lines: +2 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														*** empty log message ***
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.69
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/26 03:20:54;  author: zeev;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														- Convert 'PHP3' to 'PHP'
																																																																																																																																																																																																																																																																																																																																																																																																																														- Avoid declaring crypt() related salt types twice
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.68
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/24 08:07:29;  author: eschmid;  state: Exp;  lines: +0 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														More protos.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.67
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/21 14:50:41;  author: chagenbu;  state: Exp;  lines: +2 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														being accountable for the imap and mcal work that I've done (and adding an
																																																																																																																																																																																																																																																																																																																																																																																																																														MCAL credits line)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.66
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/21 14:35:28;  author: askalski;  state: Exp;  lines: +2 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														added myself to the FTP/IMAP credits
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.65
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/19 23:41:21;  author: zeev;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														the pipe is breaking all the time
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.64
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/19 20:12:26;  author: zeev;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														Worked on beautifying rfc1867.c a bit
																																																																																																																																																																																																																																																																																																																																																																																																																														@- Introduced $HTTP_POST_FILES[], that contains information about files uploaded
																																																																																																																																																																																																																																																																																																																																																																																																																														@  through HTTP upload (Zeev)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.63
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/18 17:59:44;  author: zeev;  state: Exp;  lines: +35 -9
																																																																																																																																																																																																																																																																																																																																																																																																																														- Fix some issues with the ISAPI module, made it friendlier to non Win32 platforms
																																																																																																																																																																																																																																																																																																																																																																																																																														- Added .reg file for PWS setup
																																																																																																																																																																																																																																																																																																																																																																																																																														- Reordered some stuff in phpinfo()
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.62
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/11 15:59:29;  author: zeev;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																																														Fine tune Andi's patch
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.61
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/10 21:53:56;  author: andi;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																																														- Get rid of some more evil MSVC5's and switch standard/ to use PHP_WIN32
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.60
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/05 22:58:59;  author: zeev;  state: Exp;  lines: +56 -84
																																																																																																																																																																																																																																																																																																																																																																																																																														Standardize
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.59
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/05 15:16:11;  author: zeev;  state: Exp;  lines: +0 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														Cleanup patches
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.58
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/02/02 14:15:33;  author: andrei;  state: Exp;  lines: +2 -3
																																																																																																																																																																																																																																																																																																																																																																																																																														Some rearranging.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.57
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/01/09 18:32:13;  author: zeev;  state: Exp;  lines: +6 -3
																																																																																																																																																																																																																																																																																																																																																																																																																														@- Fixed a possible crash in phpinfo() (Zeev)
																																																																																																																																																																																																																																																																																																																																																																																																																														phpinfo() now ensures that HTTP_*_VARS[] are actually arrays before it tries
																																																																																																																																																																																																																																																																																																																																																																																																																														to access them...
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.56
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 2000/01/01 01:31:52;  author: sas;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Happy Y2K patch! Happy new year (or the new millennium, depending on whether
																																																																																																																																																																																																																																																																																																																																																																																																																														you start counting at 0 or 1).
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.55
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/21 20:35:43;  author: zeev;  state: Exp;  lines: +12 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														@- Fixed a bug in ODBC error reporting (Zeev)
																																																																																																																																																																																																																																																																																																																																																																																																																														@- Added PHP_Logo_GUID() and Zend_Logo_GUID() functions, that return the GUIDs
																																																																																																																																																																																																																																																																																																																																																																																																																														@  of the PHP and Zend logos used in phpinfo() (Zeev)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.54
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/20 23:09:49;  author: sas;  state: Exp;  lines: +2 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Use sapi_module_struct to contain SAPI module name
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.53
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/20 15:38:44;  author: zeev;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Make the Win32 tree compile again
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.52
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/20 07:12:27;  author: sas;  state: Exp;  lines: +2 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														Add information about chosen SAPI module to phpinfo()
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.51
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/18 22:35:27;  author: zeev;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																														- The tree compiles again
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.50
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/18 04:01:14;  author: zeev;  state: Exp;  lines: +7 -7
																																																																																																																																																																																																																																																																																																																																																																																																																														More php3_ annihilation
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.49
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/14 03:48:46;  author: thies;  state: Exp;  lines: +12 -8
																																																																																																																																																																																																																																																																																																																																																																																																																														use _ex-API
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.48
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/07 02:49:03;  author: evan;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														Mention CyberCash.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.47
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/03 20:08:24;  author: rubys;  state: Exp;  lines: +2 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														windows build errors
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.46
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/03 17:10:18;  author: neotron;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														Added credit notes for Roxen SAPI module
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.45
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/12/03 13:31:41;  author: ssb;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Add configure command to phpinfo() output (Stig)
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.44
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/11/29 15:36:24;  author: rubys;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														Initial alpha-level of sapi/servlet.  See README for details.
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.43
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/11/24 17:56:31;  author: sas;  state: Exp;  lines: +0 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														Killing some unused variable warnings
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.42
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/11/22 19:10:14;  author: fmk;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														add MS SQL module to credit info
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.41
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/11/18 03:03:24;  author: rubys;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														arg!  alphabetize correctly!
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.40
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/11/18 02:40:52;  author: rubys;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																														add Java module to credit info
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.39
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/10/20 16:16:58;  author: sas;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														(_display_module_info): Add anchor for module names
																																																																																																																																																																																																																																																																																																																																																																																																																														----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																														revision 1.38
																																																																																																																																																																																																																																																																																																																																																																																																																														date: 1999/10/04 15:18:19;  author: sas;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																														        * archive-based convenience libraries completely replaced
																																																																																																																																																																																																																																																																																																																																																																																																																																		          with libtool components

																																																																																																																																																																																																																																																																																																																																																																																																																																							        * SAPI targets can enable thread-safe mode and define
																																																																																																																																																																																																																																																																																																																																																																																																																																											          shared/static/program build target

																																																																																																																																																																																																																																																																																																																																																																																																																																																        * all configure scripts use the same config.cache

																																																																																																																																																																																																																																																																																																																																																																																																																																																				        * phplibdir is $(top_builddir)/modules to avoid
																																																																																																																																																																																																																																																																																																																																																																																																																																																								          permission problems

																																																																																																																																																																																																																																																																																																																																																																																																																																																													        * sapi/*/Makefile.inc are gone

																																																																																																																																																																																																																																																																																																																																																																																																																																																																	        * runpath handling cleaned up

																																																																																																																																																																																																																																																																																																																																																																																																																																																																					        * top-level Makefile.in obsoleted through Makefile.am

																																																																																																																																																																																																																																																																																																																																																																																																																																																																									        * --enable-versioning uses libtool's cleaner and more
																																																																																																																																																																																																																																																																																																																																																																																																																																																																													          portable -export-symbols feature
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																		----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																		revision 1.37
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																		date: 1999/10/01 14:54:55;  author: andrei;  state: Exp;  lines: +4 -4
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																		rename.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																		----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																		revision 1.36
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																		date: 1999/09/25 15:41:51;  author: sas;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																		    Add entry for AOLserver.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.35
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/09/24 18:02:58;  author: thies;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				updated XML (only partly tested)
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.34
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/09/16 22:15:43;  author: zeev;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				Generalize SAPI a bit
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.33
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/09/13 01:11:41;  author: zeev;  state: Exp;  lines: +7 -1
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				Modified phpinfo() to show the contents of arrays in HTTP_*_VARS[]
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.32
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/09/13 00:35:03;  author: zeev;  state: Exp;  lines: +14 -2
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				Fix a buglet, and avoid crashing in phpinfo() (fixes an elusive legacy bug too)
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.31
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/09/11 16:32:08;  author: zeev;  state: Exp;  lines: +4 -4
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				Rename allow_builtin_links to expose_php
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.30
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/08/07 18:21:35;  author: zeev;  state: Exp;  lines: +18 -10
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				Built-in phpinfo() links are now turned off by default.  They can be
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				turned on using the allow_builtin_links INI directive
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.29
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/08/07 17:52:11;  author: zeev;  state: Exp;  lines: +18 -3
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				- Changed phpinfo() to list modules that have no info function
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.28
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/08/07 15:50:26;  author: sr;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				Corrected spelling.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.27
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/08/02 19:16:50;  author: zeev;  state: Exp;  lines: +38 -38
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				Removed '3' from key functions in PHP (maintained compatibility through
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				php3_compat.h)
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.26
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/19 20:27:49;  author: andrey;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				Updated status
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.25
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/19 18:37:42;  author: zeev;  state: Exp;  lines: +10 -10
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				*** empty log message ***
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.24
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/19 14:07:10;  author: sas;  state: Exp;  lines: +1 -0
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				update
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.23
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/19 13:35:13;  author: andrey;  state: Exp;  lines: +3 -1
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				More credits.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.22
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/17 20:38:14;  author: andrey;  state: Exp;  lines: +2 -1
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				Update credits a bit.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				"Overall Work" line should probably be extended.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.21
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/17 19:22:27;  author: zeev;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				*** empty log message ***
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.20
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/17 19:17:42;  author: zeev;  state: Exp;  lines: +115 -60
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				I was sure I committed these already.  Weird
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.19
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/17 17:33:42;  author: zeev;  state: Exp;  lines: +44 -2
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				*** empty log message ***
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.18
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/16 13:12:56;  author: zeev;  state: Exp;  lines: +9 -20
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				License update
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.17
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/14 23:34:30;  author: zeev;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				php3.ini -> php.ini
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.16
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/14 23:33:00;  author: zeev;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				* Update logos
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				* Move from PreAlpha 1 to Beta 1.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.15
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/07/14 16:02:10;  author: andi;  state: Exp;  lines: +129 -151
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				- Add a bitwise flag to phpinfo()
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				- Import a draft of the new PHP license
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.14
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/05/20 12:06:45;  author: andi;  state: Exp;  lines: +6 -0
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				- Small fixes
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.13
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/05/16 11:19:26;  author: sas;  state: Exp;  lines: +2 -2
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				conv_proto *.[ch]
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.12
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/05/11 00:43:46;  author: zeev;  state: Exp;  lines: +13 -17
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				beatify Apache's info func
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				revision 1.11
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				date: 1999/05/09 08:48:01;  author: zeev;  state: Exp;  lines: +100 -159
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				* Finalizing the PHP version of SAPI.  Support POST and cookies among other things.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				* Fully implement ISAPI support - POST and cookies among other things.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				* Almost completely rewrote phpinfo().  Allow modules to easily display their
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				  information in phpinfo() without modifying phpinfo() itself (prototype for
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																					  the module info function was changed, thus the large amount of updated module
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																						  files).
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							* Initial extended SAPI support for Apache, completely untested.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							* CGI now uses SAPI fully as well.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							revision 1.10
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							date: 1999/05/06 18:09:50;  author: zeev;  state: Exp;  lines: +3 -0
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							* Optimize _php3_parse_gpc_data() and clean it up, plus fix a couple of Zend related memory leaks in it
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							revision 1.9
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							date: 1999/05/02 19:54:02;  author: zeev;  state: Exp;  lines: +7 -2
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							Move path_info to the SAPI structure
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							revision 1.8
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							date: 1999/04/26 17:26:36;  author: zeev;  state: Exp;  lines: +19 -10
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							* Get the Apache module to compile again
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							* Get rid of php3_rqst, use SG(server_context) instead (there's still Apache-specific code,
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																							  but it nuked a global)
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																								----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																								revision 1.7
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																								date: 1999/04/26 14:00:49;  author: zeev;  state: Exp;  lines: +1 -3
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																								* Plenty of thread safety and Win32 work.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																								* Changed PHP4 to compile as a DLL, both ISAPI and the the CGI run with the same DLL.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																								* Switched to using the DLL runtime library under Win32.  PHP will NOT work if
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																								  compiled against the static library!
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									* Removed yesterday's php4libts project (with php4dllts, it's obsolete).

																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									This *does* affect thread-unsafe Windows as well - the thread unsafe CGI is also
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									dependant on the thread-unsafe DLL.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.6
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									date: 1999/04/24 00:11:56;  author: zeev;  state: Exp;  lines: +8 -12
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									A lot of cleanups...  Removed old thread-safe code and other redundant code and files
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.5
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									date: 1999/04/23 20:05:59;  author: zeev;  state: Exp;  lines: +1 -3
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									Remove tls.[ch]
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.4
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									date: 1999/04/22 00:25:57;  author: ssb;  state: Exp;  lines: +1 -1
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									moved fdf, hyperwave, informix and some smaller files
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.3
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									date: 1999/04/18 15:58:26;  author: zeev;  state: Exp;  lines: +3 -3
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									Make Win32 happy with the recent changes.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.2
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									date: 1999/04/17 01:52:58;  author: ssb;  state: Exp;  lines: +6 -2
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									make sure the images on the phpinfo() page point to PHP-enabled pages
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									----------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									revision 1.1
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									date: 1999/04/17 00:37:06;  author: ssb;  state: Exp;
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									First commit of re-structuring phase one.  We have started using automake in
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									sub-directories and started to move extension code into ext/<name>.  For now,
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									I have moved the "standard" extension (which is quite a mix of everything
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									right now) and the GD extension into their own subdirs in ext/.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									The configure script now also runs configure in the libzend directory
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									automatically and makes sure php4 and libzend use the same config.cache file.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									To avoid running configure in libzend, use the --no-recursion option.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									"make" in php4 also builds libzend now.
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									The Apache module doesn't compile right now, but a fix for that is
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									coming up.

																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									CVS: ----------------------------------------------------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									CVS:
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									CVS: Committing in .
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									CVS:
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									CVS: Modified Files:
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									CVS:  ext/standard/info.c
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									CVS: ----------------------------------------------------------------------
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																									~                                               olor is readable on it)

someone should change all this to make use of CSS as we already have
a CSS block in there, but i do not know enough about it

oh, btw: changed all the ugly uses of \" in tag attriutes to '
as i was already on it ;)
2002-08-08 13:31:49 +00:00
Sascha Schumann
cd64450cd7 Touch file 2002-08-06 00:07:05 +00:00
Marcus Boerger
55f735a587 Correct carset if iconv is active
#Same solution would work for mbstring - but that must wait
2002-08-05 19:00:09 +00:00
Marcus Boerger
fd26a5c0a9 -New function ob_list_handlers
@- Added ob_list_handlers() which returns an array of all active output
@  handlers. (marcus)
2002-08-05 03:09:42 +00:00
Shane Caraveo
7645343c4a need to export var_replace and var_destroy for win32 2002-08-04 23:45:38 +00:00
Marcus Boerger
fa175d6fa2 -Send charset US-ASCII or ini setting default_charset.
#After some discussion with Ilia Alshanetsky
#But perhaps we should have a look for a mbstring solution...
2002-08-04 22:49:48 +00:00
Georg Richter
06b5f1f546 ups.. :) 2002-08-04 18:59:16 +00:00
Georg Richter
83a09ac1f9 added meta tag (w3c compliance)
Thx to Ilia Alshanetsky (ilia@prohost.org)
2002-08-04 18:57:02 +00:00
James E. Flemer
9eb1213206 Close pipes to avoid deadlock.
Submitted By: Melvyn Sopacua <msopacua@idg.nl>
2002-08-03 14:54:30 +00:00
Brad LaFountain
c90764d753 one last fix for array_shift 2002-08-03 00:40:46 +00:00
James E. Flemer
3a8d66a021 Fix typo in #if. Bug #17538. 2002-08-02 14:35:24 +00:00
Hartmut Holzgraefe
e5fa36eee4 added money_format() function
this is similar to C-libs strfmon(), using the same format string
semantics but a different function prototype, so i decided to
give it a more speaking name similar to number_format()
2002-08-02 10:08:53 +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
Brad LaFountain
9b0553c390 array_pop wasnt setting next index 2002-08-01 17:34:31 +00:00
foobar
922b7596a2 That was not correct.. 2002-08-01 16:44:47 +00:00
foobar
6df2b90c05 Reset index when doing array_pop() 2002-08-01 16:39:52 +00:00
foobar
362fc4ee76 Add test for the index resetting. 2002-08-01 16:39:14 +00:00
Rasmus Lerdorf
b15651c95f Ugh 2002-08-01 15:51:56 +00:00
foobar
ababdff402 Added tests for array_shift/array_pop. 2002-08-01 12:33:02 +00:00
foobar
06b3dd122f Nuke compile warning. 2002-08-01 12:07:15 +00:00
foobar
9d62cd7d45 - Removed the DOS line endings
- Changed the '//' comment (this is C, not C++) to /* */
# Brad, use some editor which works..
2002-08-01 12:06:46 +00:00
Brad LaFountain
4f5bd6b7d4 made array_shift re-index like it did before previous fix 2002-08-01 04:38:11 +00:00
foobar
9fe39b9604 Reverted the patch..it breaks the original behaviour of at least array_shift. 2002-07-31 13:49:50 +00:00
Brad LaFountain
70fb744365 fixed bugs 16063 and 16068
increased preformance of array_pop and array_shift
2002-07-30 22:54:12 +00:00
Dan Kalowsky
18c0d30c58 Commiting Steph@php.net's patch to re-enable touch on Win32 machines 2002-07-30 20:24:13 +00:00
Rasmus Lerdorf
059f302596 Fix strtotime() "next" keyword handling. 2002-07-30 18:42:19 +00:00
Rasmus Lerdorf
d56bc7934d Fix for #18638 (str_rot13 bug) 2002-07-30 10:51:33 +00:00
Edin Kadribasic
a55c1228ed Fixed bug #14657 (patch by Steph Fox) 2002-07-29 13:13:50 +00:00
Derick Rethans
1630e1788f - Copy and paste error -> unify error messages 2002-07-28 19:29:28 +00:00
Stefan Esser
bffe4cf222 Added sha1, sha1_file functions. 2002-07-28 19:18:08 +00:00
Georg Richter
797f7736eb Bugfix: #18532
Fixed week number calculation in accordance with ISO 8601
2002-07-26 16:50:34 +00:00
Stefan Esser
02e6cd022a all functions based on php_stat are now safe mode aware... 2002-07-26 08:04:42 +00:00
Derick Rethans
b7cc9f7447 - Added parameter to print_r which returns the variable representation
instead of echoing it.
@- Added parameter to print_r which returns the variable representation
@  instead of echoing it. (Derick)
2002-07-25 11:22:20 +00:00
Yasuo Ohgaki
7b3fb771e4 is_object() returns FALSE if object is a "incomplete object".
Raise E_NOTICE, instead of E_ERROR, for setting/getting properties
to/from a "incomplete object".
2002-07-24 09:55:11 +00:00
jim winstead
e83a35d215 restore shane to list of members of php group (got lost somewhere along the way) 2002-07-23 23:46:54 +00:00
Jason Greene
a64eceef59 Switch streams socket abstraction to use a timeval structure instead of an
integer to allow subsecond timeouts.

This supports the previous behavior of fsockopen()
Fixes bug #16261
2002-07-22 18:46:26 +00:00
Jason Greene
9b68acb7f7 @Fixed infinite recursion crash bug in ticks (Jason)
Prevent reenterant calls to a user tick function by flagging the function
entry during call.

This prevents code like the following from infinitely recursing until a
crash occurs:
<?php

register_tick_function(a);

declare(ticks=1) {
	function a() {
		print "blah\n";
	}
	;
	;
	;
	;
}
?>
2002-07-16 14:14:22 +00:00
Sander Roobol
99b495b25d Fixed win32 build 2002-07-13 09:26:36 +00:00
foobar
f059932711 nuke unused variable warning 2002-07-13 07:10:59 +00:00
foobar
e3797ab76a Fixed bug: #16638. 2002-07-13 04:45:21 +00:00
foobar
2f8dc7a47c - Made the trim functions use same base function. (less code :)
- Renamed php_trim2 -> php_trim (not used anyplace else, yet)
- Made php_trim abit more usable for external use. (not necessary to use
  zvals with it anymore)
2002-07-13 04:13:43 +00:00
foobar
48634e4026 - Fixed compile (bug #18297) on such systems which define uchar. 2002-07-12 22:34:43 +00:00
foobar
c8f5edec93 Fixed bug: #16637, username/password needs to be urlencoded. 2002-07-11 02:35:45 +00:00
Jason Greene
d907b2d525 @Fixed socket_set_timeout on win32 (Jason, Edin, Jani) 2002-07-10 15:23:47 +00:00
Andi Gutmans
c28df01280 - Add TSRMLS_DC to prototype. 2002-07-08 18:44:05 +00:00
Andi Gutmans
b4146638f0 - Fix TSRMLS_* stuff 2002-07-08 18:29:54 +00:00
Derick Rethans
728f2de442 Unify error messages 2002-07-08 12:52:22 +00:00
Derick Rethans
bd356fd0b9 Unify error messages 2002-07-08 11:52:57 +00:00
Derick Rethans
fca0231206 - Add warning to is_*() functions if more than one argument was passed 2002-07-08 11:50:01 +00:00
Derick Rethans
392a452c80 Silence warning 2002-07-08 07:33:22 +00:00
Derick Rethans
cc920570fd Unify error messages 2002-07-08 07:32:59 +00:00
Derick Rethans
7faa669915 - Fix for bug #14580: Made key() binary safe 2002-07-08 07:02:55 +00:00
Sterling Hughes
a6d815fb7c fix win32 build 2002-07-07 21:51:25 +00:00
Sebastian Bergmann
72e7e4afd9 Fix warning. 2002-07-07 08:19:36 +00:00
Stig Bakken
c6ec881953 * fix segfault in case of odd version numbers 2002-07-05 01:00:05 +00:00
Stig Bakken
8b4a25ec13 (PHP version_compare) added "alpha" and "beta", make tests pass 2002-07-05 00:55:02 +00:00
Frank M. Kromann
fd348068f4 Adding missing prototype 2002-07-03 18:23:24 +00:00
Sascha Schumann
9c876ea01a Add sapi_header_op interface which supersedes the sapi_add_header and _ex
calls.

Revert the change to the sapi_add_header_ex interface.

Fix various bugs:

1.  header("HTTP/1.0 306 foo");
    header("Location: absolute-uri");

    did not work in combination with several SAPI modules, because
    http_status_line was never properly reset.  And thus, all SAPI
    modules which looked at http_status_line ignored the changed
    http_response_code.

2.  The CGI SAPI did not send out the HTTP status line at all, if
    http_status_line had not been set explicitly by calling
    header("HTTP/1.0 200 foo");
2002-07-03 10:42:31 +00:00
Derick Rethans
c73733c59a - Fix windows build
#- I could not test this, please try!
2002-07-03 06:45:01 +00:00
foobar
980d7a11a9 Fix the nasty crash. And Sterling..test next time before you commit? 2002-07-03 03:18:55 +00:00
Frank M. Kromann
8a7c339974 Add default arguments to new internal mail function. 2002-07-02 23:46:15 +00:00
Sterling Hughes
d4512030bb use access instead of manually determining file permissions.. 2002-07-02 21:02:34 +00:00
Derick Rethans
f7cab95a7d - Be nice to users and allow them to check if the mail was send 2002-07-02 14:22:22 +00:00
Derick Rethans
0d61ab3814 - Disable 5th parameter to mail in safemode
@- Disabled the fifth parameter to the mail function in safemode. (Derick)
2002-07-02 13:56:47 +00:00
Derick Rethans
7b7608d630 - Fix for bug #15547 (Patch by Justin Garrett <usjgarrett@byu.edu>) 2002-07-02 06:16:35 +00:00
Derick Rethans
d73eed9210 - No C++ comments 2002-07-01 18:52:30 +00:00
Sascha Schumann
71a603ea32 Fix some 8bit issues with IRCG nickname encoding and
Change the underlying interface of smart_str to accept unsigned char.
2002-06-29 18:46:49 +00:00
Derick Rethans
1bf9b3d736 - Fix for bug #17654 2002-06-29 15:39:41 +00:00
Thies C. Arntzen
5a0c283700 fix leak 2002-06-29 11:13:03 +00:00
Sander Roobol
609e134871 Update configure line in phpinfo() after re-running configure without
running make clean first, bug #18012.
2002-06-27 10:01:06 +00:00
Derick Rethans
ea303541f8 - And the SAPI too 2002-06-26 18:58:49 +00:00
Derick Rethans
3696bc781a - Update credits 2002-06-26 18:58:25 +00:00
Andi Gutmans
1f58a8f087 - No idea why this wasn't crashing before. 2002-06-26 07:36:01 +00:00
Marcus Boerger
43ec2dfa59 bits/channels for gif 2002-06-25 21:22:14 +00:00
Marcus Boerger
ba6498e4c5 missing return value 2002-06-24 22:00:22 +00:00
Marcus Boerger
cccc4e3c5a register IMAGETYPE_<xxx> constants in image.c as they are needed
there.
2002-06-24 19:36:26 +00:00
Marcus Boerger
48bdf08edb @GetImageSize now allways set fields unknown to 0 and new Imagetype
@iff. (Marcus)
2002-06-24 19:19:08 +00:00
Marcus Boerger
1f56d4ba08 -imagetype2mimetype renamed to image_type_to_mime_type 2002-06-23 00:43:11 +00:00
Marcus Boerger
d782c712ca -exif version
-missing constant (and notice)
-corrected error messages
2002-06-22 23:43:16 +00:00
Marcus Boerger
c8f1529d08 @GetImageSize now returns additional index 'MimeType' and new function
@imagetype2mimetype to convert php imagetypes to mime-types. (Marcus)
#the reason why i export php_imagetype2mimetype is that i use that for
#exif, too. Followup example will explain why.
2002-06-22 18:14:39 +00:00
Marcus Boerger
d4b1909afe ws fix 2002-06-22 17:09:28 +00:00
Derick Rethans
6869cb3f5a - Added a new parameter to the header() function which overrides the HTTP
response code.
@- Added a new parameter to the header() function which overrides the HTTP
@  response code. (Derick)
2002-06-21 09:31:21 +00:00
Sander Roobol
3d1612c2fb Made the API versions appear better on phpinfo(); 2002-06-19 13:24:01 +00:00
Stig Venaas
7853832234 Made array_unique() always keep the first occurrences of duplicates,
making the behavior easier to understand, and maybe more useful.
2002-06-18 19:37:59 +00:00
Jan Lehnardt
df226a54d9 - WS-fixes 2002-06-18 13:16:33 +00:00
Hartmut Holzgraefe
303852b42e - fixed bug in enclosure handling (was still hardcoded to '"' in one place)
- added possibility to pass empty enclosure if you really don't want one
2002-06-18 12:16:27 +00:00
Sander Roobol
ace4a23dfc Fixed stripslashes when magic_quotes_sybase is enabled, and add a test for
add- and stripslashes().
# this time without cvs messing up and aborting, hopefully :)
2002-06-18 11:51:06 +00:00
Sander Roobol
07975157eb Fix stripslashes when magic_quotes_sybase is enabled, and add a test for
add- and stripslashes().
2002-06-18 11:42:21 +00:00
Derick Rethans
ba5257a2ec - Fix for bug #16065 2002-06-18 11:09:21 +00:00
Edin Kadribasic
67689bd557 ZTS fix. 2002-06-18 00:14:52 +00:00
Edin Kadribasic
fb6bcda13b Check for +/- infinity in base_convert (bug #14807). 2002-06-18 00:04:33 +00:00
Andrei Zmievski
a347ed559b Applied fix for #17764.
@- Fixed a crash in ereg_replace() when backreference number was greater
@  than the number of subpatterns. (oliver@billix.franken.de)
2002-06-17 15:10:22 +00:00
Hartmut Holzgraefe
efdde5efe5 making printf/sprintf locale-aware without external dependencies 2002-06-17 11:50:25 +00:00
Hartmut Holzgraefe
00b667b61b fixed return types for ucwords/ucfirst when passed an empty string 2002-06-17 11:37:49 +00:00
Stefan Esser
984b48b009 Fixed Bug #17790
- link and symlink now check uid and open_base_dir for link and its target
2002-06-16 21:24:15 +00:00
Hartmut Holzgraefe
0170e42763 reverted patch depending on not yet commited work 2002-06-16 21:22:10 +00:00
Hartmut Holzgraefe
7686d43737 make sprinf() locale-aware (Bug# 12647) 2002-06-16 13:14:21 +00:00
Sebastian Bergmann
596859eb44 Remove unused local variables. 2002-06-14 05:42:08 +00:00
Stefan Esser
2eb859842b Fixed: possible bufferunderrun (worst case == invalid free bytes counter)
Fixed: isXXXX macros need (unsigned char) cast

Fixed: bug#17746 - control chars are now filtered within "to" and "subject" parameters
2002-06-13 18:54:45 +00:00
foobar
01dff4d97a - Fixed bug #17669. PG(magic_quotes_runtime) wasn't reset for each request. 2002-06-12 17:25:48 +00:00
Hartmut Holzgraefe
808dd7dd5f fix for bug #10616 -> mktime() with negative date offsets not working on MacOSX 2002-06-12 15:35:27 +00:00
Jason Greene
c6a36d585b @Impelemented timeout functionality, and fixed error handling of fsockopen() on win32
Also fixed error handling on unix (micropatch)

Closes Bug #14740
2002-06-11 03:55:28 +00:00
Jan Lehnardt
a8de8ec90c - whitespace fix 2002-06-10 16:34:25 +00:00
Harald Radi
8e19555608 fix the build 2002-06-10 12:21:58 +00:00
Markus Fischer
f9936a8459 - Fix proto. 2002-06-10 10:28:33 +00:00
Andrei Zmievski
7f4c12b006 Fix bug #7045: shuffle() now provides consistent distribution of values
in the array.
2002-06-10 02:28:32 +00:00
Andrei Zmievski
5f3a9ebf13 Make RAND_RANGE() an API macro. 2002-06-09 04:26:36 +00:00
Markus Fischer
0cd40c2808 - Since streams are always enabled, instead of just printing 'enabled' we tell
what streams are currently registered.
2002-06-08 10:25:44 +00:00
Rasmus Lerdorf
ca9c4270f8 Make sure len is defined here 2002-06-03 18:26:27 +00:00
Edin Kadribasic
e7ab5766d6 Fixed array_rand() on ZTS platforms.
@- Fixed array_rand() on thread-safe platforms such as Windows. (Edin)
2002-06-03 17:49:48 +00:00
Harald Radi
d3383bab2d added wez to the com extension 2002-05-31 10:06:19 +00:00
Stig Bakken
90efd3abe6 @Fix segfault in version_compare() (Stig) 2002-05-26 12:01:30 +00:00
Sander Roobol
b80c27f7ae Fix <head> and <body> tags in phpinfo() output (#17411) 2002-05-24 17:25:40 +00:00
Derick Rethans
de2c71e7cb - Added support for compressed SWF (Flash MX) files to getimagesize().
(Fixes feature request #17272).
@- Added support to getimagesize() for compressed Flash MX files. (Derick)
2002-05-23 21:48:27 +00:00
Andi Gutmans
fc059f5e40 - Fix typo 2002-05-23 14:28:14 +00:00
Wez Furlong
e202ad5c8b Add simple test case for proc_open 2002-05-23 10:46:06 +00:00
Wez Furlong
4fd00c9502 Fix (stupid) segfault. #17379 2002-05-23 10:17:07 +00:00
Derick Rethans
708f980389 - Fix unchecked return values with parameters to proc_open. (Fixes
bug #17375)
2002-05-23 07:52:03 +00:00
Derick Rethans
c37d2a97ac - Fix errormessage and whitespace 2002-05-23 07:08:25 +00:00
Yasuo Ohgaki
b768cf0322 Added 4th parameter to specify enclosure character. Patch by Dean Richard Benson <dean@vipersoft.co.uk>
Spit more meaningful error messages when delim and/or enclosure char is null.
2002-05-23 07:03:43 +00:00
Markus Fischer
720a890f84 - ZTS gotcha 2002-05-20 17:41:35 +00:00
Markus Fischer
96bf2d1deb - Add open_basedir check for all functions using php_stat() (filesize, stat,
etc), closes #11563.
2002-05-20 17:18:18 +00:00
Edin Kadribasic
544694255a Added glob() support for windows. 2002-05-19 14:32:24 +00:00
Markus Fischer
25a616d7aa - Fix portability issues with empty results on Linux and FreeBSD, add safe_mode
check and simplify code.
# Hartmut, what was the VCWD check for ?!
2002-05-18 13:31:31 +00:00
Cliff Woolley
34d471d22e Only the last cookie was getting set. (You can have
more than one Set-Cookie: header, as indicated by
http://wp.netscape.com/newsref/std/cookie_spec.html.)

PR: 16626
Submitted by: regina@hitel.net
2002-05-17 07:10:19 +00:00
Preston L. Bannister
1fdff888ce Remove leading "./" from include filenames as in PHP this defeats include_path. 2002-05-16 21:53:18 +00:00
Preston L. Bannister
6b2ab5f66d Adjust dirname() on Win32 to match CWD per drive semantics. 2002-05-16 16:04:45 +00:00
Rasmus Lerdorf
adf701a3ef Grr.. I keep leaving my debug in... 2002-05-16 14:42:22 +00:00
Rasmus Lerdorf
5d286e21ea Fix for #17271
@ Fix crash bug in stripslashes() when working in sybase mode (Rasmus)
2002-05-16 14:41:15 +00:00
foobar
2f12941fac - Made all is_*() functions to return only boolean values.
- Killed the "file not found" error for is_link(). (finally..)
2002-05-16 01:07:21 +00:00
Markus Fischer
9b86cff931 - Adjust for improved error messages from win32/sendmail.c 2002-05-14 20:43:48 +00:00
Rasmus Lerdorf
f81ec94ac0 Make sure newtime is never NULL 2002-05-13 18:11:27 +00:00
Zeev Suraski
1bfb3595a8 - Fix a buglet in printing of GPCSE arrays
- Remove indirect access
2002-05-13 17:43:04 +00:00
Andrei Zmievski
1668570e4d Changing email address. 2002-05-13 17:28:38 +00:00
Zeev Suraski
2260e1742d - Centralize html_puts() again
- Revolutionize phpinfo()'s speed
2002-05-13 08:46:24 +00:00
Rasmus Lerdorf
93af4bdfb7 Change safe-mode rule for rmdir() to match unlink() - allow is target
is opened by caller or in a directory owned by caller
@ Minor fix to rmdir() under safe-mode (Rasmus)
2002-05-12 15:59:42 +00:00
Sascha Schumann
feaa12a9bf Use string_len information 2002-05-12 14:50:54 +00:00
Sascha Schumann
a769454d79 reenable php_html_puts 2002-05-12 14:48:22 +00:00
Rasmus Lerdorf
465b2d54db Another safe-mode fix. parse_ini_file() did not check
@ safe-mode fix for parse_ini_file()  (Rasmus)
2002-05-11 19:19:49 +00:00
Rasmus Lerdorf
9cbcc9b822 show_source() safe-mode fix
@ show_source() was evading safe-mode - fixed (Rasmus)
2002-05-11 18:35:59 +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
Derick Rethans
f58ad95c00 - Add PHP_API_VERSION too 2002-05-09 11:56:52 +00:00
Derick Rethans
7b3ce60a23 - Show both API nos 2002-05-09 11:47:37 +00:00
Derick Rethans
31d1fac578 - Forgot one 2002-05-08 05:19:27 +00:00
Frank M. Kromann
c75e794ebe Kill a compiler warning on Win32 2002-05-08 03:56:43 +00:00
jim winstead
51e2ea5ed2 fix problem with mkdir() on freebsd 2002-05-06 17:31:22 +00:00
Wez Furlong
a03d09e2d9 Add support for remaining entities in HTML 4 for the UTF-8 encoding in
htmlentities/htmlspecial chars.
This is a fix for for #17008.
# I would *really* appreciate it if someone with a good eye could verify
# that all the entities are there and are correctly numbered; I've checked
# it three times, but it's best to be sure.
2002-05-05 23:06:39 +00:00
Stanislav Malyshev
b67bafefa5 Return right exit status 2002-05-05 17:14:12 +00:00
Thies C. Arntzen
5d177788ea touch 2002-05-05 16:40:20 +00:00
Thies C. Arntzen
23251ebd1a re-add accidentily nuked session_adapt_url() 2002-05-05 16:39:49 +00:00
Sascha Schumann
67d00f8c1d sync 2002-05-05 02:07:33 +00:00
Sascha Schumann
c8f884fac8 the output buffer is flushed during request shutdown before it
reaches our rshutdown, so it is safe to delete the contents of
the url rewriter variables here.
2002-05-05 02:07:16 +00:00
Sascha Schumann
d41773e8b6 update 2002-05-04 18:34:29 +00:00
Sascha Schumann
9743860d35 simplify handling of variables by maintaining two strings which
are simply appended instead of traversing the hash table on each
URL/form.

also fix an unconditional segfault in rshutdown due to efree'ing
a static char *.

remove remove_var, add reset_vars.  move the function declarations
into the right header file.
2002-05-04 18:33:13 +00:00
Sascha Schumann
ebfff2df7e ret set but unused 2002-05-04 18:11:36 +00:00
Sascha Schumann
74b09cbcf8 c set but unused 2002-05-04 17:41:51 +00:00
Sascha Schumann
34b899e2da inheader set but unused 2002-05-04 17:41:11 +00:00
Sascha Schumann
ea84524bc2 block_ended/opposite_target were set but never used 2002-05-04 17:38:45 +00:00
Sascha Schumann
a6c3ce15ae don't emit code for version 2002-05-04 17:36:58 +00:00
Sascha Schumann
1f09644ff7 Fix linkage of symbols 2002-05-04 17:26:45 +00:00
Sascha Schumann
9e91566179 entry_length was set but never used 2002-05-04 17:24:08 +00:00
Sascha Schumann
01c980980c update 2002-05-04 17:17:54 +00:00
Sascha Schumann
2438488c68 rval_temp was declared but never used 2002-05-04 17:17:43 +00:00
Sascha Schumann
140158734f redirected is set but never used 2002-05-04 17:16:28 +00:00
Sascha Schumann
62c54fca9f include url.h 2002-05-04 17:15:09 +00:00
Sascha Schumann
2a4dea6c18 include url.h to pull in declaration of php_url_encode 2002-05-04 17:14:56 +00:00
Sascha Schumann
4378214b80 Make this code work on compilers which don't consider the address
of a variable on the stack available at compile time.
2002-05-04 17:12:26 +00:00
Sascha Schumann
e919e7e526 unused var 2002-05-04 16:59:41 +00:00
Rui Hirokawa
fa1904b6e8 fixed a problem that ereg_replace() couldn't match with line stand/end marker. 2002-05-04 11:20:12 +00:00
Thies C. Arntzen
023a381323 forgot 2002-05-03 08:32:03 +00:00
Thies C. Arntzen
9712a4b3c8 @ - Added output_add_rewrite_var() and output_remove_rewrite_var() to inject
@   and remove variables from the URL-Rewriter. (thies)
i have also modified the session module to use this - so it doesn't
need to fiddle with the output-system any more
2002-05-03 08:00:41 +00:00
Frank M. Kromann
bd75b407cf Fixing wrong pointer 2002-05-02 17:36:00 +00:00
Derick Rethans
0c16e026b0 - Add Zend API No. to phpinofo() output 2002-05-02 12:33:03 +00:00
Derick Rethans
8fe3c0c5d4 - Fix String is not zero-terminated error in base64_decode 2002-05-01 20:11:09 +00:00
Stanislav Malyshev
f42bb6cfe4 Fix ZE1 build 2002-04-30 14:45:50 +00:00
Sascha Schumann
6f57419453 Touch file 2002-04-30 13:47:16 +00:00
Stanislav Malyshev
18805e8323 ZE2 compatibility fix 2002-04-30 11:30:07 +00:00
Stanislav Malyshev
3dd6217c0b ZE2 compatibility fixes 2002-04-30 11:29:28 +00:00
foobar
3b1ae7c62a revert last bogus change. There is bug in is_file() 2002-04-30 10:38:06 +00:00
Sebastian Bergmann
eacad68c68 Fix ZTS build. 2002-04-30 04:27:52 +00:00
Wez Furlong
501ed6ccb2 Make use of new flag so that we can buffer http headers when we know that
the stream is not intended to be used in require/include.
2002-04-30 00:30:00 +00:00
Wez Furlong
760573695c Implement user-space funtions to operate on stream contexts. 2002-04-30 00:28:24 +00:00
Wez Furlong
840ed90f2b Fix is_file test.
# Is there a good reason for having the actual test in an include file??
2002-04-30 00:26:49 +00:00
Stanislav Malyshev
11df2122df Add comments for the fix 2002-04-29 16:02:41 +00:00
Stanislav Malyshev
91a78e2974 Fix here too 2002-04-29 16:02:10 +00:00
Stanislav Malyshev
aa10ac9a64 Yet another serialization fix - for incomplete class 2002-04-29 15:44:30 +00:00
Sascha Schumann
71124226d5 Touch generated file
# is it really so hard to remember this?
2002-04-28 21:24:52 +00:00
Stanislav Malyshev
a57381e3bd Fix couple of nasty serializer bugs:
a) When array unserializer encounters less data than it expects (like:
a:1:{}) it crashes. I don't understand exactly why it does, but the fact
is it does. So now it should catch "}" and bail out.
b) When array/object data are serialized, the count is written by hash
count. However, it can be that in-loop check fails and less data than
expected will then be written into the array. Which, due to a), would
crash on unserialize. So now it will write empty entries in place of
entries it cannot serialize (the other choice would be make two passes on
the data, which I don't like).
2002-04-28 16:56:33 +00:00
Thies C. Arntzen
245708b0db timestamp 2002-04-28 11:46:58 +00:00
Thies C. Arntzen
42158ef7c8 revert session_set_userdata - diffent patch will come shortly 2002-04-28 11:45:45 +00:00
foobar
c1c8a4fcfa touch file. Please commit first the .re file and afterwards the .c source. Otherwise, timestamps will be broken. 2002-04-28 04:14:47 +00:00
Yasuo Ohgaki
de4a0ba58e Add test case for file_exist/is_file 2002-04-28 00:05:43 +00:00
Thies C. Arntzen
2dee392e5b part 2 of last commit 2002-04-27 14:08:07 +00:00
Thies C. Arntzen
eb105693b8 @ - added session_set_userdata() which enables you to specify one variable
@   that will be kept in the browser in addition to the session-id. This
@   only works when using trans-sid sessions (no cookie). (thies)
2002-04-27 14:07:52 +00:00
Yasuo Ohgaki
6cc8919dc4 Fixed bug #16861.
touch sets wrong atime or mtime when they are not specified.
touch silently failed when HAVE_UTIME is not defined.
(This needs more consideration. Which platform does not support it?)
# Derick, after HAVE_UTIME issue is resovled, this should be merged.
# or we can just merge 1st problem for now.
2002-04-26 23:46:51 +00:00
jim winstead
79d113ba50 update generated file 2002-04-25 22:12:56 +00:00
jim winstead
bc977dd195 Do not add redundant id attribute. It doesn't make the output any
more standards compliant.
2002-04-25 22:12:38 +00:00
Rui Hirokawa
860e675884 fixed directory access problem when direcory name is encoded in japanese Shift_JIS encoding. 2002-04-25 14:43:40 +00:00
Sascha Schumann
46527b3f5a Touch generated file to increase timestamp 2002-04-25 09:02:01 +00:00
Derick Rethans
8ffd089e02 - Fix for bug #16811 2002-04-25 06:43:11 +00:00
Derick Rethans
4a834dfa44 - Fix for bug 16810 (XHTML compliance) 2002-04-25 06:30:09 +00:00
Andrei Zmievski
5ff970ba7d Fix Bug #14795. 2002-04-24 15:23:43 +00:00
Andrei Zmievski
4fc01022e6 Fix unwanted type conversion in array_merge_recursive (Bug #14990). 2002-04-24 15:01:53 +00:00
Sascha Schumann
303a784822 remove unnecessary casts
# if you mind the bogus warnings, you can either switch the compiler
# or decrease the warning level
2002-04-22 20:42:01 +00:00
Harald Radi
b29604fefc fixes a warning when compiling under win32 2002-04-22 18:02:01 +00:00
Sascha Schumann
d30fc27e5a simplify and improve speed of smart_str_print_long.
also add a variant for unsigned numbers.
2002-04-21 01:17:49 +00:00
Wez Furlong
928bae9cf8 Make scheme part decoding rfc2396 compliant.
Change zlib:// and bzip2:// to compress.zlib:// and compress.bzip2://
Tidy up old socket/network code/comments.
2002-04-19 10:06:41 +00:00
Yasuo Ohgaki
fe6990cc6b Remove compiler warnings 2002-04-19 07:56:41 +00:00
Wez Furlong
b10b24d50c Always initialize wrappers, regardless of PG(allow_url_fopen).
Add is_url field to wrapper structure; the stream wrapper openers
will disallow opening is is_url && !PG(allow_url_fopen).
Add infrastructure for stat($url) and opendir($url).
Tidy up/centralize code that locates and instantiates wrappers for the
various operations.
Implement opendir for plain files.
Make the PHP opendir and dir functions use the streams implementations.
Add modelines for syntax highlighting the pear scripts in vim
2002-04-16 22:14:27 +00:00
Wez Furlong
4adb1e58eb Fix declarations (Thanks Sebastian) 2002-04-11 12:13:17 +00:00
Marcus Boerger
4407312d4f thread safe 2002-04-11 08:07:22 +00:00
Marcus Boerger
628e639c08 fix warning 2002-04-11 07:26:53 +00:00
Marcus Boerger
42dc682626 fix testproblem 2002-04-11 06:41:55 +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
foobar
e3cc458d25 - Revert that change. Added a warning about this. 2002-04-08 18:43:35 +00:00
foobar
77c058a06a There's really no point in allowing using the system regex library. 2002-04-08 07:47:17 +00:00
foobar
23a3cc71e3 Using system regex lib seems not to work quite well when compiled with Apache. 2002-04-08 06:45:52 +00:00
Hartmut Holzgraefe
954dbb2d35 fix and regression test for Bug #16473 2002-04-07 19:46:45 +00:00
Wez Furlong
1f2344104f fix for #16469 2002-04-07 10:56:30 +00:00
Zeev Suraski
385b233040 Fix gzip/bz2 builds for Windows 2002-04-05 11:51:43 +00:00
foobar
97ba30ba5c - OS X support for dynamically loaded extensions. (patch by Marko)
# NEWS entry coming up..
2002-04-04 00:24:34 +00:00
Wez Furlong
fea3b0a7f8 fix TS build 2002-04-03 13:47:21 +00:00
Wez Furlong
27d1f7db16 Tidy up win32 implementation of proc_open.
Respect safe_mode_exec_dir.
Implement proc_close and return process return code under win32.
2002-04-03 13:39:35 +00:00
Wez Furlong
a0f165a5cb main/streams.c 2002-04-02 16:46:33 +00:00
Derick Rethans
f71adad3cf - Whitespace 2002-04-02 06:41:23 +00:00
Kirill Maximov
33ed30fce8 (PHP quoted_printable_decode) Fixed CR/LF processing for Windows/OS2
@ Fixed CR/LF processing for Windows/OS2 in quoted_printable_decode (kir)
2002-04-01 17:03:01 +00:00
Derick Rethans
f4447a9cc1 - Fix for bug #14966 2002-04-01 09:19:57 +00:00
Stig Bakken
7f89d8c13a (PHP php_uname) display runtime uname rather than compile-time uname, added
an optional parameter to get single fields (like uname(1))
# Windows version is not tested, and I didn't know how to get
# `uname -n` on Windows, so it's hardcoded to "localhost" for now.
# Windows gurus feel free to fix. :-)
2002-03-29 10:19:23 +00:00
Wez Furlong
4361807185 add test for file_get_contents 2002-03-28 01:20:28 +00:00
Wez Furlong
2539cbc74c Phase 3 of OO wrapper cleanup
# What was phase 2?
2002-03-28 00:49:00 +00:00
Hartmut Holzgraefe
492c837272 fix for Bug #16314 2002-03-27 20:20:57 +00:00
Sander Roobol
9b6a8d2639 Fixed the array-tests. Broke the test up into various smaller tests.
Reduced the test data because it was unmanageable.
# I hope everything is ok :)
2002-03-26 18:17:38 +00:00
Sascha Schumann
fb048880aa outcomment default linking against pam due to no feedback
regarding its purpose
2002-03-26 11:05:18 +00:00
Sascha Schumann
5428e463bd If an argument (<tag val=argument..) was not quoted, leave it that way. 2002-03-26 10:23:33 +00:00
Markus Fischer
f521ae3f30 - Fix bug 11244 (patch by "Tal Peer" <hazgul99@hotmail.com>).
# Sorry for the delay :-)
2002-03-26 07:57:07 +00:00
Wez Furlong
5ee65bd8f5 Phase 1 of wrapper OO cleanup.
# Collecting underpants
2002-03-24 18:05:49 +00:00
Derick Rethans
1f9b519c55 - Remove read_uploaded_file 2002-03-23 23:03:04 +00:00
Hartmut Holzgraefe
e40ce9963e dl is now aware of modules compiled for php <4.1.0
which have a slightly different module_entry structure
2002-03-23 15:37:27 +00:00
Derick Rethans
e2f110d982 - Added read_uploaded_file (patch by Andrew Sitnikov <sitnikov@infonet.ee>) 2002-03-23 14:10:57 +00:00
Derick Rethans
25b42ae3b6 - Fix handling of zero'th argument for sprintf()'s argument swapping code
(Patch by Morten Poulsen <morten@afdelingp.dk>)
2002-03-22 09:09:18 +00:00
Hartmut Holzgraefe
10811cd0d8 getting rid of the warn_not_available alias 2002-03-22 01:10:31 +00:00
Markus Fischer
341af63328 - Use proper macros for php_stream_cast() return values (fixes #16211). 2002-03-21 22:05:40 +00:00
Hartmut Holzgraefe
b00d9a5b2c added fnmatch() and glob() functions
could someone please check if i got the virtual dir stuff right?
2002-03-21 19:18:13 +00:00
Wez Furlong
06f6e47e4c Require that wrappers use <protocol>://<path> to avoid
ambiguities when filenames have ':' characters.
This slightly breaks BC with the old style zlib: wrapper.
2002-03-21 17:02:50 +00:00
Andrei Zmievski
1cf188ae1b Fix compilation when PCRE is disabled. 2002-03-21 15:28:46 +00:00
Sander Roobol
a15c9a31eb Added tests for pow()'ing with broken exponents and some additional test
for count()'ing arrays.
2002-03-21 14:18:30 +00:00
Wez Furlong
a662f012bb Convert the gzfile related functions into aliases for their equivalents
in ext/standard/file.c, so a gzopen()ed file pointer can be used in
fread, fseek etc.
Improved behaviour of zlib stream.
Moved passthru code into streams.c
# I'm not happy about BG(mmap_file)
Nuked gzgetss_state as no longer needed.
2002-03-21 01:11:52 +00:00
Wez Furlong
3dbde95896 Make state parameter of php_strip_tags passed by reference.
Move state tracking to stream structure.
2002-03-20 14:38:13 +00:00
Wez Furlong
659a071e3d Streams are all tracked as resources now.
Add some logic that will help track down leaks
when debug is enabled.
2002-03-20 14:21:30 +00:00
Markus Fischer
f130bdb59e - Fix for #16176. 2002-03-20 08:17:06 +00:00
Wez Furlong
14a3911866 fix for bug #16168 2002-03-19 17:49:02 +00:00
Wez Furlong
32a4f35580 register some constants for user streams 2002-03-19 14:35:55 +00:00
Wez Furlong
6abe71bebc s/fgetwrapperdata/file_get_wrapper_data/ 2002-03-19 13:33:07 +00:00
Sascha Schumann
3757a81367 Remove trailing ;
The macro can now safely be used in constructs such as

if (..) foo() else bar();
2002-03-19 12:11:46 +00:00
Sascha Schumann
f84167571f touch file. Please commit first the .re file and afterwards the .c source. Otherwise, timestamps will be broken. 2002-03-19 11:39:41 +00:00
Thies C. Arntzen
3550d75d0f fix #12793 - serialize will now spit a notice if the return value of __sleep is
bogus.
2002-03-19 11:25:21 +00:00
Wez Furlong
06712a508a Implement user-space streams.
There's probably room for improvement,
docs will following some time this week.
2002-03-19 03:51:01 +00:00
Wez Furlong
e3a884f552 fix error message which appeared even if no ssl mode was selected 2002-03-18 20:44:15 +00:00
Wez Furlong
c9d5e13738 TSRMLS related work on streams, as discussed with Zeev.
# Should be the last "broad" commit for a while
# Don't forget to make clean ; make
2002-03-18 18:54:32 +00:00
Wez Furlong
1222d80860 having streams is now the default 2002-03-18 10:44:39 +00:00
Zeev Suraski
a145646e74 Fix build 2002-03-18 09:20:43 +00:00
Sascha Schumann
68d2592f52 Rename HAVE_PHP_STREAM to PHP_HAVE_STREAMS, because
1.) a PHP-specific symbol should be in the php namespace, and
2.) there are multiple streams and the old configure parameter was plural, too.
2002-03-18 08:29:17 +00:00
Sascha Schumann
d74666a648 touch file 2002-03-18 08:22:33 +00:00
Zeev Suraski
73e79322ba Fix the build and all of the outstanding VC++ warnings 2002-03-18 08:05:28 +00:00
jim winstead
349936c93e Fix calculation of output buffer size in wordwrap(). (Thanks to Wez.) 2002-03-18 02:00:57 +00:00
Wez Furlong
d2d8762267 Streams now make more use of the memory manager, so tracking down
leaking streams should be easier.
# I hate these big commits
2002-03-17 22:50:59 +00:00
Stefan Esser
cce45de17c move_uploaded_files checks open_basedir now 2002-03-17 20:56:20 +00:00
Harald Radi
65c4e9e0fd removed anoying warnings 2002-03-17 16:45:56 +00:00
Wez Furlong
436e339bc7 Fix for Bug #16121: make unix socket names binary safe.
# Could be applied to 4.2 branch, but I don't have a working copy, and
# I don't think it's amazingly critical.
2002-03-17 13:19:27 +00:00
Wez Furlong
1d3ad85ac2 fix win32 warning and ming leak 2002-03-17 01:58:42 +00:00
Harald Radi
2be6527fc6 fixed TSRM build 2002-03-16 22:08:23 +00:00
Marcus Boerger
f24caf3244 -formatting 2002-03-16 20:12:58 +00:00
Wez Furlong
5d0c53eecf Fix some issues with gzFile and fsockopen. 2002-03-16 18:42:42 +00:00
Wez Furlong
0895998bef s/get_file_contents/file_get_contents/ 2002-03-16 16:52:24 +00:00
Wez Furlong
201446c2b5 Ooops. 2002-03-16 16:14:56 +00:00
Wez Furlong
0447327118 Implement get_file_contents() as discussed (briefly!) by myself, Derick
and Sterling on php-dev some months ago.
It returns the file contents as a string, and uses mmap if possible.
2002-03-16 16:06:18 +00:00
Markus Fischer
ac50b53018 - WS fix. 2002-03-16 15:50:20 +00:00
Markus Fischer
3c52ef676f - Don't forget to close the handle. 2002-03-16 15:42:34 +00:00
Markus Fischer
d4e63bc5bf - Raise warning when trying to execute non-executeable shell
for mail delivery binary.
2002-03-16 12:45:43 +00:00
Stefan Esser
e926db7bfa fixed possible bufferoverflow in get_next_char
malformed input to htmlentities/htmlspecialchars
with utf-8 encoding crashed the server

ex: htmlentities("\xfd...(30times)", ENT_NOQUOTES, "utf-8");
2002-03-16 09:44:30 +00:00
Wez Furlong
636829345e Allow php_stream_copy_to_stream to do nothing when used with code
that calculates a max length of zero. (Thanks again Marcus).
2002-03-16 02:48:35 +00:00
Marcus Boerger
94b6c6e87f -use of corrected stream seek
#thanks to Wez!
#image.c no works again
2002-03-16 02:46:04 +00:00
Wez Furlong
52982c422e This should help with some build problems/warnings under win32.
Someone still needs to add the streams.c file to the MSVC
project/workspace though (there are so many that I don't really know
what I am doing :-).
2002-03-16 02:33:00 +00:00
Marcus Boerger
59ba0b5172 -new streams 2002-03-16 02:23:57 +00:00
Wez Furlong
a184f5d1d3 * formatting, plus remove some old fopen wrappers 2002-03-16 01:34:52 +00:00
Wez Furlong
09213d7bf8 change * formatting 2002-03-16 01:28:57 +00:00
Wez Furlong
0f65280cb5 New PHP streams... 2002-03-15 21:03:08 +00:00
Wez Furlong
1cc6a8e998 it's late; no more commits from me tonight... 2002-03-15 02:06:08 +00:00
Wez Furlong
0454ad4de8 should have diffed first... 2002-03-15 02:00:55 +00:00
Wez Furlong
ae9db4e440 fix for ZE2 compile 2002-03-15 01:58:00 +00:00
Derick Rethans
7935e73749 - Fix bug #16078 2002-03-14 18:41:35 +00:00
Zeev Suraski
7b3660c6e8 Change case for consistency 2002-03-14 18:39:53 +00:00
Wez Furlong
93ad205756 fix buglet 2002-03-14 14:05:13 +00:00
Zeev Suraski
20f3b718dc Make it clearer what this entry means 2002-03-14 13:35:19 +00:00
Yasuo Ohgaki
dcd86d154e Fixed var_dump() crash when there is recursion.
# Since I said it's easy to fix :)
2002-03-14 09:36:13 +00:00
Sebastian Bergmann
bcdef75be8 Fix credits. 2002-03-13 15:52:24 +00:00
Jason Greene
caa3dbfbb1 Update Credits
#Forgot about sapi
2002-03-13 14:40:31 +00:00
Jason Greene
d53439f246 Update Credits 2002-03-13 14:11:09 +00:00
Wez Furlong
07f5120ee3 I've altered my diagnosis of segfault/leak problem 2002-03-13 02:49:03 +00:00
Wez Furlong
3ef239bfc8 Fix some issues with ZE2, but now have some leaks.
# Any ideas Andrei?
2002-03-13 02:14:28 +00:00
Andi Gutmans
617b26f41d - Compile fixes for Engine 2 2002-03-12 20:28:17 +00:00
Andi Gutmans
c8e7db984c - Allow duality between Engine 1 & 2 using ZEND_STANDARD_CLASS_DEF_PTR 2002-03-12 20:18:01 +00:00
Sebastian Bergmann
6adb33006b Fix TSRMLS_CC. 2002-03-12 07:20:00 +00:00
Yasuo Ohgaki
c43792602e Change php_addslashes() a little.
Since most users do not use magic_quote_sybase, be nicer to
users not using magic_quote_sybase.
2002-03-12 07:05:40 +00:00
Yasuo Ohgaki
e953dba0d7 Make use of TSRMLS_C/D 2002-03-12 06:56:57 +00:00
Marcus Boerger
e39dcad91a -fixed bug 15174
-support for some broken jpegs: bug 13213
-better memory handling
-initial jpeg2000 support (only jpc not jp2,jb2,jpx)
2002-03-12 06:08:48 +00:00
Yasuo Ohgaki
7bccaefc41 Small memory leak fix that does not matter much. 2002-03-11 07:11:54 +00:00
Sebastian Bergmann
6729e0e9bf Fix thread-safe build. 2002-03-11 05:43:23 +00:00
jim winstead
8544cc1532 handle numeric strings. this means we're less picky about the argument
types, but the math functions aren't generally that picky.
2002-03-10 23:46:43 +00:00
Markus Fischer
949e6dbaae - Fix protos. 2002-03-10 23:45:02 +00:00
foobar
fe7a2440ca - Renamed aggregate.lib.php -> aggregate.lib (.php files are always deleted bycvsclean) 2002-03-10 02:38:06 +00:00
Sander Roobol
a4e5289335 Oops... 1 digit is allowed too! Reverting my fix. 2002-03-09 11:23:48 +00:00
Sander Roobol
6e6bd72e0d (php_date) Fixed 'r' modifier to always return two digits for the day
value (see RFC 822) (#15952).
2002-03-08 17:25:43 +00:00
Marcus Boerger
d09d38ad6e TIFF support for 'non' digicam files 2002-03-08 00:57:08 +00:00
Derick Rethans
8d4656dcf6 - Remove CVS things 2002-03-07 15:51:29 +00:00
Sascha Schumann
c12dc3851b touch file 2002-03-07 15:44:10 +00:00
Sascha Schumann
9d9d39a0de Please welcome the new build system.
If you encounter any problems, please make sure to email sas@php.net
directly.

An introduction can be found on

http://schumann.cx/buildv5.txt
2002-03-07 14:20:02 +00:00
James E. Flemer
01505de0b1 (PHP opendir) Changed CHECKUID_ALLOW_ONLY_DIR to CHECKUID_ALLOW_ONLY_FILE
so that relative paths (vs absolute) work correctly.
2002-03-06 18:31:33 +00:00
Dan Kalowsky
86ca867930 quelling a warning, and ensuring now undefined behavior 2002-03-06 16:15:28 +00:00
Derick Rethans
39225a22b8 - Fix tests to work with CLI
#- Not totally done, but this makes it a lot better
2002-03-05 09:00:56 +00:00
Sascha Schumann
e991374db6 Add apparently missing include 2002-03-04 20:14:52 +00:00
Sascha Schumann
b4d5aa5c50 Supply php_html_puts which escapes a whole string.. now fully works in ZTS
mode, too.
2002-03-04 18:46:55 +00:00
Sebastian Bergmann
f79e39cf56 Silence warning. 2002-03-04 18:21:43 +00:00
Sascha Schumann
316a03ca17 revert last commit, puts does more through putc. 2002-03-04 18:12:55 +00:00
Sascha Schumann
42bd356be8 Use PHPWRITE to output data. Because this just outputs diagnostic
information, a few spaces won't hurt (and multiple ones are rendered
as one by browsers anyway).  Micro-benchmarks which use phpinfo()
as a mean to generate output will yield more through-put now
(35 req/s vs. 83 req/s in tux).
2002-03-04 17:48:20 +00:00
Marcus Boerger
d95f691e3f - TIFF support for GetImageSize
@ TIFF support for GetImageSize (Marcus)
2002-03-04 17:17:41 +00:00
Stanislav Malyshev
800e8af417 cygwin fix 2002-03-04 11:11:25 +00:00
Sascha Schumann
cd5f8608e2 Restore use of inline 2002-03-04 08:37:44 +00:00
Rasmus Lerdorf
83e6dbcf19 Let getimagesize() and read_exif_data() share the same constants to
promote a little bit of code reuse here on two very similar problems.
2002-03-04 07:21:30 +00:00
James E. Flemer
787ce372b9 (PHP opendir) Added safe_mode checks on path.
@- Added safe_mode checks for opendir(). (jflemer)
2002-03-03 20:46:57 +00:00
Hartmut Holzgraefe
547b25fd13 php has no 'double', only 'float' 2002-03-02 17:08:09 +00:00
Hartmut Holzgraefe
bff90c71c1 typo fix 2002-03-02 16:41:55 +00:00
Derick Rethans
6f9c7bcf21 - Fix warning message for join(). 2002-03-02 14:06:57 +00:00
Derick Rethans
8b5411b938 - Fix for Sun WorkShop 6 update 2 compiler (Bug #15812) 2002-03-01 16:52:16 +00:00
Zeev Suraski
bb685a402f Fix php_splice() to work with large values 2002-03-01 12:00:05 +00:00
Yasuo Ohgaki
82a8d372e5 Added ob_get_status() to get array of buffers and it's status.
(DO NOT document this function yet)

Fixed crash bug with ob_end_*() function. ob_end_*() will not delete
buffers that may not be deleted.

php_start_ob_buffer() and php_ob_set_internal_handler() takes parameter for
if the buffer created may be deleted or not.

Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be
deleted until script finshes.

Changed ob_*() function that have void return type to bool. All ob_*()
functions return TRUE for success, FALSE for failure.

@ - Added ob_get_status() to get array of buffers and it's status. (Yasuo)
@ - Fixed crash bug with ob_end_*() function. ob_end_*() will not delete
@   buffers that may not be deleted. (Yasuo)
@ - Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be
@   deleted until script finshes. (Yasuo)
@ - Changed ob_*() function that have void return type to bool. All ob_*()
@   functions return TRUE for success, FALSE for failure. (Yasuo)
2002-03-01 03:05:50 +00:00
Derick Rethans
27c4648010 - Make it a boolean 2002-02-28 16:00:26 +00:00
Sebastian Bergmann
90613d2282 Maintain headers. 2002-02-28 08:29:35 +00:00
Derick Rethans
15cadf0c42 - Fix proto 2002-02-27 14:05:39 +00:00
Edin Kadribasic
0bbc3c3a4c Allow use of dl() when CLI is compiled with ZTS (bug #15717). 2002-02-26 11:00:20 +00:00
Derick Rethans
b5a0fd24a1 - Fix the fix.. no need to escape " in single quotes 2002-02-24 14:07:10 +00:00
Derick Rethans
a4946ca375 - Add slashes around string output 2002-02-24 13:26:43 +00:00
Yasuo Ohgaki
15daf99288 Added fmod() function
# Is there any reason that math.c does not use errno?
2002-02-21 11:44:41 +00:00
Andrei Zmievski
513e598d1e Adding object aggregation capability along with tests. 2002-02-21 03:32:42 +00:00
Rasmus Lerdorf
229d207a58 Split CRC32 table out into a header file so other code can use it 2002-02-20 18:18:39 +00:00
Jason Greene
150d339231 Renamed zval_debug_dump() to debug_zval_dump() 2002-02-10 17:38:15 +00:00
Jason Greene
91ac18bc66 @Added zval_debug_dump which works similar to var_dump yet displays extra
internal information such as refcounts, and the true type names (Jason)
2002-02-10 06:52:35 +00:00
Andi Gutmans
284eaf34cc - Add TSRMLS_FETCH()'s needed for the new object overloading in ZE2. 2002-02-05 20:43:49 +00:00
Andrei Zmievski
441c583a2c Converted extract() to use smart_str for variable name manipulation. This
sped it up a bit.
2002-02-01 20:17:32 +00:00
Derick Rethans
98e8a7ba08 - Fix for bug 15311 (type mismatch of php_dl when #ifndef HAVE_LIBDL) 2002-01-31 10:21:24 +00:00
Jon Parise
9aba9071b6 These are now defined in zend_config.w32.h. 2002-01-28 16:06:27 +00:00
Jon Parise
e40e7a669a zend_isinf() is already defined in Zend/zend_config.w32.h for Win32. 2002-01-27 18:19:18 +00:00
Jon Parise
f174bbc711 Use the zend_* versions of finite(), isinf(), and isnan(), as defined
in php_config.h.  Redefine the zend_* versions in the case of Win32.

This fixes the build on systems that don't provide a native version of,
say, isinf() (e.g. Solaris).
2002-01-27 07:41:20 +00:00
Jon Parise
d299bdc5d9 Add a comment indicating that this return statement will never be reached.
# Perhaps it should just be removed?
2002-01-27 07:15:07 +00:00
Sterling Hughes
0d59ff42d4 don't throw fatal errors, throw E_WARNING instead. 2002-01-27 06:18:05 +00:00
Derick Rethans
33b66a224b - Fixed highlight_* (make it more robust)
#- Thx Mr S for noticing this.
2002-01-25 15:43:58 +00:00
Derick Rethans
96a9eba020 - Added optional parameter to highlight_string and highlight_file which
makes these functions return a highlighted string instead of dumping
  to standard output. (Derick)
@- Added optional parameter to highlight_string and highlight_file which
@  makes these functions return a highlighted string instead of dumping
@  to standard output. (Derick)
2002-01-25 11:27:47 +00:00
Rasmus Lerdorf
0d139d3c27 (extraxt) add EXTR_IF_EXISTS and EXTR_PREFIX_IF_EXISTS flags
@- Added EXTR_IF_EXISTS and EXTR_PREFIX_IF_EXISTS flags to extract()
@   EXTR_IF_EXISTS only extracts a variable if it already exists
@   EXTR_PREFIX_IF_EXISTS only extracts the variable if it exists and
@   then it prepends the prefix to it.  ie. if $PATH exists then
@   extract($_ENV,EXTR_PREFIX_IF_EXISTS,'e') would result in $e_PATH
@  This lets you do $a = $b = $c = true; extract($_REQUEST,EXTR_IF_EXISTS);
@  and you only get the global request variables you have defined imported
@  into your symbol table.  (Rasmus)
2002-01-25 09:01:02 +00:00
Marko Karppinen
449b53e34a Ignore ordinal suffixes on numbers (bug #15210) 2002-01-24 22:24:58 +00:00
Sean Bright
a38bfb424e Fix for bug #15130. Way too much effort for this bug, but cleaned up code
a bit, use zend_parse_parameters(), etc, etc.  We only look for extensions
in the basename, not the full path.
2002-01-22 03:35:23 +00:00
Markus Fischer
fe6e7058ee - Fix crash with invalid localtime on Win32 systems. 2002-01-20 20:16:54 +00:00
Markus Fischer
1e2b854bba - mkdir(): made second (mode) parameter optional, default to 0777
switched to zend_parse_parameters().
# Added vim 'noet' setting
2002-01-11 10:44:24 +00:00
Andrei Zmievski
ddc039d0f5 Fix the recursive counting, it was broken for associative or non-sequential
arrays. Also update NEWS file.
2002-01-10 21:31:06 +00:00
Sascha Schumann
a1dbb4ab16 (PHP touch) Operate on a stack buffer.. no need for allocating newtime
on the heap.
2002-01-10 07:25:00 +00:00
Sascha Schumann
edfd6d0988 Add three-parameter touch() which enables users to set
mtime/atime to different values.
2002-01-10 07:21:57 +00:00
jim winstead
831473d76e Rename finite/isinf/isnan to more standard is_*() names. 2002-01-09 23:59:05 +00:00
jim winstead
e68095972e Move type-handling functions into ext/standard/type.c (which had
a few otherwise unused functions in it).
2002-01-09 23:47:46 +00:00
Derick Rethans
aee570302f - Fix bug introduced in earlier patch 2002-01-09 16:03:36 +00:00
jim winstead
4fb4c6d4b3 More tweaking of wordwrap() with the cut parameter set. It was being a
little too aggressive and cutting words without breaking at spaces
first. (A couple of tests were incorrect.)
2002-01-05 23:49:58 +00:00
jim winstead
ca15b22212 New memcpy()-based wordwrap() implementation. The simple case
(single-character break, no forced break) appears to be about 60%
faster, and there's simply no comparison for non-simple cases with
non-trivial amounts of text. The old algorithm was O(n^2) (with an
unfortunately large constant factor) because of the use of strncat(),
the new one is O(n). Added some more tests, too.
@ - Made wordwrap() significantly faster. (Jim)
# test case: $t = join('',file('ChangeLog')); $w = wordwrap($t,10,"\n",1);
# new code completes in less than a second. i'm still waiting for the
# old code to finish.
2002-01-05 20:46:43 +00:00
jim winstead
62395159a9 Fix the Win32 compile. 2002-01-05 08:29:53 +00:00
Egon Schmid
87ad1fdb3b Fixed some protos. 2002-01-05 07:54:49 +00:00
jim winstead
b9d68b8e9d Apparently multi_convert_to_double_ex() didn't quite do what I
thought. Still need to handle numeric strings.
2002-01-05 03:56:38 +00:00
jim winstead
461e105069 Fixed pow(), and added finite(), isinf(), and isnan(). Also fixed
pow() tests.
@- Fixed pow(), and added finite(), isinf(), and isnan(). (Jim)
# Jeroen was on crack, and apparently flunked arithmetic. Names of new
# functions subject to change if people get persnickety about them.
# (They're currently the same as the underlying C library function
# names. Hope nobody forgets to update the tests if they change the
# names.)
# Oh, and pow() uses the new parameter-passing API now.
2002-01-05 03:45:11 +00:00
jim winstead
4b8f435b2a good grief, positive powers of 0 are well-defined. (code fix coming.) 2002-01-05 02:16:16 +00:00
jim winstead
9a171d03e8 Be more aggressive in making sure that substring matches are valid in
ereg_replace before trying to use them.
# i could have sworn i fixed this in php3. ereg() has similar logic, i
# guess i just missed ereg_replace. fixing this lets
# ext/standard/tests/reg/012.phpt pass on my debian/unstable box
2002-01-05 01:59:11 +00:00
Zak Greant
6823fb1fe7 Surprising how tests can fail when they don't have any supporting data :) Thanks for the catch Jan and Jim 2002-01-05 01:58:44 +00:00
jim winstead
f68b7c5f3e Fixed segfault in wordwrap() when wrapping to zero width and using
multi-character break or trying to force cut (bug #12768, now fails
and issues a warning because forcing a zero-width cut doesn't make
sense). Also converted to new paramater-passing API and avoid making
an extra copy of the return values.
# also added tests.
@- Fixed segfault in wordwrap() when wrapping to zero width and using
@  multi-character break or trying to force cut (bug #12768). (Jim)
2002-01-04 19:48:08 +00:00
Hartmut Holzgraefe
c9bc54abc3 fix for bug #14832: basename with 2nd parm corrupts source string 2002-01-03 20:20:35 +00:00
Thies C. Arntzen
21cc717bac protos fixes by Wolfgang Drews 2002-01-03 06:57:22 +00:00
Zak Greant
8c8b49ed20 Adding key_exists alias for array_key_exists, at the request of One-Who-Shall-Not-Be-Named-Because-He-Is-On-Vacation 2002-01-02 21:21:48 +00:00
Zak Greant
f01745896f chdir: corrected proto, converted to zend_parse_parameters 2001-12-30 10:13:08 +00:00
Zak Greant
59a45acca6 chroot: corrected prototype, converted to zend_parse_parameters 2001-12-30 09:50:41 +00:00
Zak Greant
2f6ffb545e Converted getenv to use zend_parse_parameters 2001-12-30 09:36:24 +00:00
Derick Rethans
57f3c395b8 - Removed is_array_multidimensional 2001-12-29 22:59:40 +00:00
Derick Rethans
ae07e93028 - Added test for recursive counting 2001-12-29 21:05:03 +00:00
Derick Rethans
cef0a461f9 - Added extra parameter to count() that recursively counts elements in an
array and added is_array_multidimensional(). (patch by Vlad Bosinceanu
  <glipy@fx.ro>)
2001-12-29 20:59:59 +00:00
Andi Gutmans
211d712c59 @ Fix bug in krsort() where an extra character was being compared (Andi)
- Fix bug in krsort() where an extra character was being compared (Andi)
2001-12-29 20:47:25 +00:00
Sebastian Bergmann
9063a96dfa PHP 4.0 -> PHP 4. Patch by Martin Jansen <mail@martin-jansen.de>. 2001-12-29 14:23:58 +00:00
Dan Kalowsky
b76eb3ae40 Making PHP compile again on MacOSX 10.1
# 10.1 does not have inet_pton support yet it seems so disabling it.
2001-12-27 15:42:05 +00:00
Markus Fischer
7cf14fb1e1 - Fix tiny leak. 2001-12-23 15:56:41 +00:00
Alex Waugh
e320de1e2e Undefine AF_UNIX under RISC OS 2001-12-23 00:46:13 +00:00
Derick Rethans
e8f3e3ffa0 - Let ceil also return a float in every case 2001-12-22 11:53:29 +00:00
Derick Rethans
6729156450 - Add test for floor and ceil 2001-12-22 11:52:56 +00:00
Zak Greant
2c9f5d8a91 Modified array_walk, arsort, asort, krsort, ksort, rsort, shuffle, sort,
uasort, uksort and usort.

Corrected prototype comments for all.

Converted to use zend_parse_parameters, except for the u.?sort functions.

Changed return values for failure from implicit NULL to explicit FALSE in
asort(), krsort(), and ksort().

Changed pval to zval in the u.?sort functions.

Added test to help ensure that fixes to code do not change function
behavior. Tests are quite large (~237k) but compress down to ~16k.
Please let me know if this is a problem!
2001-12-22 11:49:56 +00:00
Zeev Suraski
431c793e0c Fix a warning 2001-12-22 03:04:32 +00:00
Derick Rethans
ca1bcd9ac3 - Fix for bug #14646, floor() always returns a float now. 2001-12-21 16:38:49 +00:00
Derick Rethans
e5c08b815f - Added open basedir checks to file functions. (Patch by
Christoph Kassen <chkassen@chkassen.de>)
2001-12-21 08:04:21 +00:00
Sean Bright
25058db066 Use memset() instead. 2001-12-21 03:50:07 +00:00
Sean Bright
33730ca2b9 Initialize variable to avoid bogus data and possible segfault. 2001-12-21 03:10:11 +00:00
Sean Bright
0ca4f69d31 Switched some functions to use zend_parse_parameters, cleaned up some
unused variables and some whitespace work.
2001-12-21 01:53:25 +00:00
Derick Rethans
d578e05f96 Mail should go to php-dev 2001-12-16 13:04:02 +00:00
Derick Rethans
3709eb6ab2 - Fix for bug #14544, bogus warning in pow()
#- I think I do not need to tell who screwed this up....
2001-12-16 10:59:20 +00:00
Hartmut Holzgraefe
424679e9fb proto fixes 2001-12-16 10:18:45 +00:00
Derick Rethans
f5f4a5cf37 - TSRMLS here and there, it's all about the Windows flair 2001-12-15 14:55:18 +00:00
Derick Rethans
143df7de6b - Added a second parameter to var_export which makes the function return
the variable representation in a string.
2001-12-15 14:45:59 +00:00
Stig Bakken
dd969337a0 return boolean where appropriate 2001-12-12 01:36:07 +00:00
Hartmut Holzgraefe
cc4b274a58 ereg functions will now take in account the real number of
subexpressions instead of simply assuming a fixed count of 10
2001-12-11 19:28:31 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
Derick Rethans
a7b9d5590b - Remove debug code 2001-12-08 23:46:19 +00:00
Derick Rethans
3cb1db985e - Added var_export, which shows a representation of a variable, much like
var_dump, but in such a way you can use it as PHP code.
@- Added var_export, which shows a representation of a variable, much like
@  var_dump, but in such a way you can use it as PHP code. (Derick)
2001-12-08 23:44:34 +00:00
Sterling Hughes
d95a4e2c19 Fix long2ip's handling of unsigned longs, by accepting a string argument and
then manually converting the string to an unsigned long using strtoul()
2001-12-07 13:20:18 +00:00
Egon Schmid
9f456af68b Fixed some protos. 2001-12-07 09:34:50 +00:00
Hartmut Holzgraefe
94737d086f proto fix 2001-12-07 07:27:00 +00:00
Hartmut Holzgraefe
49cc65cdae renamed rot13 to str_rot13() 2001-12-06 21:39:01 +00:00
Hartmut Holzgraefe
71028d46cf ported rot13() from php3 2001-12-06 19:02:27 +00:00
Hartmut Holzgraefe
c1626365f9 proto fixes 2001-12-06 18:59:22 +00:00
Hartmut Holzgraefe
38472b48d7 proto fix 2001-12-06 17:15:59 +00:00
Sterling Hughes
84ed9d387f use PHP_INFO_ALL and PHP_CREDITS_ALL instead of hardcoding them 2001-12-06 13:31:34 +00:00
Sascha Schumann
ab38ad27a5 increase timestamp, because make tries to regenerate this file without any reason 2001-12-05 21:45:33 +00:00
Sterling Hughes
886ad91adf Make the length parameter to fgets optional (defaults to 1024) 2001-12-04 19:40:48 +00:00
Derick Rethans
1f14640b3e - Added ob_get_level, which returns the nesting level of the output buffering
mechanism. (patch by Yasuo Ohgaki <yasuo_ohgaki@yahoo.com>)
@- Added ob_get_level, which returns the nesting level of the output buffering
@  mechanism. (Yasuo, Derick)
2001-12-03 07:43:53 +00:00
Frank M. Kromann
03b5cb6775 Make php_reg_replace available from shared extensions 2001-12-03 05:15:29 +00:00
Frank M. Kromann
e7ef5041d5 Make php_MD5* functions available from shared extensions 2001-12-03 05:14:28 +00:00
Frank M. Kromann
8e40864770 Make _php_math_number_format available from shared extensions 2001-12-03 05:12:48 +00:00
Frank M. Kromann
c07cf5c2a5 Make php_startpage and php_getlastmod available from shared extensions 2001-12-03 05:11:29 +00:00
Frank M. Kromann
b4d9b70c6e Make php_setcookie available from shared extensions 2001-12-03 05:10:10 +00:00
Hartmut Holzgraefe
34feef0d6b - switch to new paramter parser
- make sure To: and Subject: do not end with a newline character
2001-12-02 17:57:17 +00:00
Bernd Roemer
99639f5812 Allow unserializer_callback_func to be turned off. 2001-12-02 17:31:11 +00:00
Derick Rethans
896faf0b34 - Fix a bug in timezones +0100 and -0100 2001-12-02 11:35:28 +00:00
Derick Rethans
29cd309944 - Fix a crash when passing e.g. NULL to basename(). (Patch by Markus
Fischer <mfischer@guru.josefine.at>)
#- Simplyfied code using zend_parse_parameters().
2001-12-01 15:45:55 +00:00
Thies C. Arntzen
0fd809a770 improve last patch:
non existant object variables are now serialized as NULL, this saves us from
buffering the serialized data.
2001-12-01 15:17:50 +00:00
Thies C. Arntzen
7ff5198c53 serialized data would be incoorect if __sleep() returned a variable-name
which is non-existant in the object.
submitted by: Bernd Roemer <berndr@bonn.edu>
2001-12-01 15:06:37 +00:00
Derick Rethans
9190271cef - Added ob_flush and ob_clean functions, which do not end the buffer like
ob_end_flush and ob_end_clean do.
@- Added ob_flush and ob_clean functions, which flush and clean an
@  output buffer without destroying the buffer. (Derick)
2001-11-30 10:48:38 +00:00
foobar
ef64e8336f Updated file since .re changed. 2001-11-26 22:46:15 +00:00
Derick Rethans
534b0f7e06 - Also patch the file from which var_unserializer.c is generated 2001-11-26 22:33:44 +00:00
Derick Rethans
06cdf297a8 - Adding a callback mechanism to the unserializer. (patch by Bernd
Roemer <berndr@bonn.edu>)
#- An explainatory e-mail will be send to php-dev
2001-11-26 21:04:21 +00:00
Derick Rethans
f17f3371be - Added md5_file(), which calculaties the MD5 sum of a file.
(patch by: Alessandro Astarita <aleast@capri.it>) (Derick)
@- Added md5_file(), which calculaties the MD5 sum of a file.
@  (patch by: Alessandro Astarita <aleast@capri.it>) (Derick)
2001-11-18 18:48:17 +00:00
foobar
fc3906e93a WS fix 2001-11-18 03:34:23 +00:00
Sascha Schumann
9f3362933a Fix two incidents which have been reported about the new unserializer.
#1: forgot to handle negative numbers
#2: added zval_ptr_dtor which was not in the original code which
    might lead to crash

PR: #14082
2001-11-16 16:34:14 +00:00
Stanislav Malyshev
39f3075500 Check in ftok() function by Andrew Sitnikov <sitnikov@infonet.ee> 2001-11-15 09:53:40 +00:00
Sterling Hughes
42b9349d8b Many other reasons that setvbuf can fail than "wrong arguments", returning
false should be enough
2001-11-14 12:57:06 +00:00
Derick Rethans
b278435074 - Fix crashbug on dtor 2001-11-14 09:48:14 +00:00
Rasmus Lerdorf
55d9b2ad9c Fix most of these tests - still think there is a bug in the long->float
conversion stuff somewhere
2001-11-13 13:12:46 +00:00
Rasmus Lerdorf
f78f4364a0 Different operating systems handle the group x bit differently, so
simplify this test to test the user x bit instead
2001-11-13 12:39:21 +00:00
foobar
12cfb76b65 Fixed the wrong logic in ini_get_all() function.
Now it behaves same as how phpinfo() outputs the ini entries.

If there is a local value, then the global one is the 'original one' if
there is such. Otherwise global value is same as local. :)
2001-11-13 00:37:49 +00:00
Jeroen van Wolffelaar
5ccdb1d352 Fix all (at least, I tried to catch all) proto's in file.c 2001-11-11 20:33:27 +00:00
Jeroen van Wolffelaar
788b1552a7 Add warning when set_file_buffer() fails 2001-11-11 19:42:31 +00:00
Derick Rethans
78e4644fa1 - Renaming key_exists to array_key_exists
@- Renamed key_exists tp array_key_exists. (Derick)
#- Not sure if this belongs in NEWS, but it was already in a released
#  version. And yes, I know I'm breaking BC here, but as it was not documented
#  yet, that doesn't matter.
2001-11-11 18:28:43 +00:00
Stanislav Malyshev
88c66d4859 Fix crash bug on malformed .ini file 2001-11-11 12:41:14 +00:00
Andrei Zmievski
98a7a1ba1f Fixed bug #13901. 2001-11-10 23:44:04 +00:00
Sascha Schumann
f341f630d3 Rewrite of unserializer which should be more maintainable and extensible.
Changes pass `make test´ and a couple of custom tests.

Enjoy.
2001-11-10 21:18:34 +00:00
Derick Rethans
88c6758d4e - Fixing this bad idea 2001-11-10 18:06:28 +00:00
James Moore
4f78737000 Fix apache win32 dso build.
(This is untested on linux but shouldnt break anything)
2001-11-10 17:24:02 +00:00
Derick Rethans
23db803b34 - Correcting Goba's name, and adding me to QA team 2001-11-10 14:22:36 +00:00
James Moore
f111b84e05 @ - Fix Bug 9878 (patch by bfoddy@mediaone.net) (jmoore) 2001-11-07 14:22:15 +00:00
Jon Parise
2c5764d46f It doesn't look like we use a fourth pointer. 2001-11-06 18:02:04 +00:00
Alex Waugh
f1e32a8c82 Undefine AF_UNIX when compiled for RISC OS 2001-11-04 12:40:45 +00:00
foobar
488b76b95d ws fix 2001-11-04 02:09:55 +00:00
James Moore
a67459f581 @ - Fix bug 13885 (gmdate timezone handling on windows) (jmoore)
- relying on timezone and tzname isnt OK for gmdate etc, the only behaviour
   that might not be right is the handling of T formatter under gmdate
   should it return the machines timezone or GMT Standard Time??
2001-11-03 12:42:41 +00:00
James Moore
2ace2ccd00 WS fix 2001-11-02 19:31:57 +00:00
James Moore
c8896a38ae @- Fix behaviour of strtok. Bug 13866 (jmoore)
# I have brought the behaviour of strtok into line with how the
# libc strtok's behave. currently given
# <string1><token><string2><token><token>string>
# three recursive calls to strtok returns <string1>. <string2>, <token><string3>
# it now returns <string1>, <string2>, <string3>. (there was some
# debate in #php.bugs if it should return <string1>, <string2>, false, <string3>
# but php's strtok now behaves the same way as the libc version.
2001-11-02 19:19:24 +00:00
Zeev Suraski
2f08cb119c more ws 2001-10-29 09:45:47 +00:00
Zeev Suraski
c06c27af73 Whitespace fixes
Don't Adafy the code, Jani :)
2001-10-28 22:51:58 +00:00
Derick Rethans
6a5bcfef8d - Fix for bugs #9640 and #13789 2001-10-27 17:50:26 +00:00
Andrei Zmievski
2890b57e46 @- Added array_chunk() function that splits an array into chunks of specified
@  size. (Andrei)
2001-10-27 05:11:15 +00:00
Andrei Zmievski
5da651fcd2 Convert to use new parameter parsing API. 2001-10-26 21:07:59 +00:00
Andrei Zmievski
b3d49ab0e4 Convert to use new parameter parsing API. 2001-10-26 14:50:58 +00:00
Rasmus Lerdorf
72fc6bc4b1 As suggested on php-dev, array_fill() is probably a better name for this
function.
2001-10-23 18:46:35 +00:00
foobar
f73ee14bd9 Check that realpath is available. Bug: #9469
# TSRM still uses it without checking. I can't fix that.
2001-10-23 11:14:51 +00:00
Zeev Suraski
c767809b2f Prolong the death of dl() for a little while longer. 2001-10-23 01:18:54 +00:00
Rasmus Lerdorf
d98c96fc6c Use references instead of making a copy each time in array_init(). About
twice as fast for a high number of elements.  2.80 seconds for the copy
of 1,000,000 elements and 1.39s for the reference version.  Need to chunk
it every 62k or so because refcount is a short.
2001-10-22 20:49:27 +00:00
Jeroen van Wolffelaar
43b3da1396 Make math tests pass, round & co don't work this way, and there was an error
in expected output
2001-10-22 09:44:27 +00:00
foobar
701b1a548e Fixed bug: #12617 2001-10-22 02:35:10 +00:00
Rasmus Lerdorf
4d60dbb9ef Oops, leftover crud 2001-10-21 07:45:32 +00:00
Rasmus Lerdorf
798ec79319 Motivated by bug #13607 I wrote up a simple array_init() function that
lets you quickly create an array and initialize each element to a certain
value.
@ Add array_init() function (Rasmus)
2001-10-21 07:42:35 +00:00
foobar
5db38caece Fixed bugs: #13251, #9827, #11363 2001-10-21 03:01:17 +00:00
Andrei Zmievski
5c90e7a78f Fix warning, 2001-10-20 13:45:29 +00:00
Derick Rethans
6852a1e704 - Fix for bug #13413 2001-10-20 10:58:33 +00:00
Andrei Zmievski
030e873758 convert to use new parameter parsing API. 2001-10-19 19:48:35 +00:00
Andrei Zmievski
1ed249ddbc Converting to use new parameter parsing API. 2001-10-19 19:21:58 +00:00
Egon Schmid
1f852425d1 Fixed other protos. 2001-10-19 19:21:28 +00:00
Egon Schmid
28575499df Fixed another proto. 2001-10-19 18:42:25 +00:00
Andrei Zmievski
65da5375ea Conver to use new parameter parsing API. 2001-10-19 18:26:30 +00:00
Edin Kadribasic
c0efc001af Fixed last argument in strlcat() call. 2001-10-19 18:06:37 +00:00
Andrei Zmievski
8a54c2929f Convert to use new parameter parsing API. 2001-10-19 17:16:12 +00:00
Edin Kadribasic
86959aaf62 Changed strncpy=>strlcpy; strncat=>strlcat 2001-10-19 15:54:05 +00:00
foobar
d9c26ab299 fixed proto 2001-10-16 17:08:11 +00:00
Edin Kadribasic
96a04d4ab7 Fixed bug #13083 in http_fopen_wrapper.c which is now able to handle
non absolute redirects.
2001-10-15 23:30:40 +00:00
Sascha Schumann
a92fa9b2bc Either sizeof(struct stat) or sizeof f_stat, but not sizeof stat. 2001-10-13 23:43:49 +00:00
Stig Bakken
689252082c * zend_module_entry change: apino, debug and zts are moved first,
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +00:00
Stig Bakken
925ff7f2b2 * remove version_{lt,le,gt,ge,eq} functions, added a third optional
parameter to version_compare doing the same thing
2001-10-11 10:35:59 +00:00
Stig Bakken
f0c30a0662 * added function entries for version_{lt,le,gt,ge,eq} 2001-10-10 10:32:16 +00:00
Stig Bakken
f3d2d4c630 @Added version_{lt,le,gt,ge,eq} functions (Stig) 2001-10-10 10:14:51 +00:00
Derick Rethans
62fb3d63c5 @- Added mmapfile(), read a file into a variabele with mmap (Ilia A, Derick)
- Added mmapfile(), read a file into a variabele with mmap (Patch by:
  Ilia A. <ilia@prohost.org>)
2001-10-07 18:34:44 +00:00
Jeroen van Wolffelaar
78b881f389 Fix naming inside php_search_array, comp_func is not a compare function. 2001-10-07 13:49:08 +00:00
Sterling Hughes
3a50a0322f @ Have rand() and mt_rand() seed automatically if srand() or mt_srand() has
@ not been called. (Sterling)
2001-10-07 11:52:09 +00:00
Stig Bakken
89bd184ea0 @Added version_compare() function (Stig) 2001-10-06 23:22:37 +00:00
Derick Rethans
a0bbfb590c - <br> -> <br /> 2001-10-06 20:13:39 +00:00
Sterling Hughes
af1c7070f7 fix execution order 2001-10-06 18:59:39 +00:00
Sterling Hughes
16da751e3b avoid TSRMLS_FETCH() 2001-10-06 18:55:09 +00:00
Sterling Hughes
1bceefb2da @ Don't through a file does not exist warning for the is_dir(), is_writeable(),
@ is_readable(), is_executable(), is_link() and is_file() functions. (Sterling)
2001-10-06 18:52:37 +00:00
Edin Kadribasic
26389258bb Made assert test pass on systems with short open tags disabled.
Added .cvsignore
2001-10-06 09:38:29 +00:00
Stig Bakken
9ce638248d * prototype of version_compare, doesn't work yet 2001-10-05 23:56:19 +00:00
Jeroen van Wolffelaar
a1c2b86701 Fix the pow-test, it now succeeds on my machine 2001-10-05 23:37:08 +00:00
Jeroen van Wolffelaar
5541451085 Add test for array_search and in_array
(should be expanded though)
2001-10-05 22:01:04 +00:00
Jeroen van Wolffelaar
62feefddc7 Fix array_search and in_array. Now binary safe, and faster (returns when
found, and doesn't duplicate the key each time, but only when necessary)

Patch also by Edin Kadribasic
2001-10-05 21:58:41 +00:00
Jeroen van Wolffelaar
89ea50a588 Fix bug 13567 and don't depend on a boolean int-value to be either 1 or 0 2001-10-05 20:14:33 +00:00
Edin Kadribasic
e78b61542d Added array_change_key_case() function that returns array with
with all string keys lowercased or uppercased
@- Added array_change_key_case() function that returns array with
@  with all string keys lowercased or uppercased (EdinK)
2001-10-05 18:38:53 +00:00
Derick Rethans
744d1fc1ea - 'Fix' for bug #13543 2001-10-04 15:25:39 +00:00
Derick Rethans
be52d66f4b - Fix crashbug in php_chunk_split() 2001-09-27 06:55:23 +00:00
Zeev Suraski
7e42c73a50 Another leak bites the dust? 2001-09-27 00:21:21 +00:00
Derick Rethans
51e2a6b84e - nl2br now handles different styles of line endings in one string. (Patch
by Boian Bonev <boian@bonev.com>)
@- nl2br now handles all styles of line-endings in one string. (Boian,
@  Derick)
2001-09-26 19:34:46 +00:00
Jeroen van Wolffelaar
0916fd50c0 5th and probably/hopefully last run of conv_z_macros 2001-09-26 09:21:58 +00:00
Jeroen van Wolffelaar
6cfba2a3ea 2nd phase in back-substitution those macro's
I've got pretty much everything now...
2001-09-25 22:49:04 +00:00
Jeroen van Wolffelaar
c033288573 Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know. 2001-09-25 21:58:48 +00:00
Derick Rethans
f1ce7daccd - Fix crash bug (patch by <chocolateboy@lunomail.com>) 2001-09-24 08:33:51 +00:00
Jeroen van Wolffelaar
f61dfce39c Make chop the alias and rtrim the main function, in order to get automagically
generated alias-listings correct.
2001-09-23 18:32:46 +00:00
Jeroen van Wolffelaar
929ae94c64 Let settype also accept 'int', 'bool', 'float' and 'null'
@Let settype also accept 'int', 'bool', 'float' and 'null' (Jeroen)
2001-09-22 01:39:14 +00:00
Hartmut Holzgraefe
03f7406711 proto fixes "double" -> "float" 2001-09-21 21:59:27 +00:00
Hartmut Holzgraefe
2c275bf793 renamed doubleval to floatval and made doubleval an alias to floatval
made is_float the function entry and is_double the alias
2001-09-21 21:29:14 +00:00
Sascha Schumann
4582d38519 Fix warning on Win32 (thanks to Sebastian) 2001-09-21 17:21:50 +00:00
Sascha Schumann
0a8677167d don't use boyer_str_to_str. It is experimental 2001-09-21 16:17:14 +00:00
Sascha Schumann
9002e37e4e Always seed the LCG from the request-init hook, otherwise the seed
would be shared among the threads which is quite pointless.  Also
use a function of the current time as one factor.

Use gettimeofday() instead of time(), because it is faster on some
operating systems.
2001-09-21 13:38:44 +00:00
Sascha Schumann
f45555e62f Rework some string-to-number and vice-versa functions to work smarter
(e.g. without using functions that use slow locales, without allocating
 extra memory and with fewer integer/float operations)
2001-09-20 08:22:44 +00:00
Stig Venaas
926d1506e0 Added IPv6 support to gethostbyaddr()
@- Added IPv6 support to gethostbyaddr()
@  (Patch by Matthias Wimmer <matthias@charente.de> and venaas)
2001-09-19 18:08:15 +00:00
Sascha Schumann
e261d310a0 quickly fix newly introdued off-by-one 2001-09-19 11:03:58 +00:00
Sascha Schumann
e4ace6cde6 Rewrite _php_match_basetozval to need only one multiplication
per iteration and avoid the U?LONG_MAX hassle.
2001-09-19 10:57:50 +00:00
Sterling Hughes
563c0670e5 another attempt at fixing compile warnings... 2001-09-18 20:05:05 +00:00
Sterling Hughes
8092460830 hopefully fix win32 compile warnings
# I really wish i had a box to compile php with win32 on
2001-09-18 05:48:49 +00:00
Sterling Hughes
bcb426a207 Merge in qsort changes 2001-09-17 21:02:53 +00:00
Sterling Hughes
97fea0931c Make rand thread safe when ZTS is defined. 2001-09-16 20:49:57 +00:00
Sterling Hughes
96763e8372 Hopefully fix compile warnings on win32 systems 2001-09-16 17:37:19 +00:00
Sterling Hughes
47f3851a00 for the daft folks that think 0 is a good seed. 2001-09-16 03:50:04 +00:00
Sterling Hughes
373fc12bb1 @ Make the seed options to srand() and mt_srand() optional, if the seed is
@ not specified, the generate the most random seed possible. (Sterling)

Please, if anyone has any comments on the way I generate this seed, speak up!
This seems to be the most "random" seed I could come up with...

This commit is 100% backwards compatible :)

Add myself to the authors list cause of recent work on the file
2001-09-16 03:46:59 +00:00
Rui Hirokawa
9c5580c7d4 Added support for japanese encoding to htmlentites() and htmlspecialchars(). @ Added support for japanese encoding to htmlentites() and htmlspecialchars(). (Rui) 2001-09-15 04:48:48 +00:00
Thies C. Arntzen
e929389eeb fix strtr() when called with two parameters. this has been broken for some time!
guys, when "optimizing" functions you _shoudl_ write a testcase for the
working function and make _sure_ that it works afterwards!
2001-09-13 10:48:41 +00:00
foobar
5275b60398 Enable chroot() only if SAPI is CGI. 2001-09-12 02:07:46 +00:00
Sascha Schumann
4c69a970d3 Remove some unused variables 2001-09-11 07:52:55 +00:00
Sascha Schumann
2bbbec107b A round of "d'ohs" for me, please.
We must not stop scanning after finding a "?", because we
need the information regarding the "#".
2001-09-10 11:22:43 +00:00
Zeev Suraski
517bd3018c Do some justice to the doc team 2001-09-09 23:37:55 +00:00
Sascha Schumann
de963ce9c6 Better fix for mark problem 2001-09-09 14:52:39 +00:00
Sascha Schumann
c86c9f52b4 Fix mark-handling 2001-09-09 14:38:12 +00:00
Derick Rethans
78747bd2df - Don't wrap lines... this is annoying while coding. 2001-09-09 13:29:31 +00:00
Derick Rethans
61d4f7fe65 - Really fix nl2br now... it's actaulyl faster now 2001-09-09 12:55:48 +00:00
Derick Rethans
176cd90bd7 - Fix for bug 11904
#- This is possibly not the best solution... feel free to improve
2001-09-09 11:42:36 +00:00
Sterling Hughes
ff2bc83c08 remove ARG_COUNT(ht)
# Is there any reason that the set_compare_func call is passed SORT_STRING
# instead of SORT_REGULAR??
2001-09-09 11:03:31 +00:00
Sterling Hughes
6963ac4050 export the mt rand functions... 2001-09-09 10:44:12 +00:00
Sterling Hughes
25d4500a86 I should really learn how to spell 2001-09-06 08:56:24 +00:00
Sterling Hughes
b7ba9e007d avoid lowercasing the string 2001-09-06 08:54:54 +00:00
Sterling Hughes
33fc6e2d5f add missing ) 2001-09-06 07:33:45 +00:00
Sterling Hughes
8a156d9a39 fix ms compile warnings 2001-09-06 06:41:16 +00:00
Sterling Hughes
903c831be5 spaces -> tabs work cont. 2001-09-06 00:40:02 +00:00
Sterling Hughes
a4c905ff16 ws fix 2001-09-06 00:18:13 +00:00
Sterling Hughes
a1b11f0755 Fix ts build
# I've gotta start compiling --enable-experimental-zts...  anyway we can make
# this the default when compiling from cvs?  It'll help a large portion of
# compile issues with patches
2001-09-05 21:46:44 +00:00
Sterling Hughes
e121eaaef5 Straight out da bronx, I be using zend_parse_parameters()
# Word out to my peeps on Connor st.
2001-09-05 21:38:49 +00:00
Sterling Hughes
5ec58914fe stray tabs and spaces 2001-09-05 21:04:30 +00:00
Sterling Hughes
f0c5631778 change range macro semantics
# Kinda torn between the two, thoughts?
2001-09-05 20:59:24 +00:00
Sterling Hughes
d930a72cd7 remove inline 2001-09-05 20:56:15 +00:00
Sterling Hughes
1b0f00d67f a bit of api cleanup... move range stuff into a macro (properly :) 2001-09-05 20:52:45 +00:00
foobar
42b5521af5 revert bad commit. 2001-09-05 19:47:55 +00:00
Sterling Hughes
b9edf7c17c API Update 2001-09-05 06:55:37 +00:00
Egon Schmid
03fbbb098c Fixed some protos. 2001-09-04 10:44:28 +00:00
Sterling Hughes
38cacba117 Thanks sebastian
# I really like this whole qa team thingy
2001-09-04 10:13:55 +00:00
Sterling Hughes
536c96969b update php_trim as well... 2001-09-04 09:35:53 +00:00
Sterling Hughes
c661449ebf fix crash bug 2001-09-04 09:33:30 +00:00
Sterling Hughes
0935217091 fix proto 2001-09-04 06:21:48 +00:00
Sterling Hughes
e55315a375 tabs -> spaces 2001-09-04 06:20:23 +00:00
Sterling Hughes
fe03f6f4c2 Begin cleanup, api wise... 2001-09-04 06:18:11 +00:00
Sterling Hughes
3151916113 pval -> zval 2001-09-04 06:08:42 +00:00
Daniel Beulshausen
9b8886410d fix zts+win32 build 2001-09-04 02:19:30 +00:00
Sterling Hughes
dda004bcfb - update to php4 api
- expand case statements, ie:

case 1: case 2: case 3:

to

case 1:
case 2:
case 3:

- Remove un-necessary brackets and parentheses (only when it takes away from
readability, I know this is quite arbitrary, but I did my best :)
2001-09-03 23:30:33 +00:00
Andi Gutmans
1ecd31b66c - Fix thread safe mode.
- Please don't use Java style function braces.
2001-09-03 20:21:00 +00:00
Derick Rethans
383691eec2 - Fix broken build
#- Please test before commit!
2001-09-03 17:38:10 +00:00
Stanislav Malyshev
0a143cf655 Add _php_math_zvaltobase and _php_math_basetozval
This allows to use bindec, etc. functions to convert numbers longer
than fits in long, using floats instead.
Note: the functions like decbin still don't use the zval-ed functions,
so they work only on longs yet.
2001-09-03 16:26:31 +00:00
Jeroen van Wolffelaar
dc8386e30d Removed outdated comment until I've got a better one 2001-09-03 12:01:50 +00:00
Jeroen van Wolffelaar
efb83df9f9 Kill some warnings/errors (reported by Sebastian, more to come, but
could take some time. Update of ZTS-builderrors is welcome)
2001-09-03 11:57:15 +00:00
Sterling Hughes
79c27f0cd2 should be this 2001-09-03 08:47:45 +00:00
Sterling Hughes
b417b96fb8 - Update to the PHP4 API (newer macros)
- Improve error reporting from split()
- Some minor speed improvements
2001-09-03 08:44:02 +00:00
Sterling Hughes
f6d73d73fb stray tabs 2001-09-03 06:10:45 +00:00
Sterling Hughes
f14ada19ac cleanup sscanf() just a tiny bit, just so it looks like the rest of the code
in the string.c file.
2001-09-03 04:49:36 +00:00
Jeroen van Wolffelaar
0cb6a31906 Fix array_rand and array_suffle to use php_rand correctly 2001-09-03 01:54:04 +00:00
Jeroen van Wolffelaar
b0300e26df Fix prototype 2001-09-03 01:46:03 +00:00
Jeroen van Wolffelaar
72c7ae080b Fix SIGSEGV because HAS_SRAND didn't check wether the entry existed at
all
2001-09-03 01:25:24 +00:00
Jeroen van Wolffelaar
1a68fe49cb Add forgotten files to MAIN 2001-09-03 01:10:29 +00:00
Jeroen van Wolffelaar
92f1248a49 Update credits 2001-09-03 01:09:35 +00:00
Jeroen van Wolffelaar
f7306ce010 Merge RAND_REDESIGN into MAIN 2001-09-03 01:06:23 +00:00
Andrei Zmievski
392e1edee8 @- Made in_array() and search_array() allow the needle to be an array in
@  itself. (Andrei)
2001-08-31 04:52:10 +00:00
foobar
d340c5b2bf @- Added ini_get_all() function which returns all registered ini entries
or the entries for the specified extension. (Jani)
2001-08-30 17:47:04 +00:00
foobar
5dd2b6e2fd According to Zeev this code is just for showing how to create overloaded classes. 2001-08-29 23:53:22 +00:00
foobar
08a521572f WS fixes and indenting. 2001-08-29 16:00:30 +00:00
Rasmus Lerdorf
563ffb8984 Kill a warning 2001-08-28 21:50:37 +00:00
Zeev Suraski
b781720b36 More fixes and refinements 2001-08-27 00:23:55 +00:00
Zeev Suraski
d697a558ac Fix my session updates.
trans_sid handling will no longer slow down performance unless a session
is actually in use.
2001-08-26 11:49:43 +00:00
Zeev Suraski
7b73aee40f Make the session module more independent 2001-08-26 01:09:20 +00:00
Zeev Suraski
b8763a6f8c Get rid of TRANS_SID - it's always possible to use it now. 2001-08-25 16:09:23 +00:00
Zeev Suraski
13ff183225 Move the trans-sid mechanism to use the output buffering mechanism.
Advantages:
- Would work with the output buffering mechanism in general, and with
  output compression in particular
- Should yield better performance (untested as of yet)
2001-08-25 15:57:42 +00:00
Wez Furlong
9e7da02d3b Fix htmlspecialchars problem. 2001-08-24 08:58:10 +00:00
Andrei Zmievski
cae9763d0a @- Fixed a crash bug in array_map() if the input arrays had string or
@  non-sequential keys. Also modified it so that if a single array is passed,
@  its keys are preserved in the resulting array. (Andrei)
2001-08-24 02:58:23 +00:00
John Donagher
faa5031f25 Don't try and search a 0-length string. This allows parse_url() to correctly
parse a non-pathed URI, i.e. 'scheme://'
2001-08-24 02:21:16 +00:00
Wez Furlong
f20e9fa298 - Add support for chinese encodings to htmlentities/htmlspecialchars
(patch from Alan Knowles <alan_k@hklc.com>)
2001-08-23 10:43:15 +00:00
Jeroen van Wolffelaar
3e62bd0867 Reverted the patch to main branch - should have branched whole
ext/standard...
2001-08-22 22:14:08 +00:00
Jeroen van Wolffelaar
43c2bc364f Commit forgotten fix in crypt.c, oversight of a BC-problem 2001-08-22 22:11:57 +00:00
Gavin Sherry
bd4150ed80 Fixed buffer overflow issue. 2001-08-22 05:47:11 +00:00
Gavin Sherry
ff7a694e0f Changed php_strip_tags() to check if <? was XML code. 2001-08-22 02:03:14 +00:00
Joey Smith
1c10503029 Hmmm...not sure what this was trying to do. stat() was acting like filesize(). 2001-08-21 23:58:19 +00:00
Zeev Suraski
e140b35b04 API update 2001-08-21 12:57:53 +00:00
Sascha Schumann
01672af8f0 Improved fix 2001-08-20 15:27:45 +00:00
Stanislav Malyshev
902100a692 Fix long printing in smart_str_print_long 2001-08-20 15:26:10 +00:00
Stanislav Malyshev
8fd65b9f16 test big numbers too 2001-08-20 14:15:05 +00:00
foobar
d3aff0f6ee make this test work. 2001-08-18 16:47:02 +00:00
Sterling Hughes
807b49aa2f K&R format changes 2001-08-18 08:43:47 +00:00
Sterling Hughes
03724a70e9 Z_*_P{0,2} macro work. 2001-08-17 09:10:49 +00:00
Sterling Hughes
c53f80fb23 1) update to the ZEND_NUM_ARGS() and Z_*_P{0,2} macros
2) minor ws improvements, removing unecessary error checking logic, and
making the error messages a bit nicer looking
2001-08-17 09:08:03 +00:00
Sterling Hughes
06aa7a4d19 Cleanup of var_dump() with correct macro's, k&r indent, and removal of a
pair of unnecessary { }
2001-08-17 07:50:15 +00:00
Sterling Hughes
844788a4b8 pval -> zval
Z_*_P{0,2} macros
easier way of doing urldecode(), from rawurldecode() (a tad faster too).
2001-08-17 07:41:20 +00:00
Sterling Hughes
591aba3c89 ws fix. 2001-08-17 07:07:34 +00:00
Sterling Hughes
6bc04c0858 Clean up the function for the Zend API (php3, early php4 relics removed).
Use PF_INET, instead of AF_INET, if present.
remove some code enclosed in #if 0 ... #endif that made no sense
2001-08-17 06:53:26 +00:00
Zeev Suraski
2d8ca548e2 Fix build 2001-08-15 22:49:15 +00:00
foobar
3cc6655f3a Add the build time too. Bug: #12774 2001-08-15 22:37:31 +00:00
Jeroen van Wolffelaar
2b6bafb269 Remove cbrt also, and mark logm1 and exp1p as expermintal 2001-08-15 19:08:59 +00:00
Jeroen van Wolffelaar
d62fbbd5a8 MF407 2001-08-15 19:01:32 +00:00
Sterling Hughes
8300abe367 Removed select(), fd_set(), etc. (wasn't present in the first place, and
these are implemented in the sockwasn't present in the first place, and
 these are implemented in the sockets extension))
2001-08-15 05:21:43 +00:00
Andi Gutmans
4580df1080 - This code looks OK so remove FIXME comment 2001-08-14 17:43:39 +00:00
Zeev Suraski
0116a7b911 Fix crashes in parse_parameters calls
HEADS UP:  Make sure you supply TSRMLS_CC for this function!
I'll try to think of a way that'd allow us to find this issue using
the compiler.
2001-08-13 19:31:18 +00:00
Rasmus Lerdorf
4d11d90880 Track down a few more functions that don't check for 0 args and use
faster mechanism
2001-08-13 07:55:39 +00:00
Rasmus Lerdorf
5b2227ea80 Oops, a little too much simplification there.. ;) 2001-08-13 07:28:57 +00:00
Rasmus Lerdorf
8c497f05c4 We don't consistently check for args passed to functions that don't
take any args.  In some cases we probably want to skip the check for
performance reasons, but in other cases where performance is unlikely
to be a factor, not throwing a warning on the wrong number of args passed
to a function is at best inconsistent, and at worst it could hide a bug.
So, add a few such checks.  There are still lots of cases out there.
2001-08-13 06:43:47 +00:00
Zeev Suraski
49e45baf9b - Fix API
- Update NEWS
2001-08-13 00:32:04 +00:00
Zeev Suraski
35de326b0e Compile fix for oldie Linux systems (possibly others too) 2001-08-12 21:23:15 +00:00
Zeev Suraski
c0404f4631 Whitespace 2001-08-11 17:03:37 +00:00
Wez Furlong
831f05b0fb Fix some build probs on *bsd 2001-08-10 18:02:59 +00:00
foobar
52e3b4a44f Cleanup. Also make gethostnamel() to return FALSE on error and not just empty array. 2001-08-10 02:19:05 +00:00
Zeev Suraski
f47962c7c0 Implement import_request_variables() 2001-08-08 20:05:37 +00:00
Wez Furlong
b00809a322 Fix probs on OpenBSD-current and RedHat 6.1 2001-08-08 20:00:09 +00:00
Zeev Suraski
5eb9495b1b - Implement $_FORM
- Update phpinfo()
- Update NEWS
2001-08-08 17:16:20 +00:00
foobar
001df0d028 Yet another TSRM fix. 2001-08-07 20:13:54 +00:00
Andrei Zmievski
c4555f9f55 @- Added vprintf() and vsprintf() functions that allow passing all arguments
@  after format as an array. (Andrei)
2001-08-07 19:44:45 +00:00
foobar
ac28ca9d85 killed a compile warning. 2001-08-07 19:21:19 +00:00
Andrei Zmievski
32440e3051 Fix a couple of leaks. 2001-08-07 16:41:33 +00:00
Thies C. Arntzen
a35df189b8 we can no longer register internal-classes once the script is started.
therefore the "incomplete class" is now registered at MINIT time.
2001-08-06 13:36:08 +00:00
Sascha Schumann
23b9300fd1 more tsrm cleanup 2001-08-06 03:50:52 +00:00
Jeroen van Wolffelaar
dce78d75d6 Removed some duplicate code out of addclashes
# Not TSRM-safe, I am afraid...
@- addcslashes now warns when charlist is invalid. The returned string
@  remained the same (Jeroen)
2001-08-05 23:08:19 +00:00
Jeroen van Wolffelaar
b3a7b945fa Fix test 2001-08-05 20:27:24 +00:00
Jeroen van Wolffelaar
ec140f4f67 Bugfix in abs(), abs(LONG_MIN) was bogus 2001-08-05 20:27:03 +00:00
Sebastian Bergmann
b4f31ecef5 Fix ZTS build. 2001-08-05 20:25:40 +00:00
Jeroen van Wolffelaar
2e6850a91d Added proto for php_charmask in the .h 2001-08-05 20:02:22 +00:00
Jeroen van Wolffelaar
4a01a15fd2 Error-handling for the second parameter of [l|r]trim 2001-08-05 19:38:49 +00:00
Jeroen van Wolffelaar
71a6c03bef Didn't commit the correct trim.phpt, it now passes 2001-08-05 19:06:34 +00:00
Jeroen van Wolffelaar
860be31cae More tests 2001-08-05 18:38:48 +00:00
Sascha Schumann
a19563c8dc more tsrm cleanup 2001-08-05 16:52:29 +00:00
Sascha Schumann
480ffb3d75 more tsrm cleanup 2001-08-05 16:43:57 +00:00
Sascha Schumann
b349df6364 some more eliminate-fetches-or-escalate-them-at-least 2001-08-05 16:21:33 +00:00
Sascha Schumann
373b3e101e more tsrm cleanup -- output.c is not doing any fetches anymore 2001-08-05 15:55:43 +00:00
Stanislav Malyshev
c7d7834a43 Check that _php_math_basetolong result fits long (by request from Troels Arvin) 2001-08-05 14:40:14 +00:00
Zeev Suraski
1159c84ab7 - TSRMLS_FETCH work
- whitespace fixes
2001-08-05 01:43:02 +00:00
foobar
d800a2e16a - Fixed bug: #10822
- CRYPT_SALT_LENGTH is now set to the maximum length the system
  supports, like it has been in the documentation for ages.
- The automatic salt is now also working like it should.
2001-08-04 23:58:56 +00:00
Jeroen van Wolffelaar
c105f7142f Better abs() testing 2001-08-04 21:40:34 +00:00
Jeroen van Wolffelaar
fcf57d371d Layout: revert accidentel joining of lines 2001-08-04 21:37:43 +00:00
Jeroen van Wolffelaar
2b17cd1982 Named some constants in filestat to improve readability 2001-08-04 21:34:11 +00:00
Jeroen van Wolffelaar
68df8ea465 Another bugfix in pow. Special cases, with 10 times the same thing are
_so_ error_prone... :(
2001-08-04 20:58:47 +00:00
Rasmus Lerdorf
7d5999fb4d Kill a warning 2001-08-04 20:52:35 +00:00
Jeroen van Wolffelaar
b245789bdb Bugfix. All tests pass now on my system 2001-08-04 18:29:37 +00:00
Jeroen van Wolffelaar
58ee4e47a4 Fix bug in the tests :-(
There seems to be one real bug in pow(), I'm trying to fix it...
2001-08-04 18:03:29 +00:00
Thies C. Arntzen
dca5f8dce4 fix serialize:
- keys no longer have a trailing \0
- no leak on calling __wakeup (also saved 2* malloc & free)
- serializing objects that implement __sleep() works again
- make test works again:-)
2001-08-04 17:29:54 +00:00
Andrei Zmievski
bffbe675f9 @- Fixed a crash bug in array_map() when NULL callback was passed in. (Andrei) 2001-08-04 16:54:20 +00:00
Thies C. Arntzen
3884b15b95 fix possible crash - we should never keep the zval** as they might point
somewhere into the Engine. (there's still a new bug in strtok - hunting;-)
2001-08-04 16:53:57 +00:00
Sean Bright
d789d45a2e WS Pollution 2001-08-04 13:47:44 +00:00
Jeroen van Wolffelaar
0cf60d749e Added tests for pow()
#The tests near LONG_MAX/MIN fail, I know that
2001-08-04 13:20:31 +00:00
Jeroen van Wolffelaar
8803bbaa80 - A little bit cleaning of pow(), and 12 bytes less memory (wow) 2001-08-04 13:11:17 +00:00
Sean Bright
fff883689e Don't allocated quoted strings unless we are in a META tag. 2001-08-04 12:36:51 +00:00
Sebastian Bergmann
724b4d409c Eliminate TSRMLS_FETCH() call. 2001-08-04 05:37:11 +00:00
Sebastian Bergmann
ea79632b29 Fix Win32 (and maybe other ZTS) builds. 2001-08-04 05:22:55 +00:00
Sascha Schumann
c947a0739e Clean up the serializer by modularizing some of its code. That also
enables us to serialize hash indices without creating zvals for them.
Due to its nature, this patch also includes some whitespace changes.
2001-08-04 03:30:38 +00:00
Jeroen van Wolffelaar
dc4adaa231 #- HTML-safe error for pow() 2001-08-03 23:27:23 +00:00
Jeroen van Wolffelaar
b32f1ab299 #- Fix silly bug that caused segfault 2001-08-03 23:10:04 +00:00
Jeroen van Wolffelaar
f0bcaf3901 Un-revert patch 2001-08-03 23:09:05 +00:00
Jeroen van Wolffelaar
f6979a7d2b Reverting last patch, segfaults. 2001-08-03 22:42:02 +00:00
Jeroen van Wolffelaar
7733d95770 - New pow() function. It now gives warnings on wrong input, and
returns integer result when possible
@- New pow() implementation, which returns an integer when possible,
@  and warnings on wrong input (jeroen)
2001-08-03 22:19:11 +00:00
Jeroen van Wolffelaar
c2150f7038 - Added new parameter to [l|r]trim, to specify _what_ to trim
@- Added optional second parameter to trim, chop and ltrim. You can
@  now specify which characters to trim (jeroen)
2001-08-03 22:12:46 +00:00
Jeroen van Wolffelaar
49c16290f3 - Fix array_sum to switch to float on overflow. Fixes bug#12505 2001-08-03 19:18:51 +00:00
Sascha Schumann
d6dc2ba6bc Treat trailing zeroes correctly 2001-08-03 11:09:13 +00:00
Sascha Schumann
723bbcbea0 Do the nul'ifiying of php_var_serialize's result at the right place 2001-08-03 11:00:16 +00:00
Sascha Schumann
f6ed403fde Don't copy the strtok parameter 2001-08-03 09:50:38 +00:00
Sascha Schumann
84aed3b718 Fix a possible segfault (Thanks to Sebastian for catching it) 2001-08-03 09:36:14 +00:00
Sascha Schumann
3459f05a07 NUL-terminate string 2001-08-03 09:35:33 +00:00
Sascha Schumann
7471943c06 Replace our strtok implementation with a binary-safe one which code
does not cause headaches when reading it.  Also happens to be a bit quicker.
2001-08-03 08:49:19 +00:00
Sascha Schumann
4dfa91543c Convert serializer to smart_str.. avoids lots of sprintf's and
copying of data.
2001-08-03 07:25:27 +00:00
Zeev Suraski
2ec440078a Get rid of a couple of bogus persist_alloc()'s, and some cleanup 2001-08-03 07:15:14 +00:00
Frank M. Kromann
2794a0e69a These new math functions are not supported on Win32 2001-08-01 16:55:24 +00:00
Andrei Zmievski
fa6b5cdde7 - Added a few new math functions from Jesus Castagnetto.
- Converted to Z_* macros.
@- Added a few new math functions. (Jesus)
2001-08-01 13:48:14 +00:00
foobar
bad630553b fix build. 2001-08-01 00:13:02 +00:00
Zeev Suraski
15cb7ca021 Fix some warnings 2001-07-31 23:32:24 +00:00
Zeev Suraski
b1de7fc900 More TSRMLS_FETCH annihilation. Enough for today... 2001-07-31 07:09:49 +00:00
Zeev Suraski
bc42c37513 More TSRMLS_FETCH work. Got it under 400 now. 2001-07-31 06:28:05 +00:00
Zeev Suraski
aa1772ca72 More TSRMLS_FETCH annihilation 2001-07-31 05:44:11 +00:00
Zeev Suraski
d76cf1da18 More TSRMLS_FETCH work 2001-07-31 04:53:54 +00:00
Zeev Suraski
e629be7b5b Fix a crash bug in assert 2001-07-31 02:59:44 +00:00
Zeev Suraski
9f4c0ae6c0 More TSRMLS_FETCH work 2001-07-30 09:16:46 +00:00
Zeev Suraski
c43806f415 Zend compatibility patch 2001-07-30 08:24:42 +00:00
Zeev Suraski
797a079a95 More TSRMLS_FETCH work, and a bit of cleanup 2001-07-30 06:18:13 +00:00
Zeev Suraski
b0224d51da Zend compatibility patch 2001-07-30 05:36:18 +00:00
Zeev Suraski
7b1c400631 More TSRMLS_FETCH annihilation (Zend compatibility patch) 2001-07-30 04:58:07 +00:00
Zeev Suraski
1c25b8dd53 Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on the way 2001-07-30 01:56:43 +00:00
Andi Gutmans
354f1158d8 *** empty log message *** 2001-07-29 08:40:41 +00:00
Andi Gutmans
442890f3e1 - And more... 2001-07-29 08:20:30 +00:00
Andi Gutmans
b99a590be3 - More object macros 2001-07-29 08:14:29 +00:00
Andi Gutmans
d42f85427a - Use object macros 2001-07-28 18:40:18 +00:00
Zeev Suraski
d87cc976e1 Redesigned thread safety mechanism - nua nua 2001-07-28 11:36:37 +00:00
Zeev Suraski
fe6f8712a4 - Get rid of ELS_*(), and use TSRMLS_*() instead.
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
2001-07-27 10:16:41 +00:00
Sascha Schumann
d256fbf2b8 Get rid of memchr in SEARCHCR(). 2001-07-25 21:06:01 +00:00
Andi Gutmans
afaa0085bb - MSHUTDOWN needs to return SUCCESS/FAILURE 2001-07-24 03:52:16 +00:00
Thies C. Arntzen
b660a9f553 fix newly introduced mem-leak in assert-module 2001-07-23 16:13:34 +00:00
Sascha Schumann
8492ece5f6 While researching a crash-bug in mail(), I found these two goldies.
Replace php_escape_shell_(arg|cmd) with straight-forward implementations.
2001-07-22 21:32:55 +00:00
Rasmus Lerdorf
cc44119bf6 Left-over outdated comment 2001-07-21 15:51:40 +00:00
Zeev Suraski
336004f4bc Improved bailout mechanism, supports nested bailouts a-la try..catch
Note:  You may *not* return directly from a catch block
2001-07-21 14:27:56 +00:00
Zeev Suraski
20d53346ce Remove redundant code 2001-07-21 12:43:23 +00:00
Sascha Schumann
09ce807bf1 Drop memchr() in php_memnstr in favor of manual scanning. This reduces
the complexity of the function and is about 20% faster on Linux/x86.
2001-07-21 03:26:31 +00:00
Zeev Suraski
38e5a2077d Clarify and optimize 2001-07-21 01:15:18 +00:00
Rasmus Lerdorf
bf513871bc Fix more crashes related to this switch to z_value 2001-07-21 00:14:14 +00:00
Zeev Suraski
11c2acc34a Retain downwards compatibility - cool idea Jon :) 2001-07-20 17:10:04 +00:00
Zeev Suraski
ef9504cafc Fix UNIX build 2001-07-20 15:06:51 +00:00
Zeev Suraski
6f297a370a Fix Windows build 2001-07-20 14:40:30 +00:00
Zeev Suraski
13ac04b8e5 Avoid getting bailouts on text output during shutdown. Text output is now
'officially' disabled during shutdown (this doesn't change the Apache module
behavior, but may change behavior of other server modules, in which it was
possible to emit output during shutdown;  I think it's a good step towards
consistency, though)
2001-07-20 13:59:00 +00:00
Sascha Schumann
4ebcdd9929 Add optional support for using boyer-moore to str_replace. 2001-07-20 01:22:29 +00:00
Stanislav Malyshev
dfe15ad070 Fix warnings 2001-07-19 08:12:12 +00:00
Sascha Schumann
dcc60b7f4a The lcg needs to operate on signed 32-bit integers, so use
the proper php_int32 types here.
2001-07-18 22:55:52 +00:00
Sascha Schumann
e8fe8f9d99 Provide typedefs for php_int32 2001-07-18 22:54:55 +00:00
Stanislav Malyshev
f0c879bb26 Make variables receiving long be long
Fix binary (x,o,b) formats - they should not be signed
2001-07-18 16:48:52 +00:00
Stanislav Malyshev
cdf0532ad3 Make read always 0-terminate strings 2001-07-16 15:44:36 +00:00
Zeev Suraski
2edcf835ed Update cast 2001-07-15 22:49:25 +00:00
Zeev Suraski
94f5950438 Get rid of var_uninit() 2001-07-15 19:03:04 +00:00
Zeev Suraski
85b4df53c0 Improved interactive mode - it is now available in all builds, without any significant slowdown 2001-07-15 14:08:58 +00:00
Zeev Suraski
4e1c65b42b Fix an inline 2001-07-15 14:08:23 +00:00
Andi Gutmans
fbc8f3f51d - Faster without calling strlen() 2001-07-14 16:41:58 +00:00
Rasmus Lerdorf
8406c2d682 Fix for bug #11632 2001-07-14 15:08:36 +00:00
James E. Flemer
771e3e498f o Fixed Bug #12121: chdir and safe_mode
- [ main/safe_mode.h ] added new checkuid mode:
    CHECKUID_ALLOW_ONLY_FILE: skips directory check if file check
	fails

  - [ ext/standard/dir.c ] changed php_checkuid() to use
    CHECKUID_ALLOW_ONLY_FILE instead of CHECKUID_ALLOW_ONLY_DIR

  - [ main/safe_mode.c ] added code for new checkuid mode

o Fixed Bug #12119: safe mode owner check can be bypassed with symlink
  - [ main/safe_mode.c ] use VCWD_REALPATH to resolve destination
    of symlink before trimming filename

o New Feature: safe_mode_include_dir (php.ini directive)
  - Allows bypassing UID/GID checks when including files
    from the directory in safe_mode_include_dir and its
	subdirectories. (safe_mode must be on, directory must
	also be in include_path or full path must be used when
	including)

o Fixed Feature: safe_mode_gid (php.ini directive)
  - Correctly check (and report) UID/GID bits on directories

o Changed include() fall back to scripts cwd implementation
  - CWD added to the (local) search path in php_fopen_with_path()
    instead of seperate case. [ main/fopen_wrappers.c ]
2001-07-13 18:21:21 +00:00
Thies C. Arntzen
ba17fadbfb @ - Fixed crash in iptcparse() if the supplied data was bogus. (Thies) 2001-07-13 14:35:05 +00:00
Sascha Schumann
87d99aa93c Allow extensions to define custom prealloc sizes 2001-07-11 23:13:55 +00:00
Thies C. Arntzen
5676e5ad05 use ZVAL_* macros 2001-07-11 15:27:37 +00:00
Thies C. Arntzen
0ef0f8e32b ZVAL_BOOL(v,0) -> ZVAL_FALSE(v) 2001-07-11 12:42:25 +00:00
Stanislav Malyshev
adc98200d6 More correct pseudo-fix
# This is not really a fix. This thing is still broken. I will think on
# how to really fix it. Any suggestion is *welcome*.
2001-07-11 11:45:05 +00:00
Zeev Suraski
66d94bc655 Nuke zval_reset 2001-07-11 11:39:10 +00:00
Zeev Suraski
d70ce7be27 var_reset -> ZVAL_RESET 2001-07-11 09:39:09 +00:00
Shane Caraveo
ff4dfc56f2 prevent php from crashing when serializing circular data.
This script produced the crash.
<?
$hash["test_key"] = "test_value";
$hash["hash_key"] = &$hash;
echo serialize($hash);
?>
2001-07-11 05:57:18 +00:00
Rasmus Lerdorf
45d71e2951 Make range() function smarter
@ - Improve range() function to support range('a','z') and range(9,0)
@   types of ranges.  (Rasmus)
2001-07-09 20:36:47 +00:00
Andrei Zmievski
f42519ffbd *** empty log message *** 2001-07-09 18:54:59 +00:00
Sascha Schumann
aee2ff3ec9 __USE_GNU should not be defined by an application. 2001-07-09 17:44:07 +00:00
Rasmus Lerdorf
934e10c7dc Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
a gid check instead of a uid check.
@ - Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
@ a gid check instead of a uid check. (James E. Flemer, Rasmus)
2001-07-09 17:36:04 +00:00
Derick Rethans
9869ecc9b7 - Added php_escape_shell_arg to the header file 2001-07-09 17:02:50 +00:00
Thies C. Arntzen
61822fcd47 @ - assert() now accepts the array(&$obj,"methodname") syntax. (Thies)
+ some cleanups
2001-07-09 10:20:41 +00:00
Thies C. Arntzen
e7b01fc53c added test for assert 2001-07-09 09:08:14 +00:00
Thies C. Arntzen
08546ef0e8 changed to use Z_* macros 2001-07-09 09:04:19 +00:00
Thies C. Arntzen
1be0975dff added test for serialize
changed var.c to use Z_* macros
2001-07-09 09:03:06 +00:00
Sascha Schumann
28efce4019 Reset strtok_string, so that strtok can be used in all session handler
functions.
2001-07-08 23:28:48 +00:00
Shane Caraveo
fd2c27c061 Enable using an external mailer under windows.
1. this depends on the patch to fix tsrm I sent to dev
2. this provides backwards compatibility, as long as sendmail_path in the ini file is empty, the old internal mailer will be used, once sendmail_path is defined, the external sendmail program will be used.

I tested with indigomail from www.indigostar.com, which provides the same command line interface as sendmail no linux.
2001-07-08 22:30:11 +00:00
Sascha Schumann
69d129bdfb Needed for the prototype of php_escape_shell_cmd(). 2001-07-08 19:09:59 +00:00
Sean Bright
9d05cba6b8 This should be lower-cased per the documentation and previous
implementation.
2001-07-05 23:29:11 +00:00
Wez Furlong
4948cb1691 More ifdefs, just in case. 2001-07-05 10:53:15 +00:00
Wez Furlong
ca9c4b3753 Added loads of #ifdefs; should fix Bug #11889. 2001-07-05 10:49:58 +00:00
Derick Rethans
832fe2e636 - Fix for the first part of Bug #11890
@- Fixed a bug that allowed users to spawn processes while using the 5th
@  parameter to mail(). (Derick)
2001-07-05 08:47:37 +00:00
Jason Greene
e48bc17c58 Fix build on linux
Heads up Wez
2001-07-05 07:12:28 +00:00
Sascha Schumann
ef13ab5750 Improve url scanner speed (up to 40% for large chunks of data)
and handle some corner cases better.  The scanner has been changed
to the format as proposed in "RE2C - A More Versatile Scanner Generator"
by Cowan et al.
2001-07-04 15:30:21 +00:00
Wez Furlong
f1364ebf3e (PHP nl_langinfo) Added function when provided by OS
(PHP htmlentities, htmlspecialchars) Uses nl_langinfo to determine charset
@- Added nl_langinfo() (when OS provides it) that returns locale
   information. (Wez Furlong)
# There are a lot of constants used by nl_langinfo; should we do something
# along the lines of what we do for syslog?
2001-07-04 10:10:30 +00:00
Zeev Suraski
551f1831a7 Fix a major thread safety bug in the output mechanism
@- Fixed a major memory corruption bug in the thread safe version (Zeev)
2001-07-02 18:17:10 +00:00
Derick Rethans
91424b2b91 - Fixed proto's (Patch by Zak) 2001-07-02 11:11:58 +00:00
Daniel Beulshausen
4aa6ae493e PHPAPI-ize php_var_* functions
# need this for shm*
2001-07-01 20:18:51 +00:00
Sean Bright
55fecbab76 Remove unused variable. 2001-07-01 14:07:44 +00:00
Sean Bright
1b0356e0f7 Fix for bug #11796. Also, fixed a problem in get_meta_tags that required
NAME and CONTENT to be in that order.  Meta tags with no CONTENT attribute
are now added to the array as empty strings.  Meta tags with no NAME
attribute are ignored.
2001-06-30 20:07:12 +00:00
Zeev Suraski
f35b85b4c1 Fix bug #11678 2001-06-26 18:30:31 +00:00
Zeev Suraski
49d1e26143 Fix Win32 build 2001-06-26 13:33:24 +00:00
Hartmut Holzgraefe
045acafc52 @added optional suffix removal parameter to basename() (Hartmut)
added optional suffix removal parameter to basename()
this makes it more simmilar to the basename command
2001-06-23 00:51:03 +00:00
Sascha Schumann
6558ae6f21 dup fds before fdopen'ing them, so that people cannot deliberately
close stdio streams.

This needs to be tested on non-UNIX platforms.

PR: #11599, #8624
2001-06-22 07:07:48 +00:00
Thies C. Arntzen
bd4f32cf12 - fixed the reference in session thingie
- regression test checked (this time;-)
- added new regression test for references
- references _between_ session variables also work in when the session var
  replaces an already existing global var (this was a brain twister)
- saved one strlen call per session variable
- fixed one tiny leak
2001-06-21 18:46:26 +00:00
Sascha Schumann
d6d59a9ee5 1. st_blksize might be different for regular files and symlinks; hence
ignore differences in the twelfth element of the stat() array.

2. The 'test.file' is created by the script, thus the owner of the file
   is the user id executing the script.  A mode of 0654 does not grant
   the owner the right to execute the file and therefore, the correct
   output here is "not executable."
2001-06-21 11:15:38 +00:00
Colin Viebrock
a367c39c2e date('W') now returns week of year (ISO 8601) 2001-06-20 18:07:53 +00:00
Thies C. Arntzen
03ae0d775b add PLS_FETCH(); 2001-06-20 15:46:47 +00:00
Rasmus Lerdorf
94897efc36 Fix for #11570 2001-06-20 14:47:26 +00:00
Andi Gutmans
c977f29862 - Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable)) 2001-06-19 16:03:35 +00:00
Sebastian Bergmann
e4f109b69f Finish phpinfo() HTML 4.01 tweaking. 2001-06-19 15:21:28 +00:00
Sebastian Bergmann
615cf785c1 Fix crash bug in urlencode(). 2001-06-19 15:20:50 +00:00
Sebastian Bergmann
499334e498 Make output of phpinfo() compliant with HTML 4.01. 2001-06-15 18:34:09 +00:00
Stanislav Malyshev
5ad3d2828f Fix potential crash 2001-06-14 15:36:10 +00:00
Daniel Beulshausen
e4a2620d80 update credits 2001-06-14 10:05:41 +00:00
Zeev Suraski
1093ed17fb Clean-up
Remove a lot of 100% redundent code
2001-06-13 17:04:36 +00:00
Daniel Beulshausen
491fcd2ef8 used in extension(s) as well 2001-06-11 15:18:44 +00:00
Daniel Beulshausen
c6b4e55838 PHPAPIize url function to make them available to the outside (i.e. mbstring) 2001-06-11 15:14:04 +00:00
Daniel Beulshausen
cae817a520 move some constants to a more appropriate place 2001-06-11 14:46:44 +00:00
Rasmus Lerdorf
81af7edbd0 Blowfish detection patch from Alexander Bokovoy <ab@avilink.net> 2001-06-07 12:18:02 +00:00
Rasmus Lerdorf
81e2cf03ac Fix folding and clean up some extensions 2001-06-06 13:06:12 +00:00
Rasmus Lerdorf
25c3a3a39d vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
foobar
fadd1472ea Fix bug: #9713 2001-06-04 02:04:46 +00:00
Andrei Zmievski
daefeb59d5 Kill warning. 2001-05-29 20:32:57 +00:00
Stanislav Malyshev
ca8c8264db Fix the reference serializer
# Hope now it is right...
2001-05-29 13:19:24 +00:00
Wez Furlong
8b5edf1a9e Fix compile warning 2001-05-29 10:14:46 +00:00
Wez Furlong
d38cba8697 Added charset awareness to htmlentities() and htmlspecialchars(); use an
optional third parameter to specify the charset; otherwise tries to determine
it from the LC_CTYPE locale setting.
2001-05-28 11:00:06 +00:00
Sterling Hughes
b2bd3b315f move to php_strtok_r() 2001-05-27 01:18:12 +00:00
Andi Gutmans
fe1dbf644f - Add prototype. 2001-05-24 12:54:05 +00:00
Andi Gutmans
4ddb24366f - Fix problem of output initialization 2001-05-23 16:52:45 +00:00
Sterling Hughes
17e5edbf18 @ Added the CONNECTION_ABORTED, CONNECTION_TIMEOUT and CONNECTION_NORMAL
@ constants. (Zak)
2001-05-23 03:37:53 +00:00
John Donagher
639b957f74 Add missing end-folding delimiter 2001-05-23 01:50:11 +00:00
Andi Gutmans
177934732b - Start nuking not needed GINIT 2001-05-22 19:19:04 +00:00
Jon Parise
311278f273 @ - Fix disk_free_space() and disk_total_space() under FreeBSD. (jon)
FreeBSD defines statfs(2) in <sys/mount.h>.  Teach PHP to look for it there.
2001-05-22 02:45:04 +00:00
Andrei Zmievski
4d78270b4e Moving some functions into Zend. 2001-05-21 15:47:52 +00:00
Andi Gutmans
d160031c7d - EG's are passed automatically to internal functions. 2001-05-21 15:27:11 +00:00
Sean Bright
0b716d18b1 Added get_defined_constants() function. Returns an associative array of
constants mapped to their values.
@- Added get_defined_constants() function to return an associative array of
@  constants mapped to their values. (Sean)
# If anyone sees a problem let me know.
2001-05-21 13:36:42 +00:00
foobar
fcfbb0cce6 This looks better. 2001-05-20 01:31:53 +00:00
Derick Rethans
dc43b9f574 - Reversed 'fix' for #9698
- Fix for bug #9698/#10681 (patch by kettler@gmx.net)
@- Added the 'u' modifier to printf/sprintf which prints unsigned longs.
@  (Derick)
2001-05-20 00:23:49 +00:00
Rasmus Lerdorf
ae3dda8285 Fix bug #9526 2001-05-19 22:50:44 +00:00
foobar
16b94858b6 Fixed bug #10964 2001-05-19 22:21:40 +00:00
Sascha Schumann
d5cfb03ac9 munmap() file in RSHUTDOWN, if PHPWRITE fails. 2001-05-18 23:38:46 +00:00
Sascha Schumann
0255bb01e4 Files should be shared among processes. 2001-05-18 17:48:43 +00:00
foobar
ad366598a6 Fixed bugs: #10297, #10615, #10783, #10880 2001-05-16 04:50:49 +00:00
Jon Parise
82b31fb7a3 @ - Added disk_total_space() to return the total size of a filesystem.
@   (Patch from Steven Bower)
2001-05-15 23:43:18 +00:00
Jon Parise
6c5db8d2d7 @ - Renamed diskfreespace() to disk_free_space() to conform to established
@   naming conventions. (jon)
2001-05-15 23:28:17 +00:00
foobar
613aacf0b0 MFB 2001-05-15 02:05:33 +00:00
Andrei Zmievski
1f9808b4ee Clean up call_user_func_*(). 2001-05-14 20:56:05 +00:00
Sterling Hughes
803bebb303 Use zend_is_callable to test whether or not the given callback is valid
before calling the function.
2001-05-14 20:06:06 +00:00
Sterling Hughes
47ee387d79 Use zend_is_callable() and fix sp of deprecated. 2001-05-14 19:19:03 +00:00
Sterling Hughes
c58fdadc1f Couple of changes (and a little whitespace correction, sorry to mix :(
1) Depreciate the call_user_method*() variety of functions, their
    functionality can be easily duplicated by using the call_user_func*()
    functions (using the array(&$obj, "method") syntax).

    2) Change some pval's to zval's.

    3) Improve the error handling mechanism of call_user_func*() to report
    an the class name and the function name if an object or class name is
    given.
2001-05-14 19:02:23 +00:00
Derick Rethans
6123e2abe0 - Bumbed up the warning level to be in sync with fopen (which is E_WARNING
too) (See bug #10856)
2001-05-14 18:30:07 +00:00
Andrei Zmievski
8a86d17882 Need to use ELS_FETCH() here. 2001-05-14 14:16:44 +00:00
Andrei Zmievski
553e04be2f @- Fixed a bug in call_user_*() functions that would not allow calling
functions/methods that accepted parameters by reference. (Andrei)

* Allow separation of arguments in call_user_* functions - this allows calling
  functions that force parameters by reference.
* Use executor function table instead of compiler one.
2001-05-14 13:24:03 +00:00
Wez Furlong
615086c2c9 prototype for php_file_le_stream() 2001-05-12 21:49:13 +00:00
Wez Furlong
7a88deb402 expose streams to other extensions. 2001-05-12 21:48:39 +00:00
Sascha Schumann
afdaee9e47 Nuke more quotes 2001-05-12 11:09:05 +00:00
Jason Greene
c115a75544 Rewrote stat() and fstat() to be memory efficient, due to a recent
thread on php-dev.

Note: I added a macro that might have use in other instances, but for now
is included in php_filestat.h
2001-05-11 19:55:44 +00:00
Derick Rethans
04bd8d9174 Tabs please... 2001-05-11 13:34:49 +00:00
Sebastian Bergmann
e69f4dc51c Fix for bug #10815. 2001-05-11 13:32:10 +00:00
Jason Greene
7f3291ae8c Fix is_executable test. 2001-05-11 02:45:49 +00:00
Jason Greene
0ed93d71b2 @fstat() and stat() now return identical output by returning a numerical and
@string indexed array (Jason)

(Andrei's suggestion to still allow backwords compatibility.)
2001-05-11 01:47:46 +00:00
Andrei Zmievski
f071e8c566 Always free the callback_name when using zend_is_callable(). 2001-05-10 16:30:12 +00:00
Zeev Suraski
4c10e198e2 Fix buggy line split 2001-05-10 14:25:48 +00:00
Andrei Zmievski
8112d1beba @- Added is_callable() function that can be used to find out whether
@  its argument is a valid callable construct. (Andrei)
2001-05-09 20:06:39 +00:00
Zeev Suraski
ff11c36dc5 Avoid crashing if somehow, output is sent in a new thread tha had no requests 2001-05-07 22:00:13 +00:00
James Moore
f3342a5b55 Fix win32 build 2001-05-06 19:20:25 +00:00
Derick Rethans
9f5e71bd42 - Nuke warning 2001-05-06 18:53:45 +00:00
Derick Rethans
b181237582 - Partial fix for bug #9050, support for "Jan 19 2000" date format 2001-05-06 18:33:49 +00:00
foobar
6c21f7ef0f Moved ts_alloca_id() into MINIT like Andi requested. 2001-05-06 17:55:10 +00:00
foobar
8e006f81af Fix bug: #8834. Now there should be more random salts.. 2001-05-06 16:54:27 +00:00
foobar
9d1817ed7f Fix bug: #10323. Every value outputted is now escaped. 2001-05-06 15:20:56 +00:00
Wez Furlong
4f943b6012 Fixed win32 build problem. 2001-05-06 09:39:11 +00:00
Wez Furlong
3ffb8e3800 Nuke buffering from php_streams, move connect_nonb() from fsock.c to network.c
and rename to php_connect_nonb().
Use php_connect_nonb() instead of connect() in php_hostconnect() -> timeouts
should now work in php_hostconnect().
sock streams abstraction now uses php_sockbuf as the "abstract" pointer.
2001-05-05 18:36:22 +00:00
Sebastian Bergmann
d92522c8d1 Nuke unreferenced local variables. 2001-05-04 06:25:10 +00:00
Derick Rethans
8909c33319 - Applied a patch that enables getimagesize to return the size of .bmp and
.psd files (Patch by Paul Jongsma <paulj@webtic.com>)
@- Added support to getimagesize to return dimensions of BMP and PSD
@  files (Derick)
2001-05-03 21:28:26 +00:00
Andi Gutmans
4c823e8a89 - Change macros from V_ to VCWD_ because of AIX name clash 2001-04-30 12:45:02 +00:00
David Croft
34f03f2c5c @ - Added key_exists() to check if a given key or index exists in an
@ array or object (David Croft)
Added key_exists() to check if a given key or index exists in an array or object
2001-04-30 04:06:09 +00:00
Andi Gutmans
91451bfcaf - Remove leak from opendir() under Windows. Maybe readdir.c should be
changed to use emalloc()
PR:
Submitted by:
Reviewed by:
Obtained from:
2001-04-29 18:06:56 +00:00
Andi Gutmans
21603118b1 - Fix bug Bug id #5987. It could be fixed by changing readdir.c but I
- prefered not to touch that code but to treat windows a bit differently
- in dir.c
PR:
Submitted by:
Reviewed by:
Obtained from:
2001-04-29 17:57:23 +00:00
Derick Rethans
b8ad2e842d - 'Fix' for bug #10145 2001-04-29 15:48:07 +00:00
Sean Bright
a98c9ba66f Fix proto decription. 2001-04-29 13:30:56 +00:00
Sean Bright
596e8208be Really fix bug #10362.
# My previous fix caused a segfault when there were parens in an unallowed
# tag :(  Thanks Andi.
2001-04-29 13:16:05 +00:00
Sean Bright
9e34117cd9 Fix for bug #10362 2001-04-28 23:07:51 +00:00
Sean Bright
4175151567 - Fix for bugs #9042, #8212, and #8962. Patch from <tunacat@yahoo.com>
- Fixed proto for exec()
2001-04-28 13:16:18 +00:00
Sterling Hughes
1865be6ca4 fix for bug #8994, courtesy tom.anheyer@berlinonline.de
# Are we having another RC, and if so, can I MFH in time for it?
2001-04-26 13:47:17 +00:00
Rasmus Lerdorf
e8e6828863 - Make the printf functions binary clean
@ - Make the printf family of functions binary clean
2001-04-25 21:05:59 +00:00
Andrei Zmievski
07a5e3fb9c * Made ENT_* defines availabe to other functions.
* The key/variable names in WDDX are now html escaped to not break XML.
@- Fixed WDDX serialization to HTML-escape key/variable names so as not to
@  break the XML packet. (Andrei)
2001-04-25 20:14:29 +00:00
Andi Gutmans
ef1835f54f - Fix filetype() and lstat() too. 2001-04-25 06:30:24 +00:00
Andi Gutmans
ef71855bc6 - Another fix 2001-04-25 05:53:45 +00:00
Andi Gutmans
502b4efb7d - Nuke warning. This signed/unsigned stuff gets really annoying sometimes. 2001-04-25 05:43:30 +00:00
Andi Gutmans
76860d4fc0 - Fix problem with is_link(), there seem to be at least another couple of
- bugs lurking around though.
- Cleaned up code a bit and optimized it a bit too.
2001-04-25 04:22:29 +00:00
Stig Bakken
2cf1b8d345 * expanded the following constants and made them available in PHP:
DEFAULT_INCLUDE_PATH
  PEAR_INSTALL_DIR
  PHP_EXTENSION_DIR
  PHP_BINDIR
  PHP_LIBDIR
  PHP_DATADIR
  PHP_SYSCONFDIR
  PHP_LOCALSTATEDIR
  PHP_CONFIG_FILE_PATH
* no longer generating pear/PEAR.php
* fixed some tests
* some more installer work
2001-04-22 01:09:14 +00:00
foobar
d9b2f7910e ws pollution removed. 2001-04-20 15:37:55 +00:00
Wez Furlong
86c84da7c2 Discovered warn_not_available and used it. 2001-04-17 17:08:03 +00:00
Wez Furlong
57af70f707 Changes for streams. Added temporary fopenstream function to PHP so that
the streams can be tested.
2001-04-17 17:06:06 +00:00
Alexander Feldman
f0abfcc894 Fixed typo. 2001-04-15 19:03:12 +00:00
Alexander Feldman
531b8042ad We shoud not fseek in a pipe and this caused a problem with popen and
fgets on the platforms where the buffer fix was applied (Solaris, FreeBSD).
Now the fseek is done only when the handle is of type fopen.
2001-04-15 18:42:50 +00:00
Thies C. Arntzen
9a42a31ba4 @- Fixed crash in pathinfo() 2001-04-13 18:22:13 +00:00
Sean Bright
b936138fd3 Constand should be case sensitive.
# Thanks Sterling
2001-04-09 21:12:54 +00:00
Jon Parise
5464d29551 Fix whitespace (use tabs). 2001-04-09 21:08:47 +00:00
Sean Bright
ec6f1887f8 Stop SIGSEGV on Apache startup. Patch from <adam@indexdata.dk> 2001-04-09 20:56:49 +00:00
Rasmus Lerdorf
334cba47b9 printf argnum (parameter swapping) support from Morten Poulsen 2001-04-09 15:44:24 +00:00
Stig Bakken
368c6bf003 @Add DIRECTORY_SEPARATOR constant ('/' on UNIX, '\' on Windows) (Stig) 2001-04-08 21:57:13 +00:00
foobar
176f5847be ws pollution removed. 2001-04-07 21:46:43 +00:00
André Langhorst
9762f64222 fix proto 2001-04-07 15:43:06 +00:00
foobar
62c517d124 spaces to tabs 2001-04-05 18:48:03 +00:00
foobar
c34d2b91da Added new configuration directives:
arg_separator.input and arg_separator.output
2001-04-04 20:46:26 +00:00
foobar
83b5a2fb0c SCO (and maybe others) do not have this defined. 2001-04-03 10:51:16 +00:00
Anil Madhavapeddy
d26ec12ba2 Free the correct output buffer, to avoid a segfault on a HEAD request
when using output buffering with a custom handler (patch by zeev@)
2001-04-02 16:45:27 +00:00
James Moore
e52ec10341 remove rogue ZEND_GET_MODULE() 2001-04-02 16:37:50 +00:00
Andrei Zmievski
221a5a60b6 Use correct string length. 2001-04-02 13:20:16 +00:00
Zeev Suraski
b865380edb Fix headers handling with output buffering 2001-03-31 22:53:19 +00:00
André Langhorst
7d50e21a4b fix typo 2001-03-28 20:08:49 +00:00
André Langhorst
339ac67ce3 fix proto 2001-03-28 19:41:38 +00:00
Derick Rethans
c713967de3 - 'Fix' for bug 10002 2001-03-27 17:21:45 +00:00
Sascha Schumann
fa068b5297 Fix ZTS build 2001-03-24 01:08:13 +00:00
Romolo Manfredini
01ac20050e Added target ownership check in function copy for safe_mode operations 2001-03-23 09:30:51 +00:00
Stephen van Egmond
7f48c7adf5 Simple patch to deal with lack of fields in the BeOS implementation of rusage. 2001-03-23 04:36:29 +00:00
Sean Bright
90f3e09f08 Fixed prototype. 2001-03-22 14:43:48 +00:00
Ben Mansell
6d7ce5ffa0 UnixWare 7.1 does not have EX_TEMPFAIL or (as far as I can tell)
a concept of a temporary failure response to pclose().
2001-03-21 15:15:31 +00:00
Sean Bright
e249545165 Fix for bug #9698.
# Anyone that can think of a way to fix long2ip(), feel free.
2001-03-21 13:53:38 +00:00
Fredrik Öhrn
3c5ed324dd Fix erronous out of bounds error message in rand(min,max) 2001-03-20 20:48:42 +00:00
Andrei Zmievski
d9aa966a44 @- Added array_map() function that applies a callback to the elements
@  of given arrays and returns the result. It can also be used with a
@  null callback to transpose arrays. (Andrei)
2001-03-19 21:20:02 +00:00
Stephen van Egmond
3b8140e47c fixed a (C++) warning about implicit conversion from void* 2001-03-17 20:35:38 +00:00
Zeev Suraski
34b2fc4a6c Fix the output buffering bug Andre found 2001-03-17 03:03:50 +00:00
Andrei Zmievski
770c66125d @- Added array_filter(), which allows filtering of array elements via
@  the specified callback. (Andrei)
2001-03-16 20:46:33 +00:00
Andrei Zmievski
f7f2cf9de5 All user callbacks should be to EG(function_table). 2001-03-16 19:51:08 +00:00
Frank M. Kromann
6195f14633 Fixing build on Win32 by adding missing BLS_FETCH(); 2001-03-16 19:48:40 +00:00
Andrei Zmievski
561cc74389 @- Fixed all relevant array functions to avoid moving the internal array
@ pointer during operations. (Andrei)
2001-03-16 19:29:23 +00:00
foobar
88f41b4e91 This has got to be the last one.. 2001-03-16 18:18:01 +00:00
foobar
8913a7350e Missed this one. 2001-03-16 14:45:46 +00:00
foobar
ab560941ee This should fix problems in systems without libbind. 2001-03-16 07:13:06 +00:00
Jon Parise
01008bb03c Whitespace (spaces to four-column tabs) 2001-03-15 05:07:31 +00:00
James Moore
2e22b01cf1 Adding webteam to credits. 2001-03-14 21:28:58 +00:00
Sascha Schumann
a4ec164698 Fix ZTS build 2001-03-14 13:38:03 +00:00
Zeev Suraski
8b5a768640 Make get_browser() read its information from $HTTP_SERVER_VARS[] if available 2001-03-13 23:20:23 +00:00
Stanislav Malyshev
0fa068e1fa Prevent memory leak 2001-03-12 10:14:00 +00:00
Stanislav Malyshev
be83ba17da Use hash position with array_flip 2001-03-12 08:07:00 +00:00
Andrei Zmievski
40dd7eef96 This will have to do until the docs come along. 2001-03-12 03:10:15 +00:00
Andrei Zmievski
d73ef12429 @- Added array_reduce(), which allows iterative reduction of an array
@  to a single value via a callback function. (Andrei)
- Added array_reduce(), which allows iterative reduction of an array
  to a single value via a callback function.
- Fixed usage of zend_is_callable() in PCRE.
2001-03-12 03:06:53 +00:00
Alexander Feldman
397c76d787 Fixed a compatibility problem is some file functions (fgets, fputs, fread,
fwrite). The ANSI standard says that if a file is opened in read/write
mode, fseek() should be called before switching from reading to writing
and vice versa.
2001-03-11 10:08:27 +00:00
foobar
6795032cb8 HAVE_BINDLIB --> HAVE_LIBBIND 2001-03-11 03:49:21 +00:00
Andrei Zmievski
8d677828b9 @- Fixed argument checking for call_user_func* functions and allowed
@  specifying array($obj, 'method') syntax for call_user_func_array. (Andrei)
2001-03-09 21:42:26 +00:00
Zeev Suraski
9a04f870ab Fix freeing of buffers 2001-03-06 19:38:33 +00:00
Zeev Suraski
93e9e7521a Fixes to internal output buffering 2001-03-06 18:29:00 +00:00
Zeev Suraski
0ece429a16 More internal output buffering fixes 2001-03-06 16:28:51 +00:00
Zeev Suraski
20d2432c86 Fix internal output buffering 2001-03-06 16:25:14 +00:00
Zeev Suraski
13a97fefeb Initial work on internal output handlers - should be much quicker 2001-03-06 15:54:49 +00:00
Sean Bright
5d3939ac39 Typo.
# I don't know where I got 4.02 from
2001-03-06 04:42:04 +00:00
Sean Bright
64ad839328 get_meta_tags now allows attributes that are not quoted as well as those
that are.  It follows the HTML 4.01 specification for attribute values
outlined here -> http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
2001-03-06 04:34:05 +00:00
Sean Bright
dca3c8753f get_meta_tags now handles single quoted attributes as well as those that
are double quoted.
2001-03-05 00:20:41 +00:00
Zeev Suraski
1b38207410 I don't know German, but I imagine that was the problem :) 2001-03-04 22:03:23 +00:00
Zeev Suraski
1000a86e5f Fix phpinfo() bug that crept in 2001-03-04 15:49:38 +00:00
Zeev Suraski
a22ada795f Improve memory consumption on chunked output buffering 2001-03-04 15:46:13 +00:00
Frank M. Kromann
f6f67ffd62 Changed code layout to remove PHP warning when running php as a CGI. 2001-03-04 02:41:27 +00:00
Zeev Suraski
c64fe7fbe1 Fix non-thread safe mode 2001-03-04 01:45:19 +00:00
Zeev Suraski
0117c7848e this function will never return true... 2001-03-04 01:17:21 +00:00
Zeev Suraski
0a98aa6ada Improve chunked output buffering - the output handler now knows at which stage it is 2001-03-04 01:09:36 +00:00
Andrei Zmievski
80cdb812c1 @- Forced call_user_method() and call_user_method_array() to take the
@  object argument by reference. (Andrei)
* Forced call_user_method() and call_user_method_array() to take the
  object argument by reference.
* Also cleaned up the protos for those functions and brought
  call_user_method_array() into functional equivalence with
  call_user_method().
2001-03-02 20:22:14 +00:00
foobar
d3ce7f294c ws fix 2001-03-02 00:15:49 +00:00
Andi Gutmans
01ed33d1b6 - Pointed out by Andrei. zval_ptr_dtor() should be used instead of the
zval_del_ref() function which should be nuked.
2001-02-27 20:16:35 +00:00
Zeev Suraski
b8787bf2d8 Fix chunked output buffering support 2001-02-27 00:09:14 +00:00
Sascha Schumann
95b3347d8b Provide proper function aliases, if the sendmail functions
don't exist.

Submitted by: Nadir Amra <amra@us.ibm.com>
2001-02-26 20:26:07 +00:00
Andi Gutmans
7fbdc83318 - Fix whitespace 2001-02-26 15:49:38 +00:00
James Moore
08d3e700fa Fix for bug #9449 to stop infinate loop in wordwrap. 2001-02-26 13:04:00 +00:00
Andi Gutmans
eb6ba01d1c - Fix copyright notices with 2001 2001-02-26 06:11:02 +00:00
Sascha Schumann
b37b5f93aa Don't assume that tzname exists, if tm_zone does not exist.
PR: #9380
2001-02-24 21:18:28 +00:00
Sascha Schumann
a40ee1f181 Actually compile on systems without syslog.
PR: #9412
2001-02-24 21:08:15 +00:00
Sascha Schumann
c2fb53bed7 Finish fopen-wrappers rename. 2001-02-23 22:07:16 +00:00
André Langhorst
9fa484104e fix stas' last commit, added additional ifdefs PHP_SIGCHILD to fix win32 build 2001-02-23 05:08:15 +00:00
Stanislav Malyshev
77d14126b1 Safer bin2hex 2001-02-22 10:36:40 +00:00
Stanislav Malyshev
4cda96691c Fix #8992, patch by yasushi_takahashi@tsuken.co.jp 2001-02-22 10:15:52 +00:00
Jon Parise
b0af96a9fe The php_rand() and php_srand() functions added in the previous commit
require the inclusion of php_rand.h.
2001-02-22 03:37:32 +00:00
James Moore
118c015529 Adding php_rand() and php_srand(seed) as a wrapper around random, lrand48 and rand. 2001-02-22 00:24:19 +00:00
Andrei Zmievski
8d7972b69b Fix memory leak. 2001-02-21 17:22:26 +00:00
Sascha Schumann
47f7795594 Correctly check for the existence of the st_rdev field.
Note that this field is required to exist for SUSv3 conformance.

Submitted by: amra@us.ibm.com
PR: #9358
2001-02-21 07:18:28 +00:00
Daniel Beulshausen
714e340a3b proper prefix for lookup_hostname 2001-02-20 20:52:53 +00:00
Daniel Beulshausen
a96174dbe3 make socket functions available to the outside 2001-02-20 20:34:14 +00:00
Daniel Beulshausen
721d59948e make gd work again under win32 2001-02-20 18:00:44 +00:00
Jason Greene
ffa08fc26e Changed default behavior of array_search to match in_array
(strict was default on, and is now default off)
2001-02-20 16:44:57 +00:00
Andrei Zmievski
1424e36315 Rename to array_search(). 2001-02-20 14:23:03 +00:00
Jason Greene
1888a98a4b Moved the core of in_array into the function php_search_array, which is called by
in_array and search_array (new)

@ Added search_array which works similar to in_array but returns
@ the key instead of a boolean. (jason@php.net)
2001-02-20 05:36:40 +00:00
Derick Rethans
82c2851bcc - Fix for bug 9277, two the same boundaries make sense in some cases 2001-02-19 19:20:47 +00:00
Thies C. Arntzen
e9c4218470 [p]fsockopen: fixed possible leak 2001-02-18 18:54:41 +00:00
Thies C. Arntzen
d6aab98541 fixed buffer-overwrite 2001-02-18 18:31:31 +00:00
Sascha Schumann
7911be587b Add all necessary includes for these header files. 2001-02-16 18:55:58 +00:00
Egon Schmid
d27ebba71f Wrong return type. 2001-02-16 13:13:52 +00:00
Egon Schmid
bbe53dedcc Small typo. 2001-02-15 20:33:09 +00:00
Thies C. Arntzen
8499b430cf @- Fixed some modules to allow using output-buffering. (Thies)
i nuked all unneded calls to php_header() - i'm not too sure how we do
handle HEAD Requests as they were only detected via php_header(). but calling
php_header from a module makes output-buffering unusable.

NOTICE: there is some EBSDIC stuff in gd.c - i think it's obsolete.
2001-02-15 14:49:01 +00:00
Thies C. Arntzen
5ca813a564 0..255 2001-02-15 14:01:18 +00:00
Sascha Schumann
637e8e14aa There might be more systems which do not support chroot, so we check
for the existence of it.

Additionally, if chroot is not supported, the warn_not_available function
is invoked now.
2001-02-15 05:21:27 +00:00
Derick Rethans
8cef8a9ca1 - chroot does not work on windows 2001-02-15 00:43:44 +00:00
Derick Rethans
2648283b5b - Added an extra chdir("/"); as sugested by Sascha 2001-02-14 11:02:54 +00:00
Derick Rethans
4a54a15fc6 - Added the chroot function for changing root in a script.
#- This can be usefull when using PHP in a shell environment, or when PHP
#  runs as CGI which needs a little more security
2001-02-14 10:48:48 +00:00
Sean Bright
ef2e1a72cf Fix for bug #4556
# This is pretty much a total rewrite of get_meta_tags using a simple
# handwritten tokenizer.  It might be overkill, but it works.
2001-02-11 02:38:40 +00:00
Rasmus Lerdorf
e0c4bd742e Stray ] 2001-02-09 16:42:55 +00:00
Rasmus Lerdorf
4877d13ffa What the heck is CUT? Assume someone meant UTC here. And fix a
warning.
2001-02-09 15:28:23 +00:00
Jim Jagielski
e541a27eed For those lucky systems with both random() and *rand48(), the random()
family is the prefered choice. So if both exist, we now choose that.
2001-02-06 16:27:08 +00:00
Stephen van Egmond
b10273781a Added tests for arpa/*.h and resolv.h which don't exist on the BeOS.
The dns functions on BeOS come from socket.h
2001-02-06 00:07:21 +00:00
Zeev Suraski
bf84618244 Fix Windows build 2001-02-05 21:59:17 +00:00
Derick Rethans
cf11a4fbc8 - Added a new parameter to mail() which appends aditional command line
parameters to the mail program. This is usefull to set the From headers
  correctly with the -f parameter to sendmail p.e.
@- Added a new parameter to mail() which appends aditional command line
@  parameters to the mail program. (Derick)
2001-02-05 21:30:29 +00:00
Andrei Zmievski
5355703cf3 Allow calling static methods via call_user_method_* functions. 2001-02-05 17:37:47 +00:00
James Moore
efa9319c64 Adding Sebastian Bergmann to QA team list. 2001-02-05 10:18:14 +00:00
James Moore
7a85ec55f7 Adding microtime() tests 2001-02-04 16:56:59 +00:00
James Moore
712f09d2a8 Always return a value even if HAVE_GETTIMEOFDAY is not set 2001-02-04 16:18:36 +00:00
Rasmus Lerdorf
6745b16c82 Fix strip_tags to not strip a lone > character
@ Fix strip_tags to not strip a lone > character (Rasmus)
2001-02-02 13:47:02 +00:00
Stanislav Malyshev
5af00138e9 Add utility function 2001-02-01 10:24:02 +00:00
Andi Gutmans
0611acb910 - Change unset() functions to null(). unset() is legacy 2001-01-31 21:53:30 +00:00
jim winstead
36ef109f1a jouni was added as an author of the docs 2001-01-23 00:50:49 +00:00
Andrei Zmievski
63f73bfe13 @- Improved str_replace() to accept an array for any parameter - similar
@  to preg_replace(). (Andrei)
2001-01-22 21:39:55 +00:00
Andrei Zmievski
21aeba29d0 @- Fixed extract() to properly prefix numeric keys when EXTR_PREFIX_ALL is
@  used. (Andrei)
@- Added EXTR_PREFIX_INVALID flag to extract() to automatically prefix
@  string keys that do not constitute valid variable names. (Andrei)
2001-01-22 17:27:02 +00:00
Rasmus Lerdorf
83cf6629ec @BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
BeOS patch from svanegmond@bang.dhs.org modified somewhat by Rasmus
2001-01-21 17:29:15 +00:00
foobar
ee73470370 @- Added URL support for getimagesize() function (Jani)
# tested with all imagetypes. Also the iptc works.
2001-01-19 16:52:40 +00:00
Derick Rethans
9a3cb4559f - Fix for bug #8367 (wordwrap not cutting correctly) 2001-01-18 21:46:24 +00:00
Andrei Zmievski
4ea7ba79c5 @- Fixed 'O' and 'r' flags of date() to have correct sign for timezone
@  offset. (Andrei)
2001-01-18 14:36:43 +00:00
Andrei Zmievski
ccd94c4831 @- Changed 'Z' flag to date() to always return timezone offset with
@  negative sign if it's west of UTC. (Andrei)
2001-01-17 21:09:16 +00:00
Sean Bright
457888ac44 Put these back where they belong. They weren't necessary unless ZTS and
HAVE_LOCALECONV were both defined.
2001-01-17 20:37:49 +00:00
Sean Bright
a588d65591 Added string comparison function strcoll(). It uses the current locale to
do the comparisons.
@- Added localeconv() and strcoll() functions for localization. (Sean)
2001-01-17 01:10:50 +00:00
Zeev Suraski
0592feb2a1 Nuke a couple of warnings 2001-01-15 10:48:48 +00:00
Rasmus Lerdorf
e37d304d35 Name this php_Exec instead 2001-01-14 16:41:06 +00:00
Sean Bright
40f3524247 Added localeconv() function. Operates similarly to localeconv() defined in
locale.h.  Should work well under non-ZTS as well as ZTS.
2001-01-14 16:36:30 +00:00
Rasmus Lerdorf
5311bfa5c5 Export _Exec for extensions to use 2001-01-14 16:30:22 +00:00
Thies C. Arntzen
6b84fb1cde fixed readfile() fd-leak.
guys, always remember that every function that *generates output* could cause a
bailout if ignore_user_abort is set to false (and the user _aborts_ the
connection). in this case a longjump will be performed and our function (in
this case readfile) will have no chance to clean-up. having said that it's a
good idea to register all opened files using REGISTER_RESOURCE - that way the
engine will make sure they get closed on request end.
2001-01-14 14:11:38 +00:00
David Croft
00db616ac4 reserve space for quoted characters
fixes buffer overrun bug #8694
2001-01-14 05:37:33 +00:00
Zeev Suraski
a85da45a66 Both thread-safe and thread-unsafe builds should be ok now 2001-01-13 23:49:44 +00:00
Derick Rethans
97510346ed - Removed a stale var that broke the build 2001-01-13 22:00:23 +00:00
Derick Rethans
1104639d0a - There was one ret left, changed it to FG(pclose_ret), this fixes the
build
2001-01-13 21:52:09 +00:00
Zeev Suraski
86624dfad9 - Fix exec() bug
- Merge fsock and file globals
2001-01-13 13:59:22 +00:00
Zeev Suraski
6562e98afa Fix Windows & thread-safe build 2001-01-13 13:02:19 +00:00
Stig Venaas
5cf503b2a9 Follows redirects again, and $http_response_header now contains all headers
with an empty string as delimiter
@- Made fopen() of HTTP URL follow redirects, $http_response_header will
@  contain all headers with empty string as delimiter (Stig Venaas)
2001-01-12 20:49:25 +00:00
Thies C. Arntzen
6871b839b5 exec'd processes now get cleaned up even if the browser connections was
aborted.
fixes: #8143
2001-01-10 13:08:14 +00:00
David Croft
2b3d9d7ec4 fixed swatch internet time (bugs#8242,7106) 2001-01-10 06:48:06 +00:00
David Croft
0afe88cbc6 Allocate buffer in date() for the actual length of the timezone (bug#8292) 2001-01-10 04:01:02 +00:00
Sascha Schumann
7eb8469679 Avoid possible memory leak in the URL scanner, if the connection is
interrupted during writing the output.
2001-01-09 16:45:19 +00:00
Rui Hirokawa
187828f2f2 moved to ext/iconv. 2001-01-09 15:40:49 +00:00
Rui Hirokawa
0afcb03de3 added iconv extension. 2001-01-09 15:11:23 +00:00
foobar
e247b206e0 If TZ environment variable is changed call tzset().
# Although man page for tzset() says it should be called automaticly
# by some of the time related functions, IRL this doesn't happen.
# PR: 3977, 4732, 5510, 6972, 7203, 8502, 8609
2001-01-09 09:02:21 +00:00
Sascha Schumann
dbb3402c0f php_add_var_hash() uses sizeof(id) in the calls to zend_hash_*, implying
that all bytes in the character array have been set (they are used
to compute the hash value using hashpjw).

The function assumes that sprintf's %p modifier would always prefix
the output with "0x".  On HPUX, this is not the case.  Hence, not
all bytes may be properly initialized before being read.

This has been addressed by using only initialized bytes as the key.
2001-01-09 05:49:37 +00:00
Sascha Schumann
7fbc93d57f WS fix 2001-01-08 23:18:07 +00:00
Sascha Schumann
6a6317a403 Fix ZTS build (broken by iconv-related changes). 2001-01-08 23:13:57 +00:00
Andrei Zmievski
145f60a485 @- Changed extract() to check that prefixed name is a valid one. (Andrei)
Changed extract() to check that prefixed name is a valid one.
Optimized extract() a bit too.

# It'd be nice if someone made regression tests for extract().
2001-01-08 21:57:14 +00:00
Derick Rethans
aff9ff8356 - Fix for bug #8535 - floating point exception on FreeBSD while initializing
crypt random numbers
2001-01-08 21:13:24 +00:00
Andrei Zmievski
74175e429d @- Changed extract() to return the number of variables extracted. (Andrei) 2001-01-08 20:57:59 +00:00
Stanislav Malyshev
b06323cd6e Optimize it a bit - no need to dup empty string (which can be pretty common for .ini) 2001-01-08 20:13:32 +00:00
Stanislav Malyshev
77ebea3a6f Duplicate property value, otherwise parser would free it and we're in bad shape. 2001-01-08 20:10:16 +00:00
Stanislav Malyshev
d812ecb75f Fix undefind filehandle type on INI parsing. 2001-01-08 19:45:12 +00:00
Stanislav Malyshev
c7984660fc Use platform's dir separator 2001-01-08 16:39:39 +00:00
Rui Hirokawa
6368933118 added iconv_set_encoding() to change the encoding setting. 2001-01-08 02:39:52 +00:00
Rui Hirokawa
517b81ad43 added a output handler function ob_iconv_handler which tranforms output encoding using iconv(). 2001-01-08 01:40:33 +00:00
Stig Venaas
7e79846d10 Added OpenSSL 2001-01-07 21:35:20 +00:00
Zeev Suraski
c4d673a1f9 Fix possible startup crash 2001-01-07 18:56:40 +00:00
Derick Rethans
62375ba7bd - Fix for bug 7035, regarding PHP_MAX_SALT_LENGTH for OpenBsd 2001-01-07 17:22:17 +00:00
Daniel Beulshausen
be5cfa608a fixed date not allocating enough buffer, bug 7963 2001-01-05 17:34:47 +00:00
Zeev Suraski
bd0ac7fe14 Many patches. I hope I remember them all:
- Make sapi_module available to external modules (PHPAPI)
- Make the php.ini path reported in phpinfo() always point to
  real full path of the php.ini file
- Optimized the ISAPI module not to read unnecessary server
  variables and read necessary variables at most once.
2001-01-02 22:49:31 +00:00
Chuck Hagenbuch
ba114dc997 Make the generated <input> lower case and terminated with a /,
to be xhtml-compliant.
2001-01-02 20:39:27 +00:00
Rasmus Lerdorf
a35b9c45f5 Fix date('r') overflow
@Fix date('r') overflow
2001-01-02 20:26:51 +00:00
Stig Venaas
c5b11042b0 Hopefully solves some bad behavior in array_unique(), array_intersect()
and array_diff(). Now using SORT_STRING instead of SORT_REGULAR
@- Fixed misbehavior of array_unique(), array_intersect() and array_diff();
@  could in certain cases give wrong result or segfault (Stig Venaas)
2000-12-28 23:50:42 +00:00
Jon Parise
4e384e0073 Make nl2br() output <br /> instead of <br> to be XHTML compliant.
Bug: 8390
2000-12-28 01:02:44 +00:00
Zeev Suraski
338b9b0819 - Make the INI mechanism thread safe (fix necessary API changes from Zend)
- Make the Win32 non-TS configuration build again
2000-12-27 15:43:05 +00:00
Sascha Schumann
3a16dc1cac Fix segfault introduced through recent zend_hash_get_current_key* changes. 2000-12-24 15:50:39 +00:00
Sascha Schumann
0b194cbca6 Support multi-char arg separators.
PR: #8274
2000-12-22 22:52:11 +00:00
Sascha Schumann
9815d5c94c Signal an error condition, if write was unable to perform the complete
operation.
2000-12-22 19:26:02 +00:00
Sascha Schumann
663d426e74 NULL is a valid return value of mmap. Check against (void *) MAP_FAILED. 2000-12-22 16:39:01 +00:00
Sascha Schumann
3c9f50efaf (php_file_copy) Use mmap to map the source file into our address space
and then simply write it out to the target file.  That avoids switching
between user and kernel land too many times.  If that does not work, we
fall back to the read/write method.
2000-12-22 16:34:11 +00:00
Andrei Zmievski
a1614b8411 (PHP preg_replace) Fix to allow proper escaping of captured subpattern
references in the replacement string.
(PHP array_sum) Check that argument is an array.
2000-12-22 16:31:42 +00:00
Zeev Suraski
aa6d2ac5d0 Heads up people!
Updated the get_current_key() API - the relevant authors, please take
a look at the updated code and make sure it's ok...
2000-12-22 12:57:09 +00:00
foobar
c29e24c7e2 @- Changed setlocale() to use LC_* constants. (Jani) 2000-12-21 13:46:50 +00:00
Andi Gutmans
73c0f4b4c2 - Use memcmp() instead of ugly char-by-char compare 2000-12-20 15:51:16 +00:00
Zak Greant
9e9688d1de Removed unused variable from is_scalar 2000-12-20 11:07:20 +00:00
Zeev Suraski
48b410c41e Add the QA team to the credits 2000-12-19 22:59:14 +00:00
Stanislav Malyshev
f487f5960a Fix possible crash 2000-12-19 11:23:27 +00:00
Zak Greant
bbf41d2116 Adding test for is_scalar(). 2000-12-18 21:24:25 +00:00
Zak Greant
e4ca57bb57 Added is_scalar() function. 2000-12-18 19:23:50 +00:00
Sascha Schumann
2d011afbfd Don't do anything, if the input string has a length of 0.
PR: #7686
2000-12-17 02:09:07 +00:00
Andi Gutmans
86a1cace27 - Make all places use MAXPATHLEN in the same way. It includes the
terminating NULL.
2000-12-16 20:52:43 +00:00
Frank M. Kromann
1e9acc15cf Fixing compilation on Win32. (and others) 2000-12-15 03:04:09 +00:00
Stig Bakken
6e1e78d1c6 @Added iconv() function (using libc or libiconv) (Stig) 2000-12-15 01:01:14 +00:00
Hartmut Holzgraefe
6b5c37a8c5 enforce lenght limit and catch out-ouf-memory conditions 2000-12-14 16:38:15 +00:00
Sascha Schumann
c0daf14cb3 Don't define LC_MESSAGES, if LC_MESSAGES is not defined.
PR: #8259
2000-12-14 15:58:14 +00:00
Hartmut Holzgraefe
9b1b253548 fgetcsv() will now work correct with empty fields in tab delimited files
# fix for bug #8258 and regression test
2000-12-14 14:18:36 +00:00
Zeev Suraski
944c3b40b4 That slipped in :( 2000-12-13 23:40:44 +00:00
Hartmut Holzgraefe
63e6b0b5bf levenshtein() fixed, regression tests added (bug id #6562 and #7368)
# fallback to unoptimized version for 4.0.4 release
2000-12-13 23:26:19 +00:00
Zeev Suraski
be895bcb96 Fix call_user_function() with objects - it could leak under certain circumstances 2000-12-13 22:50:10 +00:00
Stanislav Malyshev
16987ca15f Fix crash when first argument to strtr is empty 2000-12-13 10:22:36 +00:00
Stanislav Malyshev
0d02c7d337 Open files in binary mode - should fix readfile() on Windows 2000-12-12 17:42:53 +00:00
Zeev Suraski
6239ddfe6d Fix Win32 build 2000-12-11 16:27:48 +00:00
Stanislav Malyshev
a1c20a04ff Fix serializer bug that prevented serializer from working on any
variable that had non-reference copies of the same zval
2000-12-11 14:29:25 +00:00
Thies C. Arntzen
889b717a4c fix #6348 2000-12-11 12:52:52 +00:00
Andrei Zmievski
753e46657f Make php_array_merge() an API function. 2000-12-11 05:36:24 +00:00
foobar
8bb668b226 Added constants for locale categories. 2000-12-10 15:55:34 +00:00
Sterling Hughes
fe13e4b05d @ Added the call_user_method_array function which allows you to call a method with an
@ arbitrary number of parameters. (Sterling)
2000-12-08 14:37:49 +00:00
Sascha Schumann
4078b3cff9 Namespace protect parse_date interface and implementation 2000-12-08 00:12:35 +00:00
Sascha Schumann
9fff35ac9f Hardcode the readdir entry as well 2000-12-07 15:33:30 +00:00
Andrei Zmievski
9b46346a23 We don't want any hard errors in PHP scripts unless absolutely necessary. 2000-12-07 14:54:52 +00:00
Kristian Köhntopp
f5abd4c50b Fugbix in call_user_func_array() if second argument is empty. 2000-12-07 14:14:00 +00:00
Sascha Schumann
4ada3dd3a0 Hardcode all functions which are mentioned in the Large File Support Spec
http://ewe3.sas.com/standards/large.file/specs/api+.007.html
2000-12-07 12:09:38 +00:00
Sascha Schumann
b97e23c4a8 Pass core_globals to new inline functions
Submitted by: Sebastian Bergmann
2000-12-05 11:05:24 +00:00
Sascha Schumann
911abe100a Move code from macros to inline functions to ease debugging 2000-12-04 12:26:53 +00:00
Stanislav Malyshev
5b47d1ef7a Fix #8079 - filetype now knows about sockets 2000-12-03 13:42:54 +00:00
Frank M. Kromann
f9e226fe4a Fixing bug 8061. Position counter starts a 0 but was compared with length.
oops. the fix should be made twice.
2000-12-01 01:55:31 +00:00
Frank M. Kromann
518ab3c62f Fixing bug 8061. Position counter starts a 0 but was compared with length. 2000-12-01 01:26:42 +00:00
Sterling Hughes
2cc8e2f8c7 @ Added the is_null() function that will return true if a variable is of
@ type null. (Sterling)
2000-11-29 15:37:38 +00:00
Sascha Schumann
949b0893dc The result of conv_z_macros and some manual conversion of
"return_value.*=.*IS_STRING" constructs to RETVAL_STRINGL.
2000-11-27 13:31:21 +00:00
Zeev Suraski
d4fc424554 Fix windows build 2000-11-26 14:25:31 +00:00
Sterling Hughes
0d1bcd480c @ Added the call_user_func_array() function which gives you the ability to
@ call a user function by passing an array of parameters as the second
@ argument.

@ Added the constant() function which returns the value of a constant given
@ the constant's name.
2000-11-24 21:05:25 +00:00
Andre Langhorst
96b95bd286 fixed bug 7961 2000-11-24 16:17:58 +00:00
Zeev Suraski
888f376e4c Very initial work on chunked output buffering. It's really unoptimized at
this time, and it can crash under some circumstances, but that's the
concept...
2000-11-23 18:43:18 +00:00
Hartmut Holzgraefe
c534109bce filename wildcards in a c comment were a bad idea 2000-11-23 06:58:14 +00:00
Frank M. Kromann
b24c82e82a changed comment to allow compilation under win32 2000-11-23 01:47:39 +00:00
Hartmut Holzgraefe
e3dae1013d added a "DO NOT EDIT!" header and regenerated the credits_*h files 2000-11-22 23:20:35 +00:00
Sascha Schumann
2c95d6268c Add ircg 2000-11-22 20:46:40 +00:00
Daniel Beulshausen
2fefaba7b6 tsrm realpath implementation is fixed
@ Fixed realpath() in Virtual Directory mode (Daniel)
2000-11-22 10:08:25 +00:00
Sascha Schumann
939b72c771 removing '{' was certainly not intended 2000-11-22 04:16:25 +00:00
Sascha Schumann
886fbabb0b Don't access opt, if opt was not set. 2000-11-22 04:15:27 +00:00
Hartmut Holzgraefe
1f6878e912 2nd step towards auto-credits 2000-11-20 10:33:33 +00:00
Hartmut Holzgraefe
df81663614 first step towards auto-generated credits 2000-11-20 10:05:57 +00:00
Hartmut Holzgraefe
c8a56ea11d typo fix (copy/paste bug?) 2000-11-19 19:18:12 +00:00
Zeev Suraski
030b707296 Update SAPI modules to interface with the new TSRM.
Enable thread-safety memory debugging in ISAPI when in debug mode
2000-11-18 02:44:04 +00:00
Sascha Schumann
5767ab3f75 Reset the state, if there is garbage in an HTML tag.
PR: #7854
2000-11-17 16:27:37 +00:00
Chuck Hagenbuch
eb437a5870 close bug 7851 2000-11-17 16:10:43 +00:00
Kirill Maximov
023a95ae1c @ quoted_printable_decode() function is made RFC-2045 compliant. (Kir)
This hopefully closes bugs #5321, #7138, #7855.
  Test script for the function is added.
2000-11-17 10:55:37 +00:00
Stanislav Malyshev
fb8be26654 Fix crash (#7802) 2000-11-15 09:36:21 +00:00
Sascha Schumann
008d23bb5c Fix allocation 2000-11-14 20:34:14 +00:00
Sascha Schumann
c509dc6dc7 Add persistent memory handling to smart_str API 2000-11-14 15:36:18 +00:00
Kristian Köhntopp
89d6b5b5bd Prototype corrected. 2000-11-12 22:13:35 +00:00
Sascha Schumann
4d6ecaf26b Add Apache 2.0 sapi module and sort alphabetically. 2000-11-11 18:38:26 +00:00
Chuck Hagenbuch
b69dd89d34 RFC822 does specify two digit years, but practically every decent mail
client I could check is using 4-digit years these days.
2000-11-11 17:28:20 +00:00
Colin Viebrock
2a5f8a8906 some changes, and added 'r' flag which generates an RFC822 compatible date string. 2000-11-09 21:30:03 +00:00
Stanislav Malyshev
c9e39592b5 Andi says it should be zval_ptr_dtor 2000-11-07 15:06:43 +00:00
Derick Rethans
e2bb93c575 - Added myself to the credits... 2000-11-06 22:53:11 +00:00
Andrei Zmievski
65f37060db Fix bug #7667. 2000-11-06 19:41:30 +00:00
Stanislav Malyshev
cde5c779dc And now the right fix - should add it still 2000-11-06 18:19:05 +00:00
Stanislav Malyshev
7f1dc85574 Serialize as reference only if it's a true reference 2000-11-06 18:09:51 +00:00
Stanislav Malyshev
dec089e39c Add support to ukrainian characters (by serhiy@society.kiev.ua) 2000-11-06 08:46:12 +00:00
Sebastian Bergmann
c5ff85c8bc Fixed windows build. 2000-11-06 06:31:00 +00:00
John Donagher
ee7821ea7d Bring phpcredits() up to date 2000-11-05 23:34:49 +00:00
Sascha Schumann
d381e0702c PHP_EXTENSION_DIR is defined in build-defs.h 2000-11-05 15:10:47 +00:00
Zeev Suraski
1f9ee4857b Fix the problem Sascha reported, about extension_dir
@- Fixed a bug that prevented a changed compile-time extension_dir from
@  affecting modules that were loaded via php.ini (Zeev)
2000-11-05 15:03:41 +00:00
Andi Gutmans
e314da896f - Fix build 2000-11-04 17:15:00 +00:00
Thies C. Arntzen
b80e71fdac fix #7573
closedir() now really close the directory - used to stay open 'cause the
default-directory resource was "remembered" for arg-less calls.
2000-11-04 14:58:50 +00:00
Jesus M. Castagnetto
cc73072804 Updated proto for highlight_file/highlight_string 2000-11-04 01:18:10 +00:00
Stig Venaas
a5c75761c2 Fixed memory leak in array_diff and array_intersect, was introduced with
last change.
2000-11-03 07:20:35 +00:00
Andi Gutmans
139d5c102b - Make the random generator work again. This patch seems to work. 2000-11-03 00:45:24 +00:00
Andi Gutmans
d0ec3df288 - Use CHECKUID_* #define's instead of cryptic numbers in php_checkuid()
- I did not test for validity of the actual php_checkuid() calls and there
- might be mistakes in the previous code.
2000-11-02 23:08:07 +00:00
David Hedbor
b06998a7d1 Added Caudium to credit line. 2000-11-02 19:07:15 +00:00
Zeev Suraski
816f1f7903 - Fixed a bug that caused PHP not to properly flush its output buffer, if more
than one output buffer was used
2000-11-02 16:46:30 +00:00
Sascha Schumann
9866d899e9 Namespace protect mergesort (caused conflict on Darwin). 2000-11-02 15:32:52 +00:00
foobar
648c141cbc Validators are happy now. 2000-11-01 22:53:42 +00:00
Andi Gutmans
b25b80c147 - Change some estrdup()'s to estrndup()'s 2000-11-01 14:48:00 +00:00
Zeev Suraski
7ab46420be mode_t fixes 2000-10-31 18:05:19 +00:00
Hartmut Holzgraefe
00b8b66132 generalization of image handling in phpinfo 2000-10-31 17:21:52 +00:00
Zeev Suraski
78194a47b7 - Complete the move to the new INI parser. (Side effect: at last, people
can finally have spaces and tabs in their extension statements...)
2000-10-30 23:39:14 +00:00
Stanislav Malyshev
c31faf0bd9 Add support for serializing references.
@- Add support for serializing references (Stas)
# WDDX and shared memory functions not covered yet
2000-10-30 17:10:06 +00:00
Stanislav Malyshev
4b5eb2cf2c Fix crash in sscanf in error handler (#7533) 2000-10-30 16:44:01 +00:00
Stanislav Malyshev
7eed2e5b01 Make "H*" work 2000-10-30 12:26:26 +00:00
Zeev Suraski
f52a59062d parse_ini_file() supports a new optional 2nd argument that instructs it
to divide the directives to arrays according to the sections in which they
reside
2000-10-29 23:34:33 +00:00
Zeev Suraski
60c0835470 Move browscap code to the new modular INI parser 2000-10-29 23:10:22 +00:00
Zeev Suraski
4af433d627 Use the new INI parser for parse_ini_str()
- parse_ini_str() is now thread-safe, and supported under Windows (Zeev)
2000-10-29 22:42:01 +00:00
Zeev Suraski
1fd09132c2 Initial steps to move the INI mechanism to the Zend engine 2000-10-29 11:38:26 +00:00
Thies C. Arntzen
825457ae64 update my email. 2000-10-29 09:14:55 +00:00
Zeev Suraski
3dc7fc54a0 - URL-opened files now store the HTTP response header in $http_response_header
- Some layout updates
2000-10-28 01:31:56 +00:00
Frank M. Kromann
d313ad8bf5 Making _php_math_longtobase() and _php_math_basetolong() callable from DLL and SO modules 2000-10-27 20:26:16 +00:00
Andrei Zmievski
d4cf62f86f @- Fixed array_rand() to shuffle results when the number of requested
@  elements is the same as the number of elements in the array. (Andrei)
2000-10-27 14:08:33 +00:00
Sascha Schumann
9b2a1110a6 Allow users to specify whether they want to replace existing header fields. 2000-10-27 09:43:06 +00:00
Daniel Beulshausen
52e45f514b use V_RENAME makro instead 2000-10-26 18:17:45 +00:00
Sascha Schumann
2517250b35 The type has changed to size_t. 2000-10-26 18:10:57 +00:00
Sascha Schumann
c57830c1d2 Reinstantiate single quotes properly.
Add url_adapt_single_url() API which modifies a single URL. Might be used
to modify the Location: URL.
2000-10-26 18:05:47 +00:00
Sascha Schumann
8ef0d01baf Make the API more leaner (sp?) and get rid of *copy*. 2000-10-26 18:01:51 +00:00
Andrei Zmievski
f1dcb32c9f Use zend_register_list_destructors_ex() instead. 2000-10-25 17:44:02 +00:00
Andrei Zmievski
a35bf41670 Added array_sum() function. 2000-10-25 17:40:11 +00:00
Sascha Schumann
f69a4a431a Fix php://* being handled by the ftp handler 2000-10-22 14:41:02 +00:00
Stig Venaas
e8c7fd7f5f Fixed array_type_data_compare(). I want strings to always differ from
numbers, but not say 7 and 7.0 to differ.
2000-10-22 11:18:21 +00:00
Stig Venaas
4edb210028 Made array_unique use array_type_data_compare instead of array_data_compare 2000-10-21 18:12:30 +00:00
Stig Venaas
508d1993ed Added array_type_data_compare which is like array_data_compare but
compares type first. Also rewrote array_intersect and array_diff,
so that the order is not changed.
@- Made array_intersect and array_diff not alter order (Stig Venaas)
2000-10-21 17:48:11 +00:00
Andrei Zmievski
7b4983c8f8 Mega-patch to get better resource information for modules.
* Fixed a bug in zend_rsrc_list_get_rsrc_type()
  * Switched register_list_destructors() to use
    zend_register_list_destructors_ex() instead
  * Updated all relevant modules to provide the resource type name
    to register_list_destructors() call
  * Updated var_dump() to output resource type name instead of number

@- Made resource type names visible, e.g. var_dump() and
@  get_resource_type() display "file" for file resources. (Andrei)
2000-10-20 18:25:16 +00:00
Sascha Schumann
1d9acd8337 Hack for #7262, not fixed yet 2000-10-19 17:40:56 +00:00
Sascha Schumann
9f71179ca9 Back out circular references protection patch.
This causes problems with serializing regular variables and object
properties.

We need a smarter way to tell whether we have serialized one node
already.

PR: #7291, #7294
2000-10-18 18:32:32 +00:00
foobar
7a54e0b10c Fixed crash (bus error) in readdir() and session cleanup when compiled
with Sun CC.
2000-10-18 14:14:14 +00:00
Stig Venaas
33d15279ac Removed some zval_dtor calls. There were two more than needed, and I had
just added two more...
2000-10-18 13:41:42 +00:00
Stig Venaas
afdf0e759f Added some missing zval_dtor calls in php_fsockopen() 2000-10-18 13:21:08 +00:00
Sascha Schumann
d95bc9b3eb Initialize tags properly.
Submitted by: Andreas Karajannis <Andreas.Karajannis@gmd.de>
2000-10-17 14:17:21 +00:00
Sascha Schumann
2d24f03033 Back out ws changes 2000-10-17 03:02:47 +00:00
Rasmus Lerdorf
b3fb8a6e97 Aha, Sascha made a mistake! ;)
Make this thing compile again without trans-sid
2000-10-16 22:12:28 +00:00
Daniel Beulshausen
1f245a6f73 make compile again 2000-10-16 20:08:27 +00:00
Sascha Schumann
1c85ad029b Enable users to set the HTML tags to rewrite
through a configuration directive
2000-10-16 17:25:36 +00:00
Hartmut Holzgraefe
6d5f1d97f8 now it works for me as CGI and APXS, with or without --enable-debug ... 2000-10-13 10:04:17 +00:00
Daniel Beulshausen
6fb51171c8 compile fixes & update of win32 dsp 2000-10-13 09:13:01 +00:00
Hartmut Holzgraefe
cae27179ce fopen wrappers cleanup
- comfiguration is now done by an ini parameter
    instead of a compile time option
  - the implementations of the three standard wrappers
    now live in seperate files in ext/standard
  - the compiler is happy again, no more warnings
2000-10-13 00:09:31 +00:00
Sascha Schumann
3ee228371d Let strtr() use smart_str to reduce complexity 2000-10-12 01:26:26 +00:00
Sascha Schumann
174253123e Rewrite php_str_to_str using the smart_str API.
This removes much complexity from the function.

Speed is improved by pre-allocating memory instead of reallocating
the buffer each time the pattern is found.
2000-10-12 00:50:28 +00:00
Sascha Schumann
82d199b639 Move structure definition into its own file, so that public header
files don't need to include the complete source code.
2000-10-12 00:48:12 +00:00
Hartmut Holzgraefe
f2ddc10685 proto typo fixes 2000-10-11 13:51:32 +00:00
Hartmut Holzgraefe
332b7125de added missing protos 2000-10-11 11:40:29 +00:00
Hartmut Holzgraefe
be19c812ab added some missing protos 2000-10-11 11:25:13 +00:00
Sascha Schumann
5674f1be45 Ignore close tags and use unsigned char type. 2000-10-04 18:06:20 +00:00
Andi Gutmans
a1abfb7643 - Fix dirname() 2000-10-03 16:47:25 +00:00
Andi Gutmans
d37b140601 - Fix VC++ warning 2000-10-03 14:43:04 +00:00
Andi Gutmans
bf7603cf83 - Now really fix it. 2000-10-02 18:13:53 +00:00
Andi Gutmans
28c96e89e1 - Fix bug in parse_url() 2000-10-02 17:51:30 +00:00
Andi Gutmans
2622eba31d - Cleanup some output functions 2000-09-30 16:13:48 +00:00
Sascha Schumann
4b89b67d1c Don't try to serialize references.
Circular references would otherwise kill PHP, as the serializer
would overrun the stack.
2000-09-29 18:48:40 +00:00
Sascha Schumann
2e4ab68995 Automatic conversion might cause interpretation of 0xff as EOF, so we store
the result in an object of type int first.

Submitted by: melchers@cis.fu-berlin.de
2000-09-27 16:08:26 +00:00
Sascha Schumann
3823ad3ec0 Recognize single quotes around cdata.
Move smart_str functions to an extra file.
2000-09-27 15:26:39 +00:00
Sascha Schumann
1cc3e6b5e6 Move php_memnstr to the header file, so that the function body is available
in all compilation units (note the static linkage).
2000-09-27 15:18:00 +00:00
Sascha Schumann
7db874096e Unify memory allocation in smart_str functions 2000-09-26 11:00:39 +00:00
Stig Venaas
9a9e2e72b0 Small fix to the literal IPv6 parsing, now stops at first ] after [ 2000-09-22 00:33:55 +00:00
Stig Venaas
0776f7d3d7 Parsing of URLs with literal IPv6 addresses, see RFC 2732
@- IPv6 support in fopen (one can access IPv6 ftp/web servers) (Stig Venaas)
2000-09-22 00:12:00 +00:00
Sascha Schumann
854c0622f0 Cleanup SCANNER_DEBUG and don't NUL terminate work buffer 2000-09-20 08:59:52 +00:00
Sascha Schumann
cfa22547e0 Use emalloc and friends. Since we reuse all buffers, this does not affect
the speed.

The smart_str_* functions don't NUL terminate strings anymore. We can
rely on the length of the strings completely.
2000-09-20 08:40:33 +00:00
Sascha Schumann
16d7cb88fa Remove this pseudo optimization from the previous rewrite.
Since we leave/enter the loop more often, the cost of maintaining
c_arg/c_val is higher than simply copying the tag/arg string once.
2000-09-20 08:13:45 +00:00
Sascha Schumann
f27f790f29 Another 5%-10% speed increase achieved by
- making ctx->val read-only
- adding a special appendc function for appending single characters
2000-09-20 08:06:01 +00:00
Sascha Schumann
7aa23d3ca3 Add support for URLs containing NAME info (for scrolling; #name). 2000-09-20 02:04:19 +00:00
Sascha Schumann
cd9ab22f84 Rename prototype to currently used name. These stupid names will go away once
the transition periode ends.
2000-09-20 01:25:19 +00:00
Sascha Schumann
a2dc8a2fa5 2nd Rewrite of the main scanner engine. This version is cleaner and faster.
It handles the following tags currently:

<FRAME .. SRC=URL ..>
<INPUT .. TYPE=IMAGE SRC=URL ..>
<A     .. HREF=URL ..>
<AREA  .. HREF=URL ..>
<IMG   .. SRC=URL ..>

Additional ones can be added within seconds.

The support for HTML forms has been significantly improved. The scanner
will now add proper Hidden Fields for the Session ID.
2000-09-20 01:15:10 +00:00
Sascha Schumann
cc53ad5166 Reduce the amount of copying in the mainloop. We copy tag/arg only, if we
need to preserve them for a new loop iteration (after we leave mainloop).
Otherwise, we can just let them point to the work area.
2000-09-19 20:19:03 +00:00
Sascha Schumann
dd59d14805 Revert part of last commit. I'll refine it later. 2000-09-19 19:18:41 +00:00
Andi Gutmans
c54047b0b0 - Change to Z_BVAL macro 2000-09-19 18:19:02 +00:00
Sascha Schumann
a7ef1966ac Another speedup by avoiding string copies.
15% speed gain in test case (rewriting 1M URLs).
2000-09-19 18:17:28 +00:00
Sascha Schumann
95ae21ff1b Remove nextiter label 2000-09-19 18:01:29 +00:00
Sascha Schumann
7f86b7224c s/DEBUG/SCANNER_DEBUG/. "Convert" one macro to inline function to be more
consistent. Also use continue.
2000-09-19 18:00:58 +00:00
Zeev Suraski
5b0ca1585a Fix a few build bugs, still no go 2000-09-19 17:53:09 +00:00
Sascha Schumann
e07e19f271 The rewrite was completely authored by Hartmut 2000-09-19 17:45:44 +00:00
Sascha Schumann
e2efb3cf06 Remove unnecessary include directive 2000-09-19 17:39:43 +00:00
Zeev Suraski
c45b1c2c8b - Fix warnings
- Fix URL scanner startup crash
2000-09-19 17:37:34 +00:00
Sascha Schumann
4b3fb7b05e Add new URL scanner. This version is up to 20% faster. It will be
enabled by default once I'm sure that it works in every case.

To enable it, apply s/url_adapt_ext/url_adapt_ext_ex/ to session.c
2000-09-19 17:32:27 +00:00
Sascha Schumann
e986a4b0a3 Fix RINIT/RSHUTDOWN functions and add url_adapt_ext() 2000-09-19 17:21:26 +00:00
Stanislav Malyshev
08e1c852aa Fix decbin 2000-09-17 21:11:55 +00:00
Stanislav Malyshev
27fb7df0d2 Add empty string checks to add?slashes 2000-09-17 09:15:48 +00:00
Zak Greant
e9d946d374 Thought that I had just committed something really stupid.
On closer inspection, realized that the proto comments
for chown and chgrp were reversed. :)
I did not realize this and had only fixed chown previously
2000-09-16 05:10:03 +00:00
Zak Greant
e7b0cd7ad2 trivial change
corrected mistake in proto comment for chown fold
2000-09-16 05:02:06 +00:00
Zeev Suraski
6c3d7449e1 - Made eval() and several other runtime-evaluated code portions report the
nature and location of errors more accurately (Stas)
2000-09-12 20:48:33 +00:00
Andrei Zmievski
5470222d70 Forgot to update proto. 2000-09-12 19:04:50 +00:00
Andrei Zmievski
34574352be @- Added second argument to array_reverse() that indicatese whether
@  the original array keys should be preserved. (Andrei)
2000-09-12 19:03:59 +00:00
Daniel Beckham
b852f3941f reversed chomp alias addition as per Andi Gutmans' request 2000-09-12 19:00:21 +00:00
Rasmus Lerdorf
75d73aaffb # missed proto comments 2000-09-12 17:24:46 +00:00
Rasmus Lerdorf
d23ad61dc3 Clean up htmlspecialchars/htmlentities inconsistencies.
@Clean up htmlspecialchars/htmlentities inconsistencies. (Rasmus)
2000-09-12 17:22:37 +00:00
Daniel Beckham
5925071957 added chomp() alias for chop() for us Perl purists. 2000-09-12 15:54:10 +00:00
Stanislav Malyshev
44e04f7688 Make parse_str always register globals with 1 argument and never -
with 2 arguments
2000-09-12 10:56:25 +00:00
Stanislav Malyshev
e0a5a4813e A quick attempt to make parse_str($str,$arr) not register globals. 2000-09-12 10:54:45 +00:00
Andi Gutmans
88b469203c - Fix bug #5997 2000-09-12 04:13:21 +00:00
Derick Rethans
71066c12dc - Fix for bug #6673
- Added a "cut" option to wordwrap (as per feature request #6429)
@ Added an optional parameter to wordwrap that cuts a string if the length
  of a word is longer than the maximum allowed with (Derick)
2000-09-11 20:06:24 +00:00
Andi Gutmans
4b243ebeeb - Remove #if 0 code 2000-09-11 19:04:23 +00:00
Andi Gutmans
824fc6a084 - Move php_open_temporary_file() out of file.c 2000-09-11 18:56:47 +00:00
Sascha Schumann
f45f6d788f Kill a warning 2000-09-11 16:25:36 +00:00
Andrei Zmievski
6ac728e179 (PHP parse_str) ParameterPassedByReference() check is not necessary. 2000-09-11 14:54:12 +00:00
Stanislav Malyshev
1ccac6ed55 Add additional parameter to parse_str for saving result (thanks to
John Bafford <dshadow@zort.net>)
@ Added second parameter for parse_str to save result (John Bafford)
2000-09-11 14:50:26 +00:00
Andrei Zmievski
5abacc5413 (PHP pathinfo) Fixed more typos. 2000-09-11 13:54:59 +00:00
Andrei Zmievski
5ed3e24f47 (PHP pathinfo) Fixed leaks, saved some memory allocations, added
more error checking.
2000-09-11 13:52:22 +00:00
Stanislav Malyshev
e8f3025373 Make unpack("H") work like in Perl 2000-09-10 13:47:51 +00:00
Stanislav Malyshev
4237ddadb5 Fix pack() function reading string beyond the end 2000-09-10 13:34:03 +00:00
Stanislav Malyshev
d443fff043 Fix double unpack bug 2000-09-10 11:03:32 +00:00
Sterling Hughes
0b9a78cb1e @- Added the pathinfo() function. (Sterling) 2000-09-10 05:59:16 +00:00
Zeev Suraski
3115a0ccfe Fix UNIX build 2000-09-09 12:02:31 +00:00
Zeev Suraski
6c4cb4c079 Security related updates:
- Introduce php_open_temporary_file(), in place of tempnam().  Still
  needs testing under UNIX (mkstemp()), works reliably under Windows now.
- Reimplement the mechanism for unlinking uploaded files at the end of the request
  (was it ever tested?).  Files moved with move_uploaded_file() will not be unlink()'d
  again, to avoid (albeit very unlikely) race conditions.
2000-09-09 11:41:14 +00:00
Stig Bakken
7918735b11 * compile fix 2000-09-09 01:15:50 +00:00
Zeev Suraski
3edf46ff73 Implement move_uploaded_file() (untested) 2000-09-08 22:31:21 +00:00
Zeev Suraski
fa6bb59773 Fix build 2000-09-08 22:26:07 +00:00
Andrei Zmievski
b409d2f9ea is_uploaded_file() is probably a better name. 2000-09-08 21:58:28 +00:00
Zeev Suraski
75086e3088 - Implemented is_upload_file() 2000-09-08 21:56:47 +00:00
Stanislav Malyshev
85f42b7f7a Since we don't allow parameters for syslog, we shouln't pass the
string as format
2000-09-08 11:24:08 +00:00
Stanislav Malyshev
662c6c6c06 Fix readdir bug in libc5
@Fix readdir bug in libc5
# If libc5 receives 0 in *result of readdir_r, it just returns error
# That's a clear bug, so this is a workaround.
2000-09-07 17:55:53 +00:00
Thies C. Arntzen
573fe4346d fix #6552 & #6577
thanx to Blake Schwendiman" <blake@intechra.net>
2000-09-06 13:50:09 +00:00
Stanislav Malyshev
3fb701add0 More fixes fo ini_ handling functions 2000-09-05 18:33:02 +00:00
Colin Viebrock
6f59f8b078 str_repeat() should be able to handle multipliers of 0 gracefully, IMHO ...
Hope no one disagrees. :)
2000-09-05 18:25:58 +00:00
Rasmus Lerdorf
4a22d2e832 Add EscapeShellArg() function which turns a b into 'a b' and
a'b into 'a'\''b'
@Add EscapeShellArg() function (Rasmus)
2000-09-05 16:55:32 +00:00
Stanislav Malyshev
be83e732af Fix ini_restore variable length 2000-09-05 14:23:16 +00:00
Sterling Hughes
9f86ff884f @Add a php.ini option session.use_trans_sid to enable/disable trans-sid. (Sterling) 2000-09-04 22:21:10 +00:00
Andi Gutmans
e47d4fe249 - Increase buffers of output buffering to 40KB and 10KB increments which
makes more sense when web pages are typically like 10KB-20KB.
  I think it would be best to change the reallocation algorithm at least to
  redoubling when it's full instead of incrementing and possibly use
  a data structure similar to Zend/zend_static_allocator which uses memory
  blocks and not realloc().
2000-09-03 19:57:06 +00:00
Zeev Suraski
2183e2b0be Make gcc happy 2000-09-03 15:58:50 +00:00
Zeev Suraski
48f13455be Fix init bug 2000-09-03 15:56:54 +00:00
Stanislav Malyshev
a103b94876 Fix quoted_printable_decode (also should fix #6511) 2000-09-03 09:31:25 +00:00
foobar
436ca5d9bb @- Fixed a bug in checkdate() which caused < 1 years to be valid (Jani)
# Bug #6254
2000-09-03 04:09:48 +00:00
foobar
a666910848 Fixed bug #6409.
# And propably numerous other..? Either I am wrong or the documentation is.
2000-09-03 03:50:59 +00:00
Zeev Suraski
cf8e389799 @- Added support for an optional output handler function for output
@  buffering.  This enables transparent rendering of XML through XSL,
@  transparent compression, etc. (Zeev)
2000-09-02 18:03:58 +00:00
Sam Ruby
0240a571c8 Unitialized variable causes trap on Windows 2000-09-02 15:54:18 +00:00
Andrei Zmievski
cd8af6aa44 @- Added support for user defined 'tick' callback functions. This helps
@  emulate background processing. (Andrei)
2000-09-01 16:10:17 +00:00
Zeev Suraski
e065c308e9 - Fix dir.c
- Begin cleanup of php_error_cb()
2000-09-01 12:06:52 +00:00
Sascha Schumann
d60799bf6b Solaris/x86 insists of having a large buffer for storing the result of
readdir_r(), otherwise it will segfault.

PR: #6479
2000-09-01 09:38:19 +00:00
Stig Bakken
1bb90f5805 * all tests should pass now (expect for the interbase stuff that I haven't
had the chance to test)
2000-08-31 22:21:47 +00:00
Andi Gutmans
e8e5c9d97e - Remove redundant IS_SLASH
- Reverse config.w32.h patches
- Use IS_ABSOLUTE_PATH() in one place in fopen-wrappers.c
2000-08-31 19:49:36 +00:00
Colin Viebrock
461f50d50d Remove single quote from HTMLSpecialChars() ... use addslashes(),
htmlentities(), strtr() instead.
2000-08-30 15:27:23 +00:00
Thies C. Arntzen
b1d4fcb33c fix var_dump()s "}"-indention 2000-08-29 11:09:20 +00:00
Rasmus Lerdorf
fc3acfc4d5 Some minor cleanup to make W3C's tidy validator happy 2000-08-27 22:46:40 +00:00
Stig Bakken
315f4f5658 @PHP 3 regression testing framework re-born (Stig)
Took the old PHP 3 regression testing framework and rewrote it in PHP.
Should work on both Windows and UNIX, however I have not tested it on
Windows.  See tests/README for how to write tests.  Added the PHP 3
tests and converted most of them.
2000-08-27 19:46:06 +00:00
Stig Bakken
7eeda99a05 @Added php_uname() function (Stig)
Added php_uname() function.
2000-08-27 19:42:45 +00:00
Andi Gutmans
b79db079a6 - Fix possible overflow in fsockopen(). 2000-08-27 04:14:47 +00:00
Sam Ruby
a0b745a053 Add ***EXPERIMENTAL*** Zend OO Extension support for Microsoft.Net 2000-08-26 12:53:14 +00:00
Stig Bakken
03471b21ee @Added ob_get_length function (Stig)
Added ob_get_length() function (returns size of buffer)
2000-08-25 03:10:42 +00:00
Zeev Suraski
c542f9a3f4 - Fix IMAP build problem
- Allow external DLLs to use warn_not_available
2000-08-24 18:49:49 +00:00
Stanislav Malyshev
b28f6eba38 Make parsedate build again
# I do not really know what's the problem with const, but I do know
# it doesn't compile when declaration and definition don't match
2000-08-23 10:54:13 +00:00
Zeev Suraski
ae49ebf198 'const' is problematic in code in the final section of a Bison file (Bison defines
it away)
2000-08-22 20:59:26 +00:00
Andrei Zmievski
d89c5b231c @- Updated array_walk() to be able to accept array($obj, 'method')
@  syntax for the walk function. (Andrei)
2000-08-22 18:39:29 +00:00
Torben Wilson
410ac013e8 Fixed segfault with fgets(), fgetcsv(), fgetss(), and fread() when
called with negative length argument.
2000-08-21 19:24:44 +00:00
Stanislav Malyshev
02feba6c05 Fix win32 build 2000-08-21 12:56:51 +00:00
Sascha Schumann
6ce467dc13 Get rid of php_global.h and the associated data types UINT4/_POINTER.
We use php_uint32 now globally.

Also removed K&R support from md5.[ch].
2000-08-21 10:10:31 +00:00
Sascha Schumann
8e0ae5d152 Cleaning up some mess 2000-08-21 09:50:53 +00:00
Stanislav Malyshev
5a7409ee1a Fix by-reference passing for scanf's
@- Fix by-reference parameters passing for xml_ functions and for scanf functions (Stas)
2000-08-20 16:09:06 +00:00
Sascha Schumann
b6978fe1af Fix numerus of SAPI Modules title 2000-08-20 14:43:56 +00:00
Stanislav Malyshev
ce0c4a7991 Fix fgetc (#6259) and ftell error condition returns 2000-08-20 13:24:14 +00:00
Sascha Schumann
4ba16a1169 Make use of zend_isinf and zend_isnan. 2000-08-20 06:08:14 +00:00
Sascha Schumann
fbdf502307 Remove php_realpath from build.
It was broken and should not be used in any way.
2000-08-20 05:27:59 +00:00
Jesus M. Castagnetto
e103155d92 Added some more predefined constants 2000-08-19 22:01:37 +00:00
Frank M. Kromann
61df257c0f We only need winsock.h one time 2000-08-19 21:15:43 +00:00
Zeev Suraski
7a45e3cb89 - Update NEWS
- Fix non ZTS Windows build
2000-08-19 18:01:04 +00:00
Sascha Schumann
382dd4a394 Add necessary *_FETCH() macros 2000-08-18 13:50:04 +00:00
Sterling Hughes
890ae1e244 #Its fixed this time, no really. 2000-08-18 13:43:22 +00:00
Sterling Hughes
1b8ee02fd6 Fix #6234 2000-08-18 13:22:09 +00:00
Hartmut Holzgraefe
c1ceeaf830 typo fix in array_diff error message, fixes bug #6236 2000-08-18 12:45:01 +00:00
Hartmut Holzgraefe
867160a751 minor typo fix in proto 2000-08-18 12:28:28 +00:00
Hartmut Holzgraefe
7c7e5a9081 additional include should fix bug #6086 2000-08-17 13:17:14 +00:00
Stanislav Malyshev
56ecc78983 Fix chunk_split (#6208) 2000-08-17 08:47:42 +00:00
Hartmut Holzgraefe
41360c24b6 proto fixed 2000-08-16 12:47:09 +00:00
Stanislav Malyshev
65bb194d65 Fix byteorder for il2long and long2ip (#6159)
@- Fix byte order for ip2long and long2ip (Stas)
2000-08-15 10:32:55 +00:00
Stanislav Malyshev
159abaa900 Fix print length - again
# I hope _this_ is the right fix...
2000-08-14 15:54:57 +00:00
Stanislav Malyshev
821042278e Fix another crash with long formats (#6145)
# From strncpy manual:
# In the case where the length of src is less than  that  of
# n, the remainder of dest will be padded with nulls.
2000-08-14 11:07:28 +00:00
Stanislav Malyshev
97c200b170 Fix non-numbers printing (#6142)
# Please, somebody knowing about floats - check if there's more non-numbers
# seems we should check for all of them
2000-08-14 10:02:14 +00:00
David Croft
1a5d90c4ea presumably this was wrong 2000-08-14 08:37:28 +00:00
Derick Rethans
04720d3b3b - Fixed warning under VC6 2000-08-11 23:24:54 +00:00
Zeev Suraski
a120608807 Make COM work in a multithreaded environment 2000-08-11 13:30:37 +00:00
Thies C. Arntzen
57faf76605 fix #6061 2000-08-09 17:52:30 +00:00
Stanislav Malyshev
ea3a3a1a2d Fix possible crash when stat information is not available 2000-08-08 15:50:28 +00:00
Martin Kraemer
8bf2339870 Bug #6016: Fix EBCDIC logic error in urlencode()
(a strchr() test was used backwards)
Reported by: dumbunny@tivo.com
2000-08-08 09:06:51 +00:00
Egon Schmid
d9cd56ea76 Description from the ChangeLog. Thies, is it correct? 2000-08-06 17:56:56 +00:00
Andi Gutmans
c756ae2d9f Virtualize realpath, chmod, chown and utime
This should fix #5935 and #5904
@- Virtualize realpath, chmod, chown and utime (Stas)
2000-08-06 16:22:07 +00:00
Egon Schmid
868e3b1db8 Changed some protos. 2000-08-06 14:36:10 +00:00
Hartmut Holzgraefe
4e5946adf7 removed a BAD IDEA (tm) that filtered out backslashes 2000-08-06 11:32:32 +00:00
Hartmut Holzgraefe
b19fb9b6bd #ooops 2000-08-04 15:23:19 +00:00
Egon Schmid
48ef7e52a2 Sorry only the *_replaceparameters are wrong. 2000-08-04 11:57:21 +00:00
Egon Schmid
90b4600fe8 Wrong parameters found by Martin Buchholz @ six.de. 2000-08-04 11:50:16 +00:00
Hartmut Holzgraefe
920f6fd1fc ooops - theese new parameters are optional 2000-08-04 09:24:36 +00:00
Hartmut Holzgraefe
6a93f284bc added new second parameter to osrt functions in the protos 2000-08-04 09:19:38 +00:00