1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 01:18:19 +02:00
Commit Graph

1287 Commits

Author SHA1 Message Date
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