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