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
Hartmut Holzgraefe
562e83bc6d
no longer needed
2000-08-04 09:03:54 +00:00
Hartmut Holzgraefe
aadc551965
do not rewrite absolute urls
...
(should be more clever and identify itself though)
2000-08-04 09:03:20 +00:00
Hartmut Holzgraefe
9cd387439e
evaluate sendmail exit status, fixes unix side of bug #5630
2000-08-03 19:26:19 +00:00
Stanislav Malyshev
fda23fc253
Fix fclose prototype ( #5930 )
2000-08-03 16:37:35 +00:00
Hartmut Holzgraefe
74ca22e9ca
will now work again on 1-character urls, spaces before and after '='
...
and urls containing '#' scrolling info
# argh, this file's not even a week old and already needs
# a heavy cleanup rewrite, but at least it gets all my test cases right
2000-08-03 11:42:39 +00:00
Hartmut Holzgraefe
4c9709ff0d
typo fix
2000-08-01 20:21:35 +00:00
Hartmut Holzgraefe
f194a3a25d
protect datetime() against all zero inputs ...
2000-08-01 11:16:20 +00:00
Hartmut Holzgraefe
b59e98b87c
"undefined function" error message will now suggest similar named
...
functions as jikes compiler for java does (typo protection)
2000-08-01 07:57:19 +00:00
Hartmut Holzgraefe
ea5ab044bf
trans-sid rewrite, is now state-aware (fix for bug #3411 and friends)
2000-08-01 07:45:14 +00:00
Stanislav Malyshev
e109aa30d6
When output is empty, exec should return "", not "\0" ( #5775 )
...
@- Fixed exec() returning "\0" when output is empty
2000-08-01 07:22:59 +00:00
Hartmut Holzgraefe
0df7721842
fix for bug #5672
2000-07-30 21:55:27 +00:00
Rasmus Lerdorf
75bb019760
Fix bug in strip_tags function as per bug #5857
...
@ Fix bug in strip_tags function as per bug #5857 (Rasmus)
2000-07-30 05:04:06 +00:00
Rasmus Lerdorf
677df784c1
This url symbol was a bit too generic. Change it to php_url instead.
...
It was clashing with a similar typedef in the UdmSearch integration I am
working on.
2000-07-29 22:32:21 +00:00
Thies C. Arntzen
51fc3dede2
@- Fix reading of IPTC via GetImageInfo() for certain JPEG files. (Thies)
2000-07-29 15:29:35 +00:00
Zeev Suraski
52ff887db5
Made ob_start() and friends reentrant. It's now possible to implement this
...
long-requested functionality, now that output buffering is re-entrant:
function eval_ret($code)
{
ob_start();
eval($code);
$retval = ob_get_contents();
ob_end_clean();
return $retval;
}
2000-07-29 14:46:09 +00:00
Stanislav Malyshev
f24c8c6f4b
Fix safe mode handling by touch
2000-07-27 13:47:03 +00:00
Stanislav Malyshev
9aa854dc6e
Fix memory leak in touch when safety check fails
2000-07-27 13:28:21 +00:00
Sascha Schumann
08f7586031
Get rid of unnecessary preprocessor constructs.
2000-07-26 16:42:04 +00:00
Sascha Schumann
30472a1cc1
Use the lcg as another entropy source for seeding the PRNG when creating
...
a salt for crypt().
2000-07-26 16:35:32 +00:00
Egon Schmid
e4b7e9e916
Protos fixed.
2000-07-26 11:43:01 +00:00
Stanislav Malyshev
79527dd539
Make proper object initialization
2000-07-26 11:21:03 +00:00
Sterling Hughes
56b7b7a8a9
* 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.
2000-07-26 05:41:38 +00:00
Stanislav Malyshev
104b4f38df
Fix more bugs in browscap
...
# now it shoudl work, but leaks like hell, so don't use it yet
2000-07-25 18:50:02 +00:00
Stanislav Malyshev
85eb0bb29d
Report configuration path that is really used, not that is compiled in
...
# it does matter when using -c option
2000-07-25 10:54:07 +00:00
Hartmut Holzgraefe
772c4026bb
htmlspecialchars and htmlentities will now
...
encode single quotes to '
(due to feature request in BUG ID#5254)
2000-07-25 10:18:06 +00:00
Stanislav Malyshev
005d4c4deb
Default section name should be uppercase, I guess
2000-07-25 08:09:00 +00:00
David Croft
0836e10a15
various version 2.0 and 2.01 licenses -> 2.02
2000-07-24 05:41:02 +00:00
David Croft
83513d9580
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.
2000-07-24 01:40:02 +00:00
Thies C. Arntzen
9752d1a089
(getimagesize) fix FORCE_REF.
2000-07-23 16:49:42 +00:00
Stanislav Malyshev
7c296bd9cc
Add another check for broken browscap object
...
# I do not know how it could get broken, but just in case...
2000-07-23 11:32:18 +00:00
Stanislav Malyshev
a172147a91
Try to fix some get_browser crashes and clean it up
...
# Probably needs more work, just what I could see immediately
2000-07-23 11:11:35 +00:00
David Croft
a5a9a4928b
# zeev is god
2000-07-22 04:23:41 +00:00
David Croft
89153d9c05
fixed socket_set blocking in windows
...
(bug 3845)
2000-07-22 01:53:16 +00:00
David Croft
8dd1fdb1a0
wordwrap function from Chris Russel <russel@yorku.ca>
...
differences from his patch:
- wordwrap width and wrap-string now optional parameters
(default to 75 and "\n" respectively)
- wordwrap_byte is now just an automatic special case of wordwrap
- Zend API compliant
@- Added new function "wordwrap" to wordwrap long strings from Chris
@ Russel <russel@yorku.ca> (David Croft)
2000-07-22 01:12:24 +00:00
Andrei Zmievski
fbced1b9cc
(php_addslashes) Fixed stop condition - it should only take into account
...
the length of the string, not the characters.
2000-07-21 15:29:59 +00:00
Ken Coar
f869e47eae
Undo numerical format regression introduced by the fix of the
...
zero-precison %s formatting.
2000-07-21 03:21:56 +00:00
Hartmut Holzgraefe
5390b6a291
fix for bug #5707
2000-07-20 23:08:26 +00:00
Rasmus Lerdorf
30c81ea5c5
Itanium patch from Steve Robb <steve@eu.c2.net>
...
@ Itanium patch (Steve Robb)
2000-07-19 16:19:40 +00:00
Zeev Suraski
327e33972b
Shutup a gcc warning
2000-07-18 20:40:23 +00:00
Ken Coar
0ca493768b
Bring forward the zero-precision (%.0s) string formatting fix
...
from PHP3. (After being nagged by Thies. :-) Whee! My first
PHP4 commit..
2000-07-18 16:34:30 +00:00
Stig Bakken
7bb67a6200
@Set default include_path so PEAR files can be reached (Stig)
2000-07-18 11:02:28 +00:00
Andrei Zmievski
8f96ea6b20
*** empty log message ***
2000-07-17 13:37:26 +00:00
Stanislav Malyshev
7b9d2e33bf
Fix crash in stripcslashes("") ( #5628 )
2000-07-17 10:22:30 +00:00
Rasmus Lerdorf
e3fd1edc49
Make it possible to specify an empty string as a thousands-seperator
...
in number_format()
@ Make it possible to specify an empty string as a thousands-seperator
@ in number_format()
2000-07-14 18:46:13 +00:00
Rasmus Lerdorf
1d0ae2cde4
Use dashes and short day name in cookies since some browsers seem picky
...
about this
@ Use dashes and short day name in cookies since some browsers seem picky
@ about this (Rasmus)
2000-07-14 01:08:59 +00:00
Andrei Zmievski
c9c425d625
Updated comments.
2000-07-11 16:51:04 +00:00
Andrei Zmievski
3ac0ae9dff
@- Improved array_multisort() to be able to specify sort type as well sort
...
@ order. Incidentally, it can be used to sort multi-dimensional arrays
@ as well. (Andrei)
2000-07-11 16:48:03 +00:00
Sascha Schumann
e8101d4f7b
Unify use of my email address
2000-07-10 10:09:15 +00:00
Egon Schmid
1231a3e473
Fixed other protos.
2000-07-09 19:33:19 +00:00
Egon Schmid
d7b554ee11
Fixed a proto.
2000-07-09 14:26:50 +00:00
Egon Schmid
11b749e047
Corrected a mispelled word.
2000-07-09 14:14:51 +00:00
Egon Schmid
ee513d6ed5
Eliminated a typo.
2000-07-08 22:55:40 +00:00
Andrei Zmievski
885e40db05
@- Updated str_pad() to be able to pad on left/right/both sides. (Andrei)
2000-07-08 20:38:23 +00:00
Egon Schmid
2bd5ad3131
Uncomplete proto.
2000-07-08 19:31:16 +00:00
Stanislav Malyshev
4d41c8ba49
Fix fgets re-allocation (add +1 to accomondate ending \0).
2000-07-07 09:06:47 +00:00
Egon Schmid
cd3973612b
Not every argument type is mixed.
2000-07-04 20:31:54 +00:00
Egon Schmid
f2457db5f3
Missed a two liner.
2000-07-04 19:41:31 +00:00
Mike Waychison
4604031b84
(PHP date) Added new 'O' format modifier for printing out the GMT Offset in
...
the same manner as emails have in their Date: header. The format
is similar to [+-]HHMM of offset.
@- Added new 'O' format modifier that will output the GMT offset as "[+-]HHMM"
@ (eg: Pacific time is -0700). This is useful for things such as Date: mail
@ headers.
# Um, this should have existed LONG time ago... much better than that gmt
# offset in seconds modifier :)
2000-07-04 16:16:32 +00:00
Sascha Schumann
cd754d7825
Rename macros which begin with underscore to appropiate macros. The general
...
rule is:
macro_name=`echo $filename|tr a-z A-Z|sed 's/\./_/'`
2000-07-03 00:41:19 +00:00
Sascha Schumann
16017f6d78
Change header protection macros to conform to standard.
...
Draft 3 of IEEE 1003.1 200x, "2.2 The Compilation Environment"
All identifiers that begin with an underscore and either an uppercase
letter or another underscore are always reserved for any use by the
implementation.
2000-07-02 23:46:51 +00:00
Andi Gutmans
b9037f7d69
- Make PHP compile again under Windows.
...
- Please be careful when you make such changes.
2000-07-02 15:12:34 +00:00
Kristian Köhntopp
0249137148
unlink() is not a function related to HAVE_SYMLINK. It is being
...
used to delete files (actually, in Unix, names of files, as in
Unix nobody has deleted a file, ever).
2000-07-02 13:41:26 +00:00
Andi Gutmans
50e9b1fe36
- Commit tiny patch to remove redundant code by Amit Schreiber.
2000-07-01 12:23:09 +00:00
Zeev Suraski
7fb72c1726
Fixed opendir() thoroughly
2000-06-29 21:51:40 +00:00
Stanislav Malyshev
740fc2f5de
Lowercase class name before looking for it
2000-06-29 14:49:23 +00:00
Kristian Köhntopp
02cad904ee
ezmlm_hash() function also available for php4.
2000-06-29 14:07:10 +00:00
Stanislav Malyshev
e8c219fef2
Make fgets not use maximal buffer length always, but shrink buffer
...
if it's too big.
2000-06-29 13:34:55 +00:00
Andrei Zmievski
49365eea79
Oops, didn't mean to commit that.
2000-06-28 20:09:04 +00:00
Andrei Zmievski
29e8e565c6
@- Added an optional parameter to preg_replace() that can be used to
...
@ specify how many replacements to make. (Andrei)
2000-06-28 20:07:26 +00:00
Zeev Suraski
c860633741
Fixed a bug in opendir(), which prevented readdir() from working properly if
...
the $dir argument wasn't explicitly specified
2000-06-27 18:44:30 +00:00
Thies C. Arntzen
e834812a06
(fgetcsv) fixed leak
2000-06-27 09:55:52 +00:00
Zeev Suraski
52dd20177c
Removed 8KB limit on line length of the file() function
2000-06-26 20:52:04 +00:00
Zeev Suraski
33d4092590
- Disabled dl() when PHP is being used as a module inside a multithreaded web
...
server - it didn't work before, and caused weird results (Zeev)
2000-06-26 18:27:12 +00:00
Andrei Zmievski
4010b422dd
Separate plain name returned by php_sapi_module() and pretty name
...
used for output.
2000-06-26 18:05:55 +00:00
Egon Schmid
bcb308c522
Fixed some protos.
2000-06-26 17:57:46 +00:00
Stanislav Malyshev
8fd20c3ec7
Make exec() fwork on Unix again
2000-06-26 17:12:38 +00:00
Kristian Köhntopp
2c32d120b2
Corrected a syntax error: Macro requires braces.
2000-06-26 14:55:38 +00:00
Kristian Köhntopp
c54fa54e36
Added function php_sapi_name() as written by Stefan Livieratos.
2000-06-26 14:43:37 +00:00
Egon Schmid
2deed22e5c
Now its a todo.
2000-06-25 17:55:13 +00:00
Egon Schmid
9f0eba9f10
It was Jouni: Prevent Hartmut finding this until it is actually implemented...
2000-06-25 17:21:04 +00:00
Zeev Suraski
6614e8edb4
- I wrote a long msg but the commit didn't go through.
...
- So here is the short version:
- a) Start moving to binary opens in Windows
- b) Give checkuid_mode() a small face lift including the fopen-wrappers.c
- The mode to this function should at least be a #define but that is for
- another day. Anyway this whole stuff should be given more face lifts in
- the future.
2000-06-25 17:02:59 +00:00
Egon Schmid
5f98304f55
The second array_merge() is now array_merge_recursive().
2000-06-25 13:21:37 +00:00
Egon Schmid
ac523aa37e
Correct protos call_user_func() and call_user_method().
2000-06-24 18:46:17 +00:00
Zeev Suraski
d1a6a64675
- Make the output globals accessible from the outside world
...
- Fix Win32 compilation
2000-06-24 13:27:34 +00:00
Egon Schmid
e9484d5c37
Added a description to get_browser().
2000-06-23 19:55:49 +00:00
Sascha Schumann
1702067ac0
API change: Use zval * instead of zval **
2000-06-23 16:58:30 +00:00
Sascha Schumann
091dc3840d
Move the incomplete class stuff into its own file, so that we can
...
make it easier accessible to WDDX.
2000-06-23 16:46:04 +00:00
Sascha Schumann
2297f670b1
Change the serialization semantics to:
...
* if a certain object is of class INCOMPLETE_CLASS, the serializer will
lookup the previously stored original class name of that object, and
use that class name to serialize the object.
Change the deserialization semantics to:
* if the class of an object, which is to be instantiated, is not found
in the current context, the class name will be stored for later
retrieval, and the class of that object is changed to INCOMPLETE_CLASS.
All function calls, property gets, and property sets operating on an
object of class INCOMPLETE_CLASS cause the execution to halt and to
output an informative error message.
2000-06-23 16:21:31 +00:00
Thies C. Arntzen
cfa7028d66
@- added spliti() function. (Thies)
2000-06-23 11:48:02 +00:00
Hartmut Holzgraefe
7d3341bee3
debug-code removed
2000-06-23 05:49:32 +00:00
Hartmut Holzgraefe
234f029727
this change should solve all problems regarding trans_sid_id and
...
"empty" href urls like "", "#name", "?param=val" ...
2000-06-23 05:42:41 +00:00
Sascha Schumann
2456af596f
Remove some unnecessary CLS_FETCH()s.
2000-06-23 00:53:33 +00:00
Rasmus Lerdorf
777f8dccca
Add a crc32 checksum function - used by the udm_search search engine
...
and currently run through a system call. This will speed up the udm_search
php frontend significantly.
@ Add a crc32 checksum function - used by the udm_search search engine
@ and currently run through a system call. This will speed up the udm_search
@ php frontend significantly. (Rasmus)
2000-06-21 22:51:29 +00:00
Sascha Schumann
9d640cc990
Revert earlier commit.
2000-06-21 18:35:54 +00:00
Thies C. Arntzen
bc8d0782dd
unserialize() and wddx_deserialize() now create an empty class if they enconter
...
a class which's code is yet unknown. this makes sessionized data retain the
class name of objects even if you visited pages that don't have the classes
code available.
2000-06-21 18:22:22 +00:00
Ben Mansell
6a449f2b02
Initialise lcg_globals correctly
...
# Fixes bug 5075
2000-06-20 11:35:12 +00:00
Thies C. Arntzen
520602ae4e
(fsockopen) fix #5090
2000-06-19 09:02:48 +00:00
Andi Gutmans
baadf90fb5
- Nuke warning
2000-06-18 20:09:17 +00:00
Thies C. Arntzen
5b1f7bc8ac
(implode), (strtr) no longer touch the internal array-pointer.
2000-06-18 10:37:01 +00:00
Thies C. Arntzen
405d07de96
(serialize) no longer touches the internal array-pointer
2000-06-18 10:25:39 +00:00
Andrei Zmievski
10b5f74855
One more place.
2000-06-18 03:45:08 +00:00
Andrei Zmievski
789aa48043
@- Modified in_array() to not touch array pointer. (Andrei)
2000-06-18 03:43:58 +00:00
Zeev Suraski
da66298659
- Fix a couple of wranings in the FTP code and in parsedate.y
...
- Be safer with LC_MESSAGES
- Align with the latest Zend change in call_user_function_ex()
2000-06-17 16:49:03 +00:00
Andrei Zmievski
6e1dee8c1e
Have to use zval_ptr_dtor() on values returned from user functions.
2000-06-17 15:53:33 +00:00
Andi Gutmans
1e5a405c5c
- Make Windows compile
...
- Windows doesn't support LC_MESSAGES
2000-06-17 14:48:03 +00:00
Hartmut Holzgraefe
1d92510032
changed default cell alignment to "left" (see bug id #5048 )
2000-06-17 07:08:53 +00:00
Hartmut Holzgraefe
34cc1de229
setlocale didn't recognize LC_MESSAGES (BUG ID#3957)
2000-06-17 06:25:47 +00:00
Andrei Zmievski
39aa0c4d3a
Just to make extra sure.
2000-06-16 19:55:51 +00:00
Andrei Zmievski
f14961b005
Plug a memory leak: retval_ptr should be destroyed.
2000-06-16 19:53:06 +00:00
Hartmut Holzgraefe
d19a44a6aa
typo fix
2000-06-16 18:46:57 +00:00
Andrei Zmievski
71d4206074
Typo.
2000-06-16 18:36:30 +00:00
Hartmut Holzgraefe
87a491d7b6
C++ // comments are evil ...
2000-06-16 18:24:02 +00:00
Andrei Zmievski
e48192fbb5
Use hardcoded 3600 seconds offset instead of altzone which may not be present
...
on all systems.
2000-06-15 22:23:08 +00:00
Brian Moon
e38d7accb7
set_file_buffer was not being exported. This is now fixed.
2000-06-15 19:02:02 +00:00
Andrei Zmievski
59b455cf2f
@- Updated strtotime() to handle many more formats. It now has complete
...
@ feature parity with GNU date command. (Andrei)
2000-06-15 16:24:10 +00:00
Hartmut Holzgraefe
9ded807a20
return FALSE from strftime on negative timestamp values
...
they do not make sense anyway and seem to crash win2k
2000-06-14 22:11:10 +00:00
Rasmus Lerdorf
f38e760c39
Refine checkdate() fix to accept numeric strings and floating point as well
2000-06-14 20:31:31 +00:00
Rasmus Lerdorf
0b5ca3f7d5
Require the year arg to checkdate to be an integer - fix for bug #5034
...
@Require the year arg to checkdate to be an integer (Rasmus)
2000-06-14 16:35:48 +00:00
Andrei Zmievski
e5360259a4
We should define symlink functions only when HAVE_SYMLINK is defined.
...
Otherwise, they should be aliased as not available.
2000-06-13 18:07:19 +00:00
Sascha Schumann
3ce3e9ba27
Include <math.h> in php_math.h. This is necessary, because we might
...
otherwise redefine system macros.
2000-06-13 16:35:40 +00:00
Sascha Schumann
66175ef9fe
Delete phpdir.h. Someone moved this to php_dir.h in the past and
...
forgot to delete it.
2000-06-13 16:34:18 +00:00
Sascha Schumann
d1c1e99d98
Rename phpmath.h to php_math.h.
2000-06-13 16:31:57 +00:00
Thies C. Arntzen
7dca298b21
copy() now creates the destination file with mode 0777 again. this is
...
the way it used to be in PHP 3
2000-06-13 15:48:38 +00:00
Sascha Schumann
6caf633cf7
Proper casts
2000-06-13 09:17:06 +00:00
Sascha Schumann
5bbc4114f1
Remove extra cast. ch' is already of type
char *'.
...
This unbreaks the build with xlc on AIX.
2000-06-13 09:09:33 +00:00
Sascha Schumann
165361a515
Remove single ;
2000-06-13 09:06:31 +00:00
Andrei Zmievski
c85390a691
(php_math_number_format) Simplifying the logic also fixed bugs #4954
...
and #4998 .
2000-06-13 04:31:02 +00:00
Zeev Suraski
6bbf0105af
Fix a bug in extension_dir, where PG(extension_dir) is not yet initialized by the time php_dl() is called
2000-06-12 21:01:03 +00:00
Zeev Suraski
fce92e3ca2
Avoid using E_CORE_* errorlevels in any place which is not in the global startup sequence
2000-06-12 20:22:17 +00:00
Andi Gutmans
719d995a9d
- On UNIX support popen() which works with current working directory
...
- when in VIRTUAL_DIR mode.
2000-06-12 19:39:04 +00:00
Andrei Zmievski
ab99eb59fb
(PHP str_pad) Terminate string with a null.
2000-06-12 16:06:27 +00:00
Egon Schmid
e465e94a12
Fixed a proto.
2000-06-12 15:17:08 +00:00
Egon Schmid
1769d69ca3
Fixed protos.
2000-06-12 14:44:16 +00:00
Andi Gutmans
e7c50e4866
- Untested but it should fix the problem with cyr_convert() not being
...
- binary safe and destroying other values in the script
2000-06-11 17:23:38 +00:00
Stig Venaas
2e738b519f
Forgot to set_compare_func in the new array functions, had only tested
...
with older source.
2000-06-11 12:20:42 +00:00
Stig Venaas
f18b903d5f
Changed array_subtract to array_diff
2000-06-10 19:09:56 +00:00
Stig Venaas
99f151f1bd
Adding fuctions array_unique, array_intersect and array_subtract.
2000-06-10 18:58:45 +00:00
Andrei Zmievski
3570258050
@- Fixed 'Z' flag in date() to adjust for daylight savings time. (Andrei)
2000-06-09 20:18:36 +00:00
Zeev Suraski
d975678006
@- Fixed var_dump() not to modify the internal order of array elements (Zeev)
...
Fixed the buffer overflow as well
2000-06-09 15:13:36 +00:00
Andrei Zmievski
ef1d6987fd
@- Fixed stripcslashes() to remove to strip \ in unknown escapes instead of
...
@ leaving it. (Andrei)
2000-06-09 13:58:10 +00:00
Zeev Suraski
cbd3f41ba8
Fix #4928
...
Be *CAREFUL* with the _ex API, guys!
2000-06-09 13:15:19 +00:00
Stanislav Malyshev
6cac26c21f
Make chmod in safe mode not allow SUID bits
2000-06-09 10:34:53 +00:00
Andi Gutmans
6ce07a85e4
- Change register_internal_class to zend_register_internal_class for
...
- consistency.
- Andrei: I'm still thinking about the _ex you want me to implement
2000-06-09 08:41:59 +00:00
Zeev Suraski
9c88d20070
Move back everything to where it belongs...
2000-06-09 01:50:44 +00:00
Zeev Suraski
2ffa48b447
Restore the check for the trailing slash. Windows does not apply s#/+#/# (PR 4375)
2000-06-09 00:43:43 +00:00
Thies C. Arntzen
c183168481
beautify
2000-06-07 09:55:37 +00:00
Rasmus Lerdorf
ff843bacf4
Make trim strip \0 to match php 3
...
@ Make trim strip \0 to match php 3 (Rasmus)
2000-06-07 00:59:14 +00:00
Andrei Zmievski
b928bdceb8
@- Added str_pad() for padding a string with an arbitrary string on left or
...
@ right. (Andrei)
Added str_pad() for padding a string with an arbitrary string on left or right.
# With all those macros, the code is starting to eerily resemble Perl's guts.
2000-06-06 20:42:33 +00:00
Clayton Collie
8e58cc501f
Modified Makefile.in so scanf.c compiles
2000-06-06 19:11:50 +00:00
Clayton Collie
0b7fd17c2b
Added sscanf() function.
2000-06-06 18:58:15 +00:00
Andi Gutmans
d7ac0f2c9d
- I didn't have anything to do with this buggy code. Just kidding :)
2000-06-06 18:54:00 +00:00
Frank M. Kromann
a14261bc42
adding definition for EWOULDBLOCK for Win32 to compile
2000-06-06 18:30:06 +00:00
Hartmut Holzgraefe
7864fdfdee
added missing '/' to closing <center> tag (BUG ID #4416 )
2000-06-06 17:26:15 +00:00
Thies C. Arntzen
10eb67a3aa
@- added fflush() function. (Eric Huss)
...
# the socket fsync() might not work on Win32.
#
# i'm not sure if we need any code for flushing sockets as they are
# currently alway written via write().
2000-06-06 12:16:44 +00:00
Sascha Schumann
45a5555b09
Move global.h to php_global.h.
2000-06-05 23:59:06 +00:00
Sascha Schumann
102c6ce4b8
Move main.h to php_main.h.
2000-06-05 23:24:42 +00:00
Andi Gutmans
3701bc4207
- ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
2000-06-05 19:47:54 +00:00
Rasmus Lerdorf
1cefd77f1c
Oops, fixed slight miscue there. Now it works.
2000-06-05 19:35:15 +00:00
Jouni Ahto
9d2bcf2bd0
- Restore locale settings to state they were at module startup if they
...
were changed.
2000-06-05 18:47:34 +00:00
Rasmus Lerdorf
194e8828a1
@ Clean up constants in flock() function and add optional 3rd arg which
...
@ is set to true on EWOULDBLOCK (Rasmus)
Clean up constants in flock() function and add optional 3rd arg which
is set to true on EWOULDBLOCK
2000-06-05 17:56:01 +00:00
Zeev Suraski
4a1da8b6f9
Fix Win32 build
2000-06-04 22:00:17 +00:00
Rasmus Lerdorf
7eec1997ef
@ Add SWF support to getimagesize() function (Derick Rethans)
...
Add SWF support to getimagesize() function
2000-06-04 18:29:15 +00:00
Stanislav Malyshev
a23c64ee8b
\0 is part of they key, but not of the variable
2000-06-04 15:43:04 +00:00
Stanislav Malyshev
5af7dff758
add opendir to VIRTUAL_DIR
2000-06-04 08:29:11 +00:00
Stanislav Malyshev
7f158268aa
chdir returns 0 on success, compare against it
2000-06-04 07:57:40 +00:00
Zeev Suraski
5673378ea6
- Allow all functions that receive user-defined function callbacks to accept
...
an array that contains an object and a method name, in place of a function
name, e.g. usort($array, array($obj, "ObjSort"))
(I checked the code in array.c and basic_functions.c, other code which uses
call_user_function() may still force the function_name argument to be of type
IS_STRING, which prevents this feature from working - and is no longer necessary)
2000-06-03 04:16:46 +00:00
Zeev Suraski
d1f1d40527
- Make the INI entries sorted in phpinfo()
2000-06-03 03:05:29 +00:00
Zeev Suraski
ab36e22aeb
Small optimization
2000-06-02 12:24:24 +00:00
Jouni Ahto
467c4314b8
(ucwords) Remove unnecessary code.
...
# Didn't keep my promise to stop...
2000-06-01 14:56:28 +00:00
Jouni Ahto
c106ab8ba0
(ucwords) Yet another fix for #4748 .
...
# Last one from me today, I must have a beer now.
2000-06-01 14:40:41 +00:00
Andrei Zmievski
48db9618b8
Some tweaks.
2000-06-01 14:18:45 +00:00
Andrei Zmievski
4c818aec33
@- Added third argument to in_array(). If it's true, then in_array()
...
@ will use strict comparison instead of the default one. (Andrei)
Fixes bug #4753
2000-06-01 13:52:08 +00:00
Jouni Ahto
30c5b53ad1
(ucwords) Fixed fix for fix for fix for #4748 .
...
# Today's most fixed bug.
2000-06-01 13:38:23 +00:00
Hartmut Holzgraefe
a35237795f
uh, off by one?!! this time it's regression-tested, fast and compact
2000-06-01 11:47:48 +00:00
Jouni Ahto
3c51a88d0c
(ucwords) Another try to fix #4748 .
2000-06-01 10:07:44 +00:00
Hartmut Holzgraefe
f27956eb19
ucwords will now test against isspace() instead of just ==" "
...
(see BUG #4748 )
2000-06-01 09:56:54 +00:00
Jouni Ahto
8fe69306dc
Correct fix this time... (?)
2000-05-31 22:44:29 +00:00
Jouni Ahto
1e7c5b8562
Fix a nasty off-by-one with negative numbers.
...
# Hey, this has been there for years undetected.
2000-05-31 22:27:09 +00:00
Andrei Zmievski
01a4220954
@- Added array_merge_recursive() that will recursively merge values
...
@ under the same keys. (Andrei)
2000-05-30 17:03:56 +00:00
Zeev Suraski
666a53a247
Forgot to update the makefile
2000-05-29 18:56:51 +00:00
Zeev Suraski
3637589db1
Oh yeah, I said there's no need for it to be defined didn't I? :)
2000-05-29 16:51:27 +00:00
Zeev Suraski
c07a056dac
There's really no need for an entire file for a one line function...
2000-05-29 16:13:38 +00:00
Thies C. Arntzen
635d7fbfae
allow_call_time_pass_reference fix: similar_text
2000-05-29 15:38:32 +00:00
Zeev Suraski
8715b55ce0
Remove stale macro
2000-05-29 15:31:19 +00:00
Zeev Suraski
124fe30f03
More secure mode
2000-05-29 11:47:38 +00:00
Sascha Schumann
0d9c0616f9
Use php_syslog() for system call. On OpenServer 5, syslog is defined to
...
var_syslog/sys_syslog which causes various problems.
Submitted by: Paul Gardiner <I.T.Manager@barleychalu.co.uk>
2000-05-28 16:22:28 +00:00
Sascha Schumann
9cd4929417
Make syslog module thread-safe.
2000-05-28 16:19:45 +00:00
Hartmut Holzgraefe
fb39eda0d8
a second (cleaner?) try on warnings about unsupported functions
2000-05-27 19:27:20 +00:00
Andi Gutmans
afccb58612
- I'm not sure if PHP_NOT_IN_THIS_BUILD is the way to handle these
...
- functions but in any case I have changed it to PHP_NOT_IN_THIS_BUILD()
2000-05-27 18:55:11 +00:00
Zeev Suraski
abb31591ff
Add Sam Ruby
2000-05-27 00:24:03 +00:00
Hartmut Holzgraefe
69d1e788c0
if a module provides a function it should also do so if the function
...
is not functional due to configure findings
the function should offer a meaningful warning if it is not supported
instead of just beeing undefined
i had already changed this in 'gd', now this is doing it for 'standard'
2000-05-26 17:04:02 +00:00
Kristian Köhntopp
e5835b63c9
- Added credits.
2000-05-25 11:01:31 +00:00
Andrei Zmievski
4197a68602
@ Fixed min()/max() segfault. (Andrei)
2000-05-24 19:07:17 +00:00
Hartmut Holzgraefe
e191baa1a3
php_basename() prototype changed according to latest changes in string.c
2000-05-24 05:51:33 +00:00
Hartmut Holzgraefe
df4547a3df
another bunch of proto fixes
2000-05-23 23:13:02 +00:00
Rasmus Lerdorf
7182e722ca
Need a PHPAPI version of basename for some stuff I am working on.
...
Also fixed a bug along the way in the basename function. If it
was fed something like "filename.ext/////" it would return the string
with all the slashes whereas if you fed it "/path/filename.ext////" it
would get it right.
@ Fixed basename() bug where "file.ext///" would not return the same
@ as "/path/file.ext///" (Rasmus)
2000-05-23 20:16:14 +00:00
Hartmut Holzgraefe
ee82f87cbf
one little unimportant detail (cut&paste is evil :)
2000-05-23 20:13:10 +00:00
Hartmut Holzgraefe
251cda4941
a little less optimized, but no dirty tricks anymore
2000-05-23 20:07:32 +00:00
Sascha Schumann
5d10b23a78
Make calc_levdist static and fix pointer swapping.
2000-05-23 19:27:02 +00:00
Andi Gutmans
617266e33e
- Virtual current working directory is now enabled
...
- Added support for mkdir()/rmdir() and more
2000-05-23 17:02:21 +00:00
Sascha Schumann
2aaa538aef
Use reentrant version of readdir. If the target platform does not support
...
the POSIX-like readdir_r, we fall back to readdir. In ZTS mode, this will
cause php_readdir_r calls to be serialized.
2000-05-23 15:13:16 +00:00
Andi Gutmans
22dba603f5
- English fix.
2000-05-23 14:42:22 +00:00
Hartmut Holzgraefe
4571d8ddea
name changed from levdist() to levenshtein()
...
(although i bet we'll get a levenstein() alias some day)
2000-05-23 14:37:39 +00:00
Andi Gutmans
521f03c184
- Support virtual unlink()
2000-05-23 14:36:27 +00:00
Hartmut Holzgraefe
0eb51100b7
added function "int levdist(string str1, string str2)"
...
that will calculate the Levenshtein distance between two
strings (faster and possibly more accurate than similar_text())
2000-05-23 14:10:37 +00:00
Andrei Zmievski
03851ced5f
Clean up the patch by Hartmut.
2000-05-23 12:38:12 +00:00
Sascha Schumann
4686a3b50e
Use #ifdef COMPILE_DL_EXTNAME solely.
2000-05-23 09:33:51 +00:00
Sascha Schumann
2472700dd1
Only print the attention thing, if the MD5 and DES checks failed.
2000-05-23 09:09:11 +00:00
Hartmut Holzgraefe
78cec9f33e
again (due to feature request in bug id #3251 )
...
added optional 3rd parameter 'limit' to explode() as in split()
2000-05-23 05:04:28 +00:00
Hartmut Holzgraefe
398923de53
in [mt_]rand(): (see BUG #3353 )
...
- additional range checking for (max-min)<=[MT_]RAND_MAX
- [mt_]rand(0,[mt_]getrandmax()) will now work without integer overflow
2000-05-22 20:37:26 +00:00
Jouni Ahto
e80b2b13fa
Fix #4230 . Putenv() was modifying its argument, a no-no.
2000-05-21 21:13:32 +00:00
Hartmut Holzgraefe
eb7979ab5b
patch to explode (bug id #3251 ) suspended till 4.0.1
2000-05-20 05:07:53 +00:00
Hartmut Holzgraefe
af77bc0583
added optional 3rd parameter 'limit' to explode() as in split()
...
(due to feature request in bug id #3251 )
2000-05-19 22:00:38 +00:00
Zeev Suraski
0f82e6de23
Minor output mods
2000-05-19 08:28:53 +00:00
Zeev Suraski
e043439ff6
Update the license with the new clause 6
2000-05-18 15:34:45 +00:00
Andrei Zmievski
c97760776b
(PHP round) Fix proto.
2000-05-18 12:29:58 +00:00
Andrei Zmievski
aa09d60d7d
(PHP array_multisort) Fix the array_size test.
2000-05-18 12:29:45 +00:00
Andrei Zmievski
a859e83392
Update for sort functions - user can now specify sort type.
2000-05-18 00:47:57 +00:00
Egon Schmid
11acad981c
Fixed the format.
2000-05-17 19:48:43 +00:00
Hartmut Holzgraefe
d7779d8bdf
proto takeover from php3
2000-05-17 19:42:08 +00:00
Hartmut Holzgraefe
e5a2f0f95c
proto-takeover from php3
2000-05-17 19:40:10 +00:00
Hartmut Holzgraefe
1e632ffdee
typo fix
2000-05-17 19:36:51 +00:00
Hartmut Holzgraefe
5354940f93
correction
2000-05-17 19:27:08 +00:00
Sascha Schumann
db3d16dca1
Add debug.log facility. If there are any obscure bugs in our build system,
...
this will give us enough information to find and fix it.
2000-05-17 19:08:44 +00:00
Egon Schmid
7dd8b901e6
Second parameter is optional.
2000-05-17 18:17:07 +00:00
Hartmut Holzgraefe
29571bf2b1
took over missing prototypes from php3 source
...
(copied them only, didn't check for parameter changes!)
2000-05-17 18:14:05 +00:00
Sascha Schumann
f0ed744125
Fix 64-bit issue in gethostbyaddr().
2000-05-17 16:08:42 +00:00
Andrei Zmievski
e2e6363488
Let's cast it.
2000-05-17 12:51:37 +00:00
Andrei Zmievski
08ff225a46
@- Improved round() to allow specification of rounding precision.
...
@ (Andrei, Todd Kirby <kirbyt@yahoo.com>)
2000-05-17 12:50:04 +00:00
Sascha Schumann
dc6d46c180
"INT" configuration values must be of type long
2000-05-13 06:05:24 +00:00
Sterling Hughes
7342fc7a28
Add Meself for LibSWF.
2000-05-12 20:49:26 +00:00
Jouni Ahto
7894d58ae5
# 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.
2000-05-12 20:11:14 +00:00
Thies C. Arntzen
ab6d34d8ba
revert last patch - you can only specify the dl() path relative to extension_dir
...
again
2000-05-10 07:32:51 +00:00
Andrei Zmievski
fdbea075fa
@- Added array_rand() function. (Andrei)
2000-05-09 19:27:00 +00:00
Thies C. Arntzen
b8f9b48098
(php_dl) treat path as absolute if it starts with '/'
2000-05-08 08:12:28 +00:00
Sascha Schumann
2df8e7341e
Move <syslog.h> inclusion into php_syslog.h. This will make sure that
...
all source files "get it."
2000-05-07 00:10:32 +00:00
Sascha Schumann
54fa1a77d7
On some systems, <syslog.h> defines syslog to another symbol, so that
...
syslog.lo does not contain the expected symbols. Including <symbol.h>
in basic_functions.c fixes the resulting linking problem.
2000-05-06 23:17:11 +00:00
Andrei Zmievski
0060f95699
Fixes for possible failure of zend_eval_string().
2000-05-06 17:57:34 +00:00
Sascha Schumann
f51b56cfed
Move dlopen in -ldl check to configure.in. This should ensure that if libdl
...
exists, it will be always found. We define HAVE_LIBDL now always, if the
function dlopen is found.
2000-05-05 11:23:12 +00:00
Sascha Schumann
8570e0e3ba
Put in a hack, so that users can compile PHP, even if the configure-time
...
checks failed to detect the capabilities of crypt().
2000-05-05 10:36:00 +00:00
Sascha Schumann
d0f3764ee2
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.
2000-05-04 10:38:17 +00:00
Sascha Schumann
b6e4841ec7
Determine first whether we will use ZTS mode or not.
...
This is important, because the system checks will yield different
results depending on whether POSIX threads are enabled or not.
We also use PTHREADS_CFLAGS only in ZTS mode now. Using these flags
in non-ZTS mode causes complete build failures on some platforms
(i.e. FreeBSD 2.2.x). This will cause harmless warnings on some
platforms (i.e. Solaris 2).
2000-05-04 09:42:27 +00:00
Andrei Zmievski
599813d73a
Let's enable assert by default since it's so useful.
2000-05-03 14:24:14 +00:00
Andi Gutmans
52288d4f05
- Shouldn't be needed. The configuration mechanism makes sure this is
...
- up-to-date
2000-05-02 18:46:19 +00:00
Sascha Schumann
8eb698a847
Make php_dl() respect the configured extension_dir setting.
2000-05-02 14:44:08 +00:00
Sascha Schumann
fe50664d4d
#if COMPILE_DL
...
becomes
#if defined(COMPILE_DL) || defined(COMPILE_DL_EXTENSION_NAME)
2000-05-02 00:44:35 +00:00
Sascha Schumann
0d383d9373
Replace the various get_module() functions with a uniform
...
ZEND_GET_MODULE(name) macro.
2000-05-02 00:30:36 +00:00
Sascha Schumann
7613e064f8
Remove trailing empty lines
2000-05-01 22:38:42 +00:00
Sascha Schumann
0d36199cf9
Large test commit IV
2000-05-01 22:04:52 +00:00
Sascha Schumann
de2cea47c0
Large commit test III
2000-05-01 22:00:09 +00:00
Sascha Schumann
a481fddfb3
Improved in-tree shared libraries build system
...
The following new/revived shared modules are available now:
... MySQL (*)
... PCRE (*)
... Session
... SWF
(*) capable of using bundled library or external library
All changes:
The m4 macro PHP_EXTENSION was revamped. Uses LIB_BUILD now.
This effectively means that all extensions have to use dynlib.
ext/mysql/config.m4 was revamped.
Uses LIB_BUILD for building bundled library.
ext/pcre/config.m4 was revamped.
Uses LIB_BUILD for building bundled library.
ext/ext_skel was changed to reflect that more modules should be
compileable as shared module.
ext/Makefile.in has been simplified enormously.
Dependencies are now stored in the build tree.
Empty dependencies are not generated by buildconf anymore. They
are now dynamically created during the build process.
Implicit rules for .S were removed.
The NO_RECURSION feature was removed.
"libs.mk" has been added to all cvsignore files in ext.
2000-05-01 02:42:55 +00:00
Andi Gutmans
e13285ded7
- Take Sascha's advice and create on V_OPEN() which replaces open().
...
- Unlike the other macros its argument has to have braces around it, for
- example, open(filename, flags) becomse V_OPEN((filename, flags))
- Made small conversion to new Zend macros. The ugly (*foo)->value.str.val
- now becomes Z_STRVAL_PP(foo). PP means pointer pointer, there also exist
- single P's for example foo->value.str.val becomes Z_STRVAL_P(foo).
2000-04-30 16:32:36 +00:00
Sascha Schumann
953fe189da
Overall UNIX build system improvements:
...
* Makefile header is now completely dynamic
* Absolute paths in (top_)?(src|build)dir and VPATH
(fixes Tru64 support)
* VPATH does not contain variables anymore
(fixes UnixWare support)
2000-04-30 03:20:09 +00:00
Andrei Zmievski
9e9ba7d974
@ Updated natural comparison/sorting algorithm by Martin Pool
...
@ <mbp@humbug.org.au>. (Andrei)
Martin Pool updated the natural comparison/sort algorithm so that fractions
compare more "naturally", e.g. 1.002 < 1.1.
2000-04-29 18:57:06 +00:00
Andrei Zmievski
105be1513d
Fix an empty arrays condition and optimize a bit.
...
@ Fixed a crash in array_multisort() that happened when empty arrays
@ were passed to it. (Andrei)
2000-04-28 14:01:08 +00:00
Zeev Suraski
3220bb570e
- Fix an invalid trick (it was valid when header() was using
...
zend_get_parameters(), but it became invalid when someone switched it
to zend_get_parameters_ex(), and I decided to remove it anyway).
- Remove a redundant function call
2000-04-28 13:03:13 +00:00
Zeev Suraski
39aa59bdec
More error handling work (still completely disabled)
2000-04-27 18:37:02 +00:00
Andrei Zmievski
3b77fd37a9
TODO update and fix for C++ comments.
2000-04-27 14:41:18 +00:00
Sterling Hughes
68e54e9922
Small proto fix.
2000-04-26 01:16:57 +00:00
Andrei Zmievski
5c5ec88292
@Added substr_count() from Peter Kovacs. (Andrei)
...
# also some todo stuff
2000-04-26 00:29:59 +00:00
Zeev Suraski
b992f02935
- Get rid of newly introduced warning
2000-04-24 17:35:27 +00:00
Thies C. Arntzen
2a17453e42
RINIT was called twice for modules loaded vi php.ini
2000-04-24 15:40:07 +00:00
Andrei Zmievski
ec997d5c5b
Exterminate warnings.
2000-04-24 14:19:21 +00:00
Andrei Zmievski
071c01a019
The third argument to fseek() is now one of the standard SEEK_* constants.
...
# The previous change to support seekfrom stuff was incorrect.
2000-04-24 14:18:11 +00:00
Sterling Hughes
21416083b1
@-Add an optional third argument to fseek to indicate were to seek from. (Sterling)
2000-04-23 19:16:24 +00:00
Andi Gutmans
5da62dd57e
- In Windows RAND_MAX is defined in stdlib.h
...
- Get rid of comment which is confusing.
2000-04-22 15:44:35 +00:00
Andi Gutmans
44908999a8
- Hopefully fix mt_rand() functions under Windows. This patch will effect
...
all platforms so I hope it's OK.
2000-04-22 15:40:23 +00:00
Thies C. Arntzen
1651fbff64
add VDIR info
2000-04-21 16:20:11 +00:00
Zeev Suraski
883bd2b1de
- Fix virtual cwd bug
...
- Add more V_STAT() V_LSTAT() changes
2000-04-20 17:24:01 +00:00
Zeev Suraski
ac8e7b96f4
Fix Win32 compilation. Hillarious April 1st joke!
2000-04-19 23:46:26 +00:00
Colin Viebrock
900aae165e
A little easter egg for April 1st ... :)
2000-04-19 23:17:02 +00:00
Andrei Zmievski
a15b08a709
Just a type cast is sufficient.
2000-04-19 18:36:50 +00:00
Rasmus Lerdorf
03b562c93e
fgetcsv() patch from Nick Talbott
...
@ The fgetcsv() function now handles embedded end-of-line in a quoted field
@ (Nick Talbott)
2000-04-19 13:03:47 +00:00
Zeev Suraski
a81a1c7a1a
phpcredits() update.
2000-04-19 12:43:54 +00:00
Evan Klinger
d6c66f3b7c
@- Fixed long2ip() to return the correct IP address. (Evan)
...
# ip2long() is still broken.
2000-04-18 22:50:24 +00:00
Egon Schmid
f1c268d79a
Corrected some protos.
2000-04-18 20:00:21 +00:00
Zeev Suraski
c007a7232d
Document the ob_*() functions
2000-04-18 19:18:47 +00:00
Egon Schmid
830715a6d7
Have forgotten myself.
2000-04-17 18:57:40 +00:00
Rasmus Lerdorf
8b1b39b5b5
Move this check to the main configure.in file. Fixes #3979
2000-04-16 15:44:04 +00:00
Andi Gutmans
c9911a151e
- Change PHP_ to V_ (directory & file functions)
2000-04-15 14:28:48 +00:00
Andi Gutmans
f2ff9eeef5
@ Fix bug in number_format (Jon Forsberg)
2000-04-15 13:53:32 +00:00
Egon Schmid
7b77b063a6
Small corrections.
2000-04-14 21:12:21 +00:00
Zeev Suraski
b6b79a8d90
Add the documentation team to the credits page
2000-04-14 18:22:43 +00:00
Andrei Zmievski
9ffd5b5595
@- array_walk() now automatically resets the array. (Andrei)
2000-04-13 18:57:37 +00:00
Zeev Suraski
aa6769dde2
- Make Windows builds build again
...
- Make non-gcc based platforms compile again
2000-04-13 16:08:49 +00:00
Thies C. Arntzen
9f598b187c
the asset call caused an undefined __eprintf here!
2000-04-13 13:04:02 +00:00
Andrei Zmievski
c7100c4a1a
Added natural comparison/sorting routines using code from Martin Pool.
...
@- Added natural comparison/sorting routines strnatcmp(), strnatcasecmp(),
@ natsort(), and natcasesort(). These are useful for comparing and sorting
@ strings that contain numbers. Based on the code from Martin Pool
@ <mbp@humbug.org.au>. See http://www.linuxcare.com.au/projects/natsort/
@ for more info on natural sorting. (Andrei)
2000-04-12 19:39:02 +00:00
Zeev Suraski
64f91d80fa
Object overloading API changed slightly (llist is now a pointer)
2000-04-10 20:21:02 +00:00
Hartmut Holzgraefe
744fe82e0a
added the other usefull constants besides M_PI from math.h
...
as PHP constants
2000-04-08 23:53:19 +00:00
Colin Viebrock
5628b3f0ab
more prettiness
2000-04-07 16:41:19 +00:00
Zeev Suraski
436ffa8a18
Unify
2000-04-07 15:30:47 +00:00
Andi Gutmans
5c6bf64509
- ZEND_DEBUG is always defined
2000-04-06 22:54:33 +00:00
Colin Viebrock
731404c0ba
phpinfo() prettying
...
I will get to the rest of the functions later tonight or tomorrow
(i.e. from hyperwave to snmp)
2000-04-05 22:30:19 +00:00
Colin Viebrock
0c2b366ce1
phpinfo() prettying
2000-04-05 21:43:03 +00:00
Colin Viebrock
f57d8a2c25
finally (thanks Andreas)
2000-04-05 21:03:30 +00:00
Colin Viebrock
1e344cf010
still cant get this
2000-04-05 21:00:35 +00:00
Colin Viebrock
875ac538fb
phpinfo() prettying
2000-04-05 20:48:46 +00:00
Colin Viebrock
5e296bfe97
fixed the segfault problem (probably not the prettiest way, but)
2000-04-05 20:29:20 +00:00
Colin Viebrock
1ddc9ff852
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.
2000-04-05 20:17:02 +00:00
Thies C. Arntzen
6e2bf336f6
(var_dump) cleaned up some weird & buggy stuff
2000-04-04 15:14:23 +00:00
Egon Schmid
3e2a1034cb
Return type was missing.
2000-04-04 08:52:57 +00:00
Andi Gutmans
9c3d6304dd
- Hopefully got most of them. We also need a chdir_file function like
...
for Apache.
2000-03-30 22:56:34 +00:00
Andrei Zmievski
5cd7bf59b3
@- Fixed return of stristr() to no longer always be lowercased. (Andrei)
2000-03-30 14:34:46 +00:00
Sascha Schumann
fe92fef608
Allocate enough memory for additional /.
...
Also remove the extra check for the trailing /. Unix will automatically
apply s#/+#/#
Partly suggested by: drew@elysium.ltd.uk
PR: #3956
2000-03-30 12:55:59 +00:00
Sascha Schumann
3642282b07
Some OS prepend _ to symbol names while their dynamic linker
...
does not do that automatically. Thus we check manually for
_get_module.
2000-03-30 01:21:03 +00:00
Sascha Schumann
5e18db46c3
Specifically mention $(srcdir), so that OpenBSD's make gets it
2000-03-30 00:43:09 +00:00
Sascha Schumann
6c8f9bf3b4
Do not add dl function, if libdl is not present.
...
PR: #3947
Declare user_shutdown_function_name() as static to kill warning.
2000-03-29 17:33:44 +00:00
Sterling Hughes
68d4298e71
#yikes stripes, didn't see that one
...
#its time to go to bed
Re-fixed return value of min and max
2000-03-29 12:43:13 +00:00
Sterling Hughes
2c975a2b06
single, sorta proto.
2000-03-29 11:38:47 +00:00
Sterling Hughes
cc2c9d8f0f
1. Holy protos Batman.
...
2. Converted some functions from using "return" to RETURN_FALSE
2000-03-29 11:19:01 +00:00
Sterling Hughes
6db2262102
Tis protoriffic.
2000-03-29 01:39:04 +00:00
Egon Schmid
1a8dfac59d
Sterling, only one line for the short descritption, even it is massiv.
2000-03-28 20:47:47 +00:00
Sterling Hughes
74d30dff7b
*** empty log message ***
2000-03-28 20:26:02 +00:00
Sterling Hughes
f76e0a4077
*** empty log message ***
2000-03-28 18:16:41 +00:00
Sterling Hughes
0340340673
Slight change for time on the return side.
...
@-Added 'I' switch to test whether or not DST is active.
2000-03-27 18:11:33 +00:00
Zeev Suraski
b43f85d641
- Change new -> result. Using C++ keywords isn't too hot
2000-03-26 17:06:19 +00:00
Sam Ruby
6a7bc777ca
Dynamically load java support, for better error messages
2000-03-25 15:57:04 +00:00
Andrei Zmievski
7b02e9fc35
@- Fixed extract() for EXTR_PREFIX_SAME and EXTR_SKIP cases. (Andrei)
2000-03-24 14:56:19 +00:00
Thies C. Arntzen
3e99a228df
@- stristr() no longer modifies it's arguments. (Thies)
...
fix #3890
2000-03-22 08:14:00 +00:00
Thies C. Arntzen
7db7884e8c
(var_dump) removed "refcount-hack" - comiles without warning again (&works).
2000-03-19 11:08:07 +00:00
Thies C. Arntzen
245428b241
fix some protos
2000-03-19 10:56:40 +00:00
Andi Gutmans
e88bde0a73
- Fix compile problem on FreeBSD.
2000-03-18 16:16:15 +00:00
Thies C. Arntzen
e4df84a8da
(serialize/unserialize) _sleep_() -> __sleep(), _wakeup_() -> __wakeup() rename.
2000-03-18 15:04:02 +00:00
Hartmut Holzgraefe
1e0b71df1f
is_executable() for root fixed
...
this is an intermediate patch, switching from stat() to
access() for is_(readable|writable|executable) shall
fix the whole topic once and for all
2000-03-17 12:41:55 +00:00
Sterling Hughes
b3ecf2feaf
ftruncate returns 1 on success and 0 on failure instead of 0 on success and -1 on failure.
2000-03-17 00:44:55 +00:00
Sam Ruby
74169f5fc4
restore compilation on ZTS enabled environments (like Windows)
2000-03-16 18:24:43 +00:00
Andrei Zmievski
ddf3740cf9
@ Added is_numeric() that returns true if the argument is a number
...
@ or a numeric string. (Andrei)
2000-03-16 16:02:23 +00:00
Thies C. Arntzen
f856855efd
*** empty log message ***
2000-03-16 02:18:24 +00:00
Thies C. Arntzen
0fe5aef05e
@- serialize()/unserialize() now call _sleep_() and _wakeup_() when
...
@ working on objects. (Thies)
@- renamed to_string() method to _string_value_() for consistency.
@ (Thies, Zend library)
2000-03-16 02:15:41 +00:00
Sam Ruby
2702340dd9
Emulate user/group/other on Windows
2000-03-15 11:52:07 +00:00
Hartmut Holzgraefe
b19d1bdb0f
imap_utf7_encode didn't expand international characters to 16bit
...
before coding
imap_fetch_overview could crash when some fields where missing
imap_fetch_overview will now take msg indices for default and
UIDs by optional flag, as the other functions in the family
2000-03-14 20:20:43 +00:00
Thies C. Arntzen
49cc8a7805
@- fixed possible crash in unserialize if the serailized data was
...
@ damaged. (Thies)
2000-03-14 07:49:42 +00:00
Andi Gutmans
70eb0c78f8
- Also check module API number
2000-03-13 06:00:36 +00:00
Kristian Köhntopp
85940d676f
Finished porting recode module.
2000-03-12 19:42:29 +00:00
Sascha Schumann
bb09ee9505
Use sprintf everywhere and define sprintf to php_sprintf, if sprintf is broken.
2000-03-12 17:18:21 +00:00
Sascha Schumann
caeaaf4d98
Fix build on systems which lack snprintf or vsnprintf.
...
PR: #3786
2000-03-12 15:47:34 +00:00
Andi Gutmans
9dca788ca0
- Don't define DEBUG anymore. Everyone should use PHP_DEBUG.
...
There are 2-3 third-party libs in PHP which use DEBUG and I left them
this way (primary example is pcrelib).
- Please test things and Andrei, can you check that pcrelib stopped
printing the warning messages?
2000-03-11 20:48:49 +00:00
Andi Gutmans
fe558092e4
- Don't load modules which have different debug and ZTS information than
...
PHP() (untested). Not sure how to handle API version. Should it also not
load? It probably should but it might bite us at some point.
@ Prevent from loading dynamic PHP modules which were compiled with different
debug and thread safety modes than PHP, which resulted in a crash (Andi)
2000-03-11 16:23:30 +00:00
Andi Gutmans
2d2c494970
- Thies, it is crucial :)
2000-03-07 15:50:51 +00:00
Sam Ruby
57f3e61220
Unresolved external php_if_ftruncate on Win32
2000-03-07 14:41:33 +00:00
Sam Ruby
ec8add1a4c
Only define crypt if it is present
2000-03-07 12:28:06 +00:00
Andrei Zmievski
ae11f08d69
Can't believe it hasn't been done yet.
2000-03-07 04:28:43 +00:00
Thies C. Arntzen
3b6d718f18
(php: dl) fixed MAXPATHLEN bug
...
# now it's /* SAFE */ !
2000-03-07 03:43:03 +00:00
Stig Bakken
99e0b36321
@Cleaned up extension namespace (Stig)
...
Cleaned up extension namespace, and changed ext/standard into one single
extension.
2000-03-06 20:37:11 +00:00
Stig Bakken
d02fe90b00
Change extension names in all extensions' zend_module_entry to their
...
directory name.
2000-03-06 18:44:01 +00:00
Egon Schmid
0beaaa9356
Hartmut don't touch protos. Only two lines are allowed.
2000-03-06 16:01:54 +00:00
Hartmut Holzgraefe
36abfe1121
off-by-one error (bug id #3741 ) fixed
2000-03-06 15:32:05 +00:00
Andrei Zmievski
b4b82e05d8
Remove warning.
2000-03-05 04:25:12 +00:00
Andrei Zmievski
b1de472ba3
Don't need this check.
2000-03-04 19:26:27 +00:00
Andrei Zmievski
0e18779e8b
@Added ip2long() and long2ip() courtesy of Faisal Nasim <faisal@nasim.org>
2000-03-04 17:28:16 +00:00
Andrei Zmievski
5610800a7b
@Added ftruncate() and fstat(), courtesy of Faisal Nasim <faisal@nasim.org>
2000-03-04 17:23:03 +00:00
Sascha Schumann
365f379435
Don't export Lookahead
2000-03-04 14:22:15 +00:00
Zeev Suraski
d34b144061
@- Added parse_ini_file(). Currently implemented in non thread safe version
...
@ of PHP, and currently lacks section support (Zeev)
- Bring the non thread safe .dsp's uptodate
2000-03-04 02:59:14 +00:00
Egon Schmid
70893ff7af
Only two lines are allowed here.
2000-03-01 19:56:46 +00:00
Hartmut Holzgraefe
33cb181af2
round(-0.1) will now return 0 instead of -0
2000-03-01 19:36:37 +00:00
Andrei Zmievski
4c7af667a7
Made php_escape_html_entities() as a separate function for export.
2000-02-29 04:38:14 +00:00
Andi Gutmans
e45c1af8b4
- Hopefully fix browscap problem
2000-02-27 20:23:31 +00:00
Zeev Suraski
1261271839
Allow the INI callbacks to know at what stage PHP is
2000-02-26 15:36:23 +00:00
Zeev Suraski
fd344d3602
@- Added ini_set() as an alias to ini_alter() (Zeev)
2000-02-26 14:53:18 +00:00
Zeev Suraski
bf5cb890b0
- Convert 'PHP3' to 'PHP'
...
- Avoid declaring crypt() related salt types twice
2000-02-26 03:20:55 +00:00
Stig Bakken
d23e5d837a
@- Implemented default_charset and default_mimetype config directives (Stig)
...
Implemented default_charset and default_mimetype configuration directives.
Started implementing ticks in PHP.
2000-02-25 21:27:03 +00:00
Zeev Suraski
99d572ad14
Make 4-diogit date RFC 2068 compliant
2000-02-25 16:45:52 +00:00
Egon Schmid
10f52b4805
Breaks funclist.txt
2000-02-25 11:28:41 +00:00
Egon Schmid
284491887f
There are more '|' and should be mixed.
2000-02-24 15:06:33 +00:00
Egon Schmid
c07b5282af
More protos.
2000-02-24 14:43:53 +00:00
Andrei Zmievski
c401bbe22e
Fix proto.
2000-02-24 14:07:35 +00:00
Egon Schmid
0275e4f665
Will watch the diffs as much as I can.
2000-02-24 10:11:42 +00:00
Thies C. Arntzen
88b903da66
zorro does a Z - egon does an e?
2000-02-24 09:32:50 +00:00
Egon Schmid
fe615efb5c
More protos.
2000-02-24 08:39:02 +00:00
Egon Schmid
7da7a50c69
More protos.
2000-02-24 08:07:29 +00:00
Egon Schmid
3b5efa05f7
More protos.
2000-02-24 07:49:43 +00:00
Egon Schmid
dcf5f1a8d5
Most functions don't have protos.
2000-02-24 07:46:56 +00:00
Zeev Suraski
b82f261918
Fix name
2000-02-23 22:50:57 +00:00
Zeev Suraski
6981775d23
Remove obsolete code
2000-02-23 21:52:23 +00:00
Stig Bakken
b275477b76
(PHP getrusage) don't define this function at all if the getrusage() function
...
is not available on the system.
2000-02-23 21:37:43 +00:00
Sascha Schumann
027512320f
Include <sys/types.h> and <sys/time.h> before <sys/resource.h>
2000-02-23 17:39:58 +00:00
Sascha Schumann
53e1ea7728
php.h should be the first file included, so that HAVE_* are defined
2000-02-23 15:44:02 +00:00
Sascha Schumann
21ca719293
Include <sys/resource.h> for getrusage(2)
...
PR: #3479
2000-02-23 14:13:34 +00:00
Andrei Zmievski
98674b73bd
(PHP exec) Return last line of output properly.
2000-02-22 18:00:32 +00:00
Chuck Hagenbuch
13f27d8063
being accountable for the imap and mcal work that I've done (and adding an
...
MCAL credits line)
2000-02-21 14:50:41 +00:00
Andrew Skalski
b99722ddf5
added myself to the FTP/IMAP credits
2000-02-21 14:35:28 +00:00
Zeev Suraski
86fa2aade2
the pipe is breaking all the time
2000-02-19 23:41:32 +00:00
Zeev Suraski
739bdec582
Worked on beautifying rfc1867.c a bit
...
@- Introduced $HTTP_POST_FILES[], that contains information about files uploaded
@ through HTTP upload (Zeev)
2000-02-19 20:12:26 +00:00
Zeev Suraski
f1dac01f11
- 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()
2000-02-18 17:59:44 +00:00
Zeev Suraski
75b1316e70
@- Updated the browscap module to work with PHP 4.0 (Zeev)
2000-02-16 17:46:14 +00:00
Thies C. Arntzen
9819391442
(url_parse) only free regex if compile worked.
2000-02-16 11:47:20 +00:00
Thies C. Arntzen
1fae341a98
(url_parse) fix memory leak ( #3495 )
2000-02-16 11:41:49 +00:00
Andrei Zmievski
f71098906b
Fix for filesize() and others on sockets.
2000-02-14 14:18:17 +00:00
Andi Gutmans
bac7a5085e
- Not sure if len can be zero but it's better to check it once then
...
rechecking for it every loop and having an extra variable do nothing.
2000-02-13 15:59:32 +00:00
Andi Gutmans
7441ee5175
- Beautify a bit.
2000-02-13 15:56:07 +00:00
Zeev Suraski
6ae0902498
- Hopefully fix strip_tags bug
...
@- Fix overrun in strip_tags (Stas, Zend library)
2000-02-13 15:35:51 +00:00
Thies C. Arntzen
017a6353d1
@- Fixed crash in strip_tags() and related functions. (Thies)
2000-02-13 14:56:35 +00:00
Zeev Suraski
003ef1aa74
Trap bailout of shutdown functions
2000-02-13 00:26:54 +00:00
Andrei Zmievski
a60e91b313
(request_shutdown) Prevent infinite loop on shutdown if there is an error
...
in shutdown function.
(php_array_walk) Print a warning if the walk function doesn't exist.
Split shutdown function call into a separate function that's called with
zend_hash_apply() instead of as destructor to keep hash consistent.
This fixes bug #3419 .
2000-02-11 21:14:42 +00:00
Andrei Zmievski
0f4b9aa812
Fix prototype.
2000-02-11 19:19:06 +00:00
Andrei Zmievski
055645b079
(PHP passthru) Shouldn't return anything.
...
This fixes bugs #3428 and #3430 .
2000-02-11 19:16:36 +00:00
Zeev Suraski
80bdd19e03
Fine tune Andi's patch
2000-02-11 15:59:30 +00:00
Andi Gutmans
29280bb9ec
- Get rid of some more evil MSVC5's and switch standard/ to use PHP_WIN32
2000-02-10 21:53:56 +00:00
Zeev Suraski
6d0ab6166c
SAPIfication, Episode VI: Return of the SAPI
...
Remove mostly all references to APACHE and CGI_BINARY from the code.
- Apache include files are no longer included by any PHP code, except for the Apache SAPI module.
- No server specific code is in any of the base PHP code.
Still left to be done:
- Eliminate any references to APACHE from the few remaining modules.
- Move request_info.c's logic to SAPI
- Modify the regex function names, and globals, so that we can always
include them, without having to fear any interference with Apache;
Always use the bundled regex library
2000-02-10 19:41:21 +00:00
Zeev Suraski
41f6bca92f
More cleanup!
2000-02-10 18:19:04 +00:00
Zeev Suraski
0fd89aa20d
More cleanup - move getenv() to SAPI
2000-02-10 17:55:01 +00:00
Thies C. Arntzen
4a824eb8cb
@- Added NULL-support in gettype(). (Thies)
2000-02-10 15:51:50 +00:00
Thies C. Arntzen
c59c663619
@- base64_decode() will decode POST data correct. (Thies)
...
@ Patch submitted by: Turadg Aleahmad <turadg@wise.berkeley.edu>
2000-02-10 09:44:22 +00:00
Zeev Suraski
2460569ccb
Change string->str where possible; string is basic a C++ class, so gdb can't look
...
inside variables named 'string'.
2000-02-08 22:21:43 +00:00
Zeev Suraski
489b705d4b
@- Fixed memory corruption in fgetss(), strip_tags() and gzgetss() (Zeev)
2000-02-08 21:29:18 +00:00
Thies C. Arntzen
de0774041c
@- Made the output of var_dump() more informative. (Thies)
2000-02-07 18:00:16 +00:00
Thies C. Arntzen
90ac20ebb5
@- Fixed possible buffer-overflow in base64_decode. (Thies)
...
fix #3226
2000-02-06 15:18:59 +00:00
Thies C. Arntzen
59e466d54c
fix for #3413
...
@- Fixed possible buffer-overflow in setcookie(). (Thies)
2000-02-06 14:36:27 +00:00
Zeev Suraski
c630fe664f
Standardize
2000-02-05 22:58:59 +00:00
Zeev Suraski
c12aa454ff
Compile fixes
2000-02-05 15:44:20 +00:00
Zeev Suraski
3a816341f9
Cleanup patches
2000-02-05 15:16:12 +00:00
Zeev Suraski
8055da9830
Use the new state functions
...
@- If header information is sent after output has already been sent, the warning
@ message will now state the filename and line number at which the first output
@ was made (Zeev)
2000-02-04 14:54:30 +00:00
Andrei Zmievski
1a4e39838f
(PHP wddx_deserialize) Fixed a problem with deserializing empty values.
...
(php_addslashes) Guard against NULL data.
2000-02-02 21:53:27 +00:00
Andrei Zmievski
0c535aa355
(php_sock_fgets) Respect timeout event.
2000-02-02 18:00:44 +00:00
Andrei Zmievski
1258fbb077
Some rearranging.
2000-02-02 14:15:46 +00:00
Thies C. Arntzen
3ccff40306
use FREE_ZVAL where appropiate
2000-02-02 11:31:37 +00:00
Andrei Zmievski
83a0278171
Not needed.
2000-02-01 22:17:06 +00:00
Zeev Suraski
c47452f729
Compile fix
2000-02-01 22:13:13 +00:00
Andrei Zmievski
a753430fb9
- Implemented socket_get_status() function. Some more stuff can be added
...
to it in the future.
- Renamed set_socket_timeout() to socket_set_timeout()
- Renamed set_socket_blocking() to socket_set_blocking() but kept the
old name for compatibility. It now outputs a warning that
set_socket_timeout() is deprecated but still goes through.
@ Added socket_get_status() function. Renamed:
@ set_socket_timeout() -> socket_set_timeout()
@ set_socket_blocking() -> socket_set_blocking(). (Andrei)
2000-02-01 20:02:44 +00:00
Andrei Zmievski
91bb21c522
Implemented realpath().
...
@ Added realpath() function. (Andrei)
2000-02-01 06:06:03 +00:00
Zeev Suraski
86a19f4714
Add the complement to the putenv() security
2000-01-31 22:31:00 +00:00
Sascha Schumann
f8e1457be0
(PHP mktime) Added windowing support for 0..70
...
@- mktime interprets years in the range 0-70 now as 2000-2070. You can
@ continue to specify the complete year (i.e. 1920) (Sascha)
2000-01-31 17:22:17 +00:00
Zeev Suraski
53a0d6fb9d
Fix typo
2000-01-30 22:14:58 +00:00
Zeev Suraski
5540028340
@- Added the ability to prevent the user from overriding certain environment
...
@ variables in Safe Mode (Zeev)
- Finished work, more or less
2000-01-30 22:10:30 +00:00
Zeev Suraski
01362974d6
Some more work, I'll finish this when I get home
2000-01-30 20:49:16 +00:00
Zeev Suraski
430571d62c
Initial work on the protected env vars stuff
2000-01-30 20:31:41 +00:00
Zeev Suraski
8a2f6c5e60
@- Fixed a crash bug in strtr() working on large input strings (Zeev)
2000-01-29 17:54:30 +00:00
Zeev Suraski
9ab35ae393
Tried to centralize global variable registration as much as possible:
...
- Added $HTTP_ENV_VARS[] and $HTTP_SERVER_VARS[] support, which similarly
to $HTTP_GET_VARS[], contain environment and server variables. Setting
register_globals to Off will now also prevent registration of the
environment and server variables into the global scope (Zeev)
- Renamed gpc_globals to register_globals (Zeev)
- Introduced variables_order that deprecates gpc_order, and allows control
over the server and environment variables, in addition to GET/POST/Cookies
(Zeev)
2000-01-28 17:24:53 +00:00
Zeev Suraski
fc678100cd
post.c really had nothing to do with POST anymore, and it belongs to the top level directory
2000-01-28 13:31:12 +00:00
Zeev Suraski
3a35a6955d
Get rid of the old implementation
2000-01-28 12:53:05 +00:00
Zeev Suraski
4b006cb8b0
This doesn't seem to be necessary, and causes a leak in case of output_buffering=on
2000-01-18 22:25:48 +00:00
Zeev Suraski
62114c1806
Destructors no longer return ints, the low level problem it was intended to solve is long gone now...
2000-01-17 17:33:37 +00:00
Andrei Zmievski
2fc0dac01e
(php_sockwait_for_data) timeout is not assigned yet, so check the right one.
2000-01-15 20:39:06 +00:00
Sascha Schumann
44a712d810
(php_sockwait_for_data) clean up
2000-01-15 19:51:44 +00:00
Andrei Zmievski
bfc85c288a
Fix prototype.
2000-01-15 19:42:40 +00:00
Andrei Zmievski
4423bf9d10
Added ability to set timeout on socket read operations. New function
...
set_socket_timeout(socket, seconds, microseconds) sets the timeout.
@- Added ability to set timeout on socket read operations through
@ set_socket_timeout() function. (Andrei)
2000-01-15 19:41:17 +00:00
Zeev Suraski
a0591b32c7
Fix logic
2000-01-15 17:23:18 +00:00
Sascha Schumann
b83739945e
Initialize flag correctly
2000-01-15 17:16:21 +00:00
Zeev Suraski
3f74baed02
Woops, forgot to commit the right version of the file...
2000-01-13 17:54:51 +00:00
Zeev Suraski
972631be71
- Added flush() support to SAPI
...
- Got rid of the old flush() implemenetation in favour of the new one
- Added implicit_flush() support to the output buffering layer.
@- Added implicit_flush() to control whether flush() should be called
@ implicitly after any output (Zeev)
2000-01-13 17:37:25 +00:00
Zeev Suraski
736570923d
@- Fixed a crash in pfsockopen() (Zeev)
2000-01-10 19:56:23 +00:00
Zeev Suraski
8acd3e3818
@- Fixed a possible crash in phpinfo() (Zeev)
...
phpinfo() now ensures that HTTP_*_VARS[] are actually arrays before it tries
to access them...
2000-01-09 18:32:13 +00:00
Thies C. Arntzen
48e10ec9c4
@- Applied safe-mode patch to popen(). (Patch by Kristian Köhntopp)
2000-01-06 15:27:03 +00:00
Jouni Ahto
9a07df6c4a
(php_setlocale) Fixed memory leak (bug #3105 ).
...
# Must have been thinking something else when originally wrote this.
2000-01-05 12:26:41 +00:00
Andi Gutmans
60841f1231
- Separate the overloaded objects' types from Zend's data types.
...
There is no reason for them to be the same, and IS_METHOD just cluttered
the data types.
- Overloaded elements should now use OE_IS_OBJECT, OE_IS_ARRAY, and
OE_IS_METHOD
2000-01-04 13:56:13 +00:00
Andi Gutmans
bdefd5da15
- Change IS_UNSET -> IS_NULL
2000-01-04 13:22:58 +00:00
Thies C. Arntzen
402a9db2fe
@- str_repeat() now returns correct length. (Thies)
2000-01-04 09:45:28 +00:00
Thies C. Arntzen
953bf8bbf6
(var_dump, serialize, unserialize) support NULL
...
@- Added new NULL constant (Zeev, Zend library)
2000-01-02 11:49:27 +00:00
Sascha Schumann
890c1de998
Remove second (equal) definition of isleap()
2000-01-01 20:50:37 +00:00
Sascha Schumann
2fd8cbff2a
Declare timezone only, if the system fails to do so.
2000-01-01 02:22:01 +00:00
Sascha Schumann
43ae2bffbb
Happy Y2K patch! Happy new year (or the new millennium, depending on whether
...
you start counting at 0 or 1).
2000-01-01 01:32:05 +00:00
Zeev Suraski
ccb4b18348
Happy new year (especially to Thies :)
...
- Zend branch patches merged in - get the PHP tree uptodate
- Clean
1999-12-31 14:06:31 +00:00
Sascha Schumann
cf5a5fb1dd
Whoops, defining them to empty values generates many parse errors.
...
Defaulting to 1.
1999-12-30 04:52:19 +00:00
Sascha Schumann
2c99bef442
Get rid of config.h.stub. Note that you should embed a comment about
...
what the respective define does into the AC_DEFINE macro. I.e.
AC_DEFINE(HAVE_FOO, 1, [Whether you have FOO])
1999-12-30 04:07:46 +00:00
Sascha Schumann
f2f8d38efa
Integration of -ng changes. Changes:
...
- added support for externally built modules,
- improved support for in-tree shared modules,
- fixed diversion bugs,
- configure displays some informative messages,
- faster static build
(libtool isn't used anymore for compiling non-PIC objects),
- dependencies comparable to automake's without requiring GNU make or GCC,
- working make clean for non-GNU makes.
1999-12-30 02:59:53 +00:00
Sascha Schumann
09d2e3d159
Move include into source file
1999-12-28 18:47:59 +00:00
Sascha Schumann
068596552d
Cache results of crypt capability checks
1999-12-26 22:35:55 +00:00
Zeev Suraski
235386b245
Change ALLOC_ZVAL() semantics
1999-12-26 21:21:33 +00:00
Zeev Suraski
90f1218fbb
- Change uint32 to php_uint32 (PostgreSQL defines uint32, and perhaps other packages too)
...
- PostgreSQL finally compiles&links
1999-12-26 00:18:44 +00:00
Andi Gutmans
d6f788f56a
- Get rid of two warnings
1999-12-25 09:06:55 +00:00
Andi Gutmans
3bf1b04cb4
- Move more stuff to ALLOC_ZVAL(). We need to add those FREE_ZVAL()'s now.
1999-12-24 17:39:27 +00:00
Andi Gutmans
3f6e00e48d
- Use ALLOC_ZVAL() in PHP. Finding the places to put FREE_ZVAL(z) is much
...
more tricky and I'm not sure how many places this is. zval allocations
were only made directly in 11 places.
1999-12-24 15:43:39 +00:00
Thies C. Arntzen
63d0849403
pval->zval
1999-12-23 14:59:01 +00:00
Thies C. Arntzen
a94721fc4c
@- strrev() no longer modifies arg1. (Thies)
1999-12-23 14:55:50 +00:00
Thies C. Arntzen
ec33704c39
@- Fixed buffer overruns in iptcembed(). (Thies)
1999-12-22 14:46:31 +00:00
Sascha Schumann
a2276107ab
Some cleanup
1999-12-21 22:58:04 +00:00
Zeev Suraski
e538fcbf10
@- 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)
1999-12-21 20:35:43 +00:00
Andrei Zmievski
80bab9d939
We're using ZVAL's now.
1999-12-21 17:14:31 +00:00
Thies C. Arntzen
e96c5401f1
commented out select() & friends for now - we need to come up with a good API for those!
1999-12-21 16:51:27 +00:00
Sam Ruby
8a34d1a7e0
Further cleanup as including php.h is no longer harmful
...
- thanks to Sascha for noticing it.
Tested on Linux and WinNT, should work everywhere.
1999-12-21 02:34:20 +00:00
Sascha Schumann
ed0a307ccd
Use sapi_module_struct to contain SAPI module name
1999-12-20 23:09:54 +00:00
Andrei Zmievski
6e1dbe497c
Made quotemeta() binary-safe.
...
@ Made quotemeta() binary-safe. (Andrei)
1999-12-20 20:43:47 +00:00
Andrei Zmievski
1ad5180f28
getParameters -> zend_get_parameters
1999-12-20 17:34:55 +00:00
Zeev Suraski
f455a484bd
Make the Win32 tree compile again
1999-12-20 15:38:44 +00:00
Sascha Schumann
0d70a91b6d
Add information about chosen SAPI module to phpinfo()
1999-12-20 07:12:27 +00:00
Evan Klinger
f5d5637f72
Ex API
1999-12-20 02:09:58 +00:00
Evan Klinger
eb54c032c8
Ex API
1999-12-20 01:23:15 +00:00
Evan Klinger
9ea9ca32ba
Ex API and UDP support.
...
@- Added UDP support in fsockopen() (Evan).
# UDP activated with "udp://hostname"
1999-12-20 00:55:58 +00:00
Zeev Suraski
489de5dce2
Support the latest update to call_user_function_ex()
1999-12-19 18:58:27 +00:00
Sascha Schumann
cb45c2ea55
Use zend_sprintf by default (which is defined to sprintf, if the system's
...
sprintf is useable).
1999-12-19 14:39:41 +00:00
Sascha Schumann
63d4411560
Use workaround function for sprintf, if the return value of sprintf is needed
1999-12-19 02:12:31 +00:00
Zeev Suraski
a1ad2872ee
- The tree compiles again
1999-12-18 22:40:35 +00:00
Zeev Suraski
3ee4e65c95
More php3_ annihilation
1999-12-18 04:01:20 +00:00
Zeev Suraski
396bccfb1d
More php3_ cleanup
1999-12-17 22:34:04 +00:00
Zeev Suraski
2d0b84ee30
More work on php3_ annihilation...
1999-12-17 20:55:32 +00:00
Zeev Suraski
fb1c77bd4f
- Made PHP_VERSION and PHP_OS work again
...
- More php3_ cleanup
@- Restored the PHP_VERSION and PHP_OS constants (Zeev)
1999-12-17 20:55:31 +00:00
Zeev Suraski
a3c6514332
More php3_ annihilation
1999-12-17 19:51:39 +00:00
Zeev Suraski
02d3b39420
More php3_ annihilation
1999-12-17 19:16:50 +00:00
Andrei Zmievski
8f17fbb900
Added get_loaded_extensions(), extension_loaded(), and
...
get_extension_funcs() functions.
@ Added get_loaded_extensions(), extension_loaded(), and
get_extension_funcs() functions. (Andrei)
1999-12-16 23:47:10 +00:00
Andrei Zmievski
1be7a8d461
Moved function_exists() to Zend library.
1999-12-14 22:15:55 +00:00
Thies C. Arntzen
1cad06afda
(getimagesize) grrr, fixed newly (30 min ago) introduced NPR
1999-12-14 04:32:54 +00:00
Thies C. Arntzen
ad764253ca
use ex-API
1999-12-14 04:10:01 +00:00
Thies C. Arntzen
6553540153
@- implemented count_chars(). (Thies)
1999-12-14 03:52:12 +00:00
Thies C. Arntzen
8267934235
use ex-API
1999-12-14 03:49:42 +00:00
Thies C. Arntzen
d90daba134
use _ex-API
1999-12-14 03:48:46 +00:00
Andrei Zmievski
8ebba516a3
Boo.
1999-12-14 03:25:04 +00:00
Andrei Zmievski
a15916a47a
Made strspn() and strcspn() binary-safe.
...
# Please test if you can, especially cases with embedded chr(0).
@ Made strspn() and strcspn() binary-safe.
1999-12-13 23:40:36 +00:00
Andrei Zmievski
457a13dac5
Finished array_multisort() function. Basically it sorts multiple arrays
...
similar to ORDER BY SQL clause.
@ Added array_multisort() function. (Andrei)
# Docs are coming soon
1999-12-13 19:42:26 +00:00
Sascha Schumann
e911ee38bd
Make rand.c thread-safe.
1999-12-13 18:31:29 +00:00
Sascha Schumann
61a6a92618
Make filestat.c thread-safe
1999-12-12 16:48:54 +00:00
Sascha Schumann
d9258da42e
@- Made pageinfo.c thread-safe (Sascha)
1999-12-12 16:14:40 +00:00
Sascha Schumann
9278d9d911
Remove unnecessary ARRAYLS_FETCH() calls
1999-12-12 10:50:30 +00:00
Andrei Zmievski
dbaf6c5c65
Added array globals in preparation for multisort() changes.
1999-12-11 22:42:01 +00:00
Andrei Zmievski
0c779c51c9
(PHP php_implode) Made binary-safe.
...
@ Made implode() binary-safe (Andrei)
1999-12-11 20:00:40 +00:00
Andrei Zmievski
33d82cb6d1
get_meta_tags() was using php_stristr() so it needed to be changed.
...
Optimized it to use php_memnstr() directly.
1999-12-11 19:51:04 +00:00
Andrei Zmievski
17ff0f3af3
Made strstr(), stristr(), and ucwords() binary-safe(). Also corrected
...
stristr() behavior to match that of strstr() if needle is not a string.
@ Made strstr(), stristr(), and ucwords() binary-safe() (Andrei)
1999-12-11 19:50:01 +00:00
Andrei Zmievski
d18ff45c4c
A few more fixes for php_strtolower().
1999-12-10 04:44:32 +00:00
Andrei Zmievski
7e4bd9fb60
(PHP strtoupper, strtolower, substr_replace) Made binary-safe.
...
@Made strtoupper(), strtolower(), substr_replace() binary-safe. (Andrei)
1999-12-09 23:45:30 +00:00
Thies C. Arntzen
0489895d0b
(unserialize) closed mem-leak
1999-12-09 11:24:51 +00:00
Sascha Schumann
01c7fc6c8f
Use global ctor in non-ZTS mode as well
1999-12-08 19:07:58 +00:00
Thies C. Arntzen
276c0a378d
(unserialize) now cleans up better on failure!
1999-12-08 14:40:46 +00:00
Thies C. Arntzen
f7089e600f
make non-ZTS happy again
1999-12-08 14:18:28 +00:00
Thies C. Arntzen
5fad6deb65
this is the "right" ZTS-fix
1999-12-08 11:47:50 +00:00
Sam Ruby
b9f27a4743
Fill in empty constructor in order to appease Sascha ;-)
...
More seriously, uninitialized values cause MSHUTDOWN to trap.
Only an issue because assert was added to internal_functions.
1999-12-07 21:07:42 +00:00
Thies C. Arntzen
7b7192dda3
added assert.quiet_eval plus a bit of cleaning (docs to follow!)
1999-12-07 16:45:46 +00:00
Sam Ruby
8fdd352404
fixed just enough to enable assert to build on win32 and Linux/ZTS
1999-12-07 16:28:27 +00:00
Thies C. Arntzen
f02f67e83c
fixed NPR
1999-12-07 13:33:37 +00:00
Thies C. Arntzen
2f7693963d
@- Added support for a C-like assert() function. (Thies)
1999-12-07 13:08:17 +00:00
Thies C. Arntzen
19ce7e05db
getting there
1999-12-07 12:33:36 +00:00
Thies C. Arntzen
a807dd31e9
new assert() module. (Not yet finished!)
1999-12-07 11:37:30 +00:00
Thies C. Arntzen
5cdb16ad09
(explode) fixed newly introduced bug (them shall check twice *before* committing!)
1999-12-07 08:14:00 +00:00
Evan Klinger
1fe899d8cd
Mention CyberCash.
1999-12-07 02:49:03 +00:00
Sam Ruby
e3cbafdda6
-kludges -warning +reentrancy(more) +compiles(Unix)
1999-12-07 02:47:35 +00:00
Zeev Suraski
40eb2bb5b0
First step in making parsedate.y thread safe - use a pure parser
1999-12-06 19:04:01 +00:00
Thies C. Arntzen
beb9723617
fixed warning
1999-12-06 19:01:21 +00:00
Thies C. Arntzen
1095f8a502
@- explode() is now binary-safe. (Thies)
...
we save one buffer-copy as well (hehe)
1999-12-06 18:29:22 +00:00
Thies C. Arntzen
db3cf21e55
@- strpos() is now binary-safe. (Thies)
1999-12-06 17:37:59 +00:00
Zeev Suraski
02d76f8b86
This is no longer needed. Note that we'll always need to undefine YYSTYPE, since
...
the template bison generated .h file defines it if it's not already defined.
1999-12-06 15:34:05 +00:00
Thies C. Arntzen
5201f90588
removed unneded CLS_FETCH()
1999-12-06 13:08:16 +00:00
Sam Ruby
7ae5d271b6
build error: wrong num parms to date_parse
1999-12-06 05:28:26 +00:00
Sascha Schumann
4a60eed469
Fix some warnings
1999-12-05 16:25:32 +00:00
Rasmus Lerdorf
dfd0f8824c
More maintainer-mode cleanups
1999-12-05 14:16:37 +00:00
Rasmus Lerdorf
ca362445c4
Fix a maintainer-mode warning
1999-12-05 13:41:42 +00:00
Stig Bakken
ae1b7bf4b8
@Fix warnings compiling in maintainer mode. (Stig)
...
Fix warnings compiling in maintainer mode.
Install DB/common.php and DB/mysql.php on "make install".
# We still have a warning from http_config.h:97. Rasmus? :-)
1999-12-05 10:29:06 +00:00
Stig Bakken
0dd9658485
#if -> #ifdef change for HAVE_LIBDL (to be consistent with the same symbol
...
in libzend).
1999-12-04 20:55:33 +00:00
Sascha Schumann
5b983c944f
Clean up php3.*\.h files. The files itself are renamed, and references in all
...
.*\.[ch] files were changed. There is a slight chance that my script missed
a few changes, please correct them manually.
1999-12-04 19:19:57 +00:00
Sascha Schumann
b978a64ebb
Check for htonl in libsocket (sol251), and move inet_aton check in libbind to configure.in, so that our later AC_CHECK_FUNCS(inet_aton) will find inet_aton in libbind (if it is there).
1999-12-04 13:16:04 +00:00
Sam Ruby
70b97864f8
windows build errors
1999-12-03 20:08:24 +00:00
David Hedbor
b40afedd7e
Added credit notes for Roxen SAPI module
1999-12-03 17:10:18 +00:00
Sascha Schumann
7c209d774c
Use socklen_t where appropiate
1999-12-03 14:57:29 +00:00
Stig Bakken
a8f71d621f
Add configure command to phpinfo() output (Stig)
1999-12-03 13:31:41 +00:00
Stig Bakken
2467dd6d05
@Fix some warnings when compiling in maintainer-mode (Stig)
...
@Made mysql and gd work as shared extensions again (Stig)
- Fixed some warnings in maintainer-mode.
- Made mysql and gd work as shared extensions again by defining
COMPILE_DL if PIC is defined.
# We need a better solution for building .so extensions than this
# PIC/COMPILE_DL hack!
1999-12-01 22:59:45 +00:00
Zeev Suraski
15d47e551a
Test commit, ignore
1999-12-01 21:30:45 +00:00
Zeev Suraski
3467337217
@- Made the GET/POST/Cookie and their HTTP_*_VARS[] counterparts be references
...
@ to each other (Zeev)
1999-12-01 21:29:09 +00:00
Zeev Suraski
d6fd485692
@- Make the global GET/POST/Cookie variables and their $HTTP_*_VARS[] counterparts
...
@ be references to each other (Zeev)
1999-12-01 20:42:56 +00:00
Sascha Schumann
3b515617a4
Make array.c thread-safe
1999-12-01 17:21:52 +00:00
Sascha Schumann
94c36e8846
Make fsock module thread-safe
1999-12-01 17:07:25 +00:00
Sam Ruby
933c3121c5
libzend/zend_compile.h's #define YYSTYPE causes parsedate to barf on Windows
1999-12-01 14:24:45 +00:00
Andi Gutmans
2337d110f9
- Added opened_path to php_fopen_wrapper() and the URL fopen wrapper (it's not
...
always properly set, it's a TODO for all of us). This enables us to implement
true 'use' support.
@- Added support for the 'use' keyword - behaves like 'require', but will not
@ use the same file more than once (Andi & Zeev, Zend library)
1999-11-30 20:18:11 +00:00
Sam Ruby
fd9265362c
Initial alpha-level of sapi/servlet. See README for details.
1999-11-29 15:36:25 +00:00
Sam Ruby
0383909477
Use thread-safe versions of localtime and gmtime on Win32 too
1999-11-29 14:04:16 +00:00
Andi Gutmans
0ab2c37540
- Add OLS_C so that we can call php_output_init_globals() with it.
1999-11-28 20:38:44 +00:00
Rasmus Lerdorf
7cefad61ed
# check link() as well
1999-11-28 16:35:26 +00:00
Rasmus Lerdorf
6132f85c8d
(symlink) Disable symlinks to urls
...
@- Disable symlinks to urls
1999-11-28 16:23:30 +00:00
Sascha Schumann
6216edda44
Make basic/string functions thread-safe
1999-11-28 00:31:02 +00:00
Sascha Schumann
8573448db2
one tmbuf is enough
1999-11-27 21:18:01 +00:00
Jouni Ahto
3e8303abf0
Use thread-safe versions of localtime and gmtime
1999-11-27 20:51:17 +00:00
Sascha Schumann
b6e6dddc30
Only compile the scanner, if trans_sid is enabled
1999-11-27 16:15:35 +00:00
Sascha Schumann
1a851b5d03
Kill undefined reference
1999-11-26 22:37:45 +00:00
Sascha Schumann
9f386181f5
Undefine HAVE_PUTENV, if ZTS is used
1999-11-26 21:20:40 +00:00
Sascha Schumann
2ec047e1ec
Kill one race.
1999-11-26 21:04:40 +00:00
Sascha Schumann
f0187ef3c9
Use php_init_output_globals() also in non-ZTS mode
1999-11-26 18:34:27 +00:00
Sascha Schumann
1c6173619e
Use thread-safe versions of localtime and gmtime
1999-11-26 16:29:00 +00:00
Zeev Suraski
061cfea2ac
*** empty log message ***
1999-11-26 13:56:33 +00:00
Sascha Schumann
38819040b6
Replace strtok with strtok_r
1999-11-26 13:34:31 +00:00
Sascha Schumann
d462115341
Killing some unused variable warnings
1999-11-24 17:56:31 +00:00
Evan Klinger
18fb96efb4
Freeing the memory would be a good idea...
1999-11-24 06:16:37 +00:00
Evan Klinger
633d18de0f
Can't forget fd_isset()
1999-11-24 03:47:58 +00:00
Evan Klinger
769e25e168
First attempt at fd_set() and select()
...
# Please test thoroughly
1999-11-24 03:05:10 +00:00
Zeev Suraski
db0fcc6d11
Use the unified notation...
1999-11-23 22:10:44 +00:00
Zeev Suraski
e9742f5458
Cosmetic changes
1999-11-23 21:08:51 +00:00
Evan Klinger
42f8f2516d
Convert to Ex API
...
# If someone could please check these I'd appreciate it
1999-11-23 06:46:40 +00:00
Sam Ruby
5385610450
errors during startup trap server
1999-11-23 03:10:46 +00:00
Zeev Suraski
9820dd0927
Fixed a leak when using automatic output buffering
...
@ Fixed a leak when using automatic output buffering (Zeev)
1999-11-22 20:58:56 +00:00
Frank M. Kromann
8aed1627c0
add MS SQL module to credit info
1999-11-22 19:10:14 +00:00
Evan Klinger
be6dde2639
Optimize a tiny bit
1999-11-22 02:38:00 +00:00
Sascha Schumann
11030ee410
(PHP urldecode) Fix for #2788 , function changed parameter in place
1999-11-21 20:08:43 +00:00
Thies C. Arntzen
5cc10ecec2
@- Fixed float-compare in min(),max(),a[r]sort(),[r]sort(). (Thies)
...
convert_to_long() after compare_function() destroys float-compares!
1999-11-21 17:13:39 +00:00
Egon Schmid
0929985414
Maybe later on today. Must buy some beer first.
1999-11-21 14:06:30 +00:00
Thies C. Arntzen
f24db304ee
@- Implemented get_html_translation_table() function. (Thies)
...
(PHP get_html_translation_table) new function.
1999-11-21 13:25:04 +00:00
Thies C. Arntzen
2451ff5368
@- Implemented array_flip() function. Returns input-array with key, value
...
@ flipped. (Thies)
(PHP array_flip) new function. no clash detection, only works for IS_STRING and IS_LONG datatypes in src-array.
1999-11-21 12:37:53 +00:00
Thies C. Arntzen
ee1380e6b0
-renamed some macros
...
-return_value_used now used in a few more functions
1999-11-21 12:13:44 +00:00
Thies C. Arntzen
9788129e0e
(PHP strtr) little smarter
1999-11-21 12:05:39 +00:00
Andrei Zmievski
90ecf41b19
(PHP substr_replace) Changed the order of the arguments.
1999-11-20 22:09:27 +00:00
Thies C. Arntzen
2013026c14
@- Implemented 2-Arg version of strtr($str,$translation_array). This can be used
...
@ to revert what htmlspecialchars() did. (Thies)
(PHP strtr) new 2-Arg version.
1999-11-20 15:53:18 +00:00
Andi Gutmans
3bffcbef5b
- Add array.c to the Win32 project
1999-11-19 15:06:57 +00:00
Sam Ruby
560c0c4308
arg! alphabetize correctly!
1999-11-18 03:03:24 +00:00
Sam Ruby
fd41750d87
add Java module to credit info
1999-11-18 02:40:52 +00:00
Andrei Zmievski
e46198bf7b
(PHP substr_replace) New function.
...
@- Added substr_replace() function. (Andrei)
1999-11-16 22:44:13 +00:00
Andrei Zmievski
61142e4341
Just some rearranging.
1999-11-16 20:14:55 +00:00
Andi Gutmans
9e14736315
- Change used_return_value to return_value_used
1999-11-16 19:12:29 +00:00
Andi Gutmans
7239aad9c4
- Initial support for Thies' idea of passing functions a flag telling them
...
they don't need to return a value. Adjusted reset() to work with this.
It is a bit problematic because if internal functions don't look at the
flag and still return a value orginally this leaked. So I free the value
in any case, which kind of makes the speed gain a bit smaller
1999-11-16 18:47:47 +00:00
Thies C. Arntzen
2b08dfec28
(PHP k[r]sort) now use compare_function from libzend to be consistent with the language-core.
1999-11-14 19:59:52 +00:00
Thies C. Arntzen
4127b34a0a
@- ucfirst()/ucwords() no longer modify arg1. (Thies)
...
(PHP ucfirst,ucwords) no longer modify arg1
1999-11-14 17:20:56 +00:00
Thies C. Arntzen
f2b0c70512
@- Fixed strtr() not to modify arg1. (Thies)
...
(PHP strtr) no longer modifies arg1.
1999-11-14 15:34:50 +00:00
Stig Bakken
5f8f410e51
@Added tmpfile() function (Stig)
...
Removed the mkstemp stuff and added tmpfile() function instead.
1999-11-14 11:05:37 +00:00
Andrei Zmievski
62eeb9278c
It's in array.c now.
1999-11-13 20:32:49 +00:00
Andrei Zmievski
438addf331
Split array functions into separate module.
1999-11-13 20:31:54 +00:00
Sascha Schumann
bcb2214e99
Improve regex library selection. It lets user specify whether they want
...
system, apache, or php's regex library by using the --with-regex option.
"php" is the default; if you use --with-apache in combination with
Apache 1.3.x, the default is "apache".
1999-11-13 16:51:33 +00:00
Sascha Schumann
117ebf3ca6
- remove extra CPPFLAGS from top-level Makefile
...
- HSREGEX defaults to what the user wants, but can be changed now internally
1999-11-13 13:27:49 +00:00
Sascha Schumann
3dc7757a99
Remove the extra INCLUDES line from most automake Mafiles. This is not
...
necessary, because we can change the value of INCLUDES globally in one
place (configure.in).
Also add two defines in thread-safe mode
(_REENTRANT and POSIX_PTHREAD_SEMANTICS)
1999-11-13 12:41:09 +00:00
Sascha Schumann
ceae3847b8
Enable selective regex library compilation.
1999-11-12 20:56:30 +00:00
Sascha Schumann
0c2e3e4e7d
Include proper header files (replacement functions were not used).
1999-11-09 13:57:11 +00:00
Stig Bakken
fdc6d630db
@Fix min/max behaviour (Thies)
...
#Andrei: I left the convert_to_long() in there, it doesn't really make
#much of a difference.
1999-11-09 07:59:50 +00:00
Zeev Suraski
0700ad3417
- Win32 fixes
...
- COM module improvements from Boris Wedl
1999-11-06 10:01:55 +00:00
Thies C. Arntzen
c6b05b2e6b
(PHP var_dump, serialize) now use php.ini's precision size when displying/serializing doubles
...
@- serialize() and var_dump() now honor the precision as set in php.ini
@ for doubles. (Thies)
1999-11-06 08:16:25 +00:00
Andrei Zmievski
602cb959fc
(PHP multisort) More work, not yet done though.
1999-11-04 21:55:47 +00:00
Evan Klinger
b1c4f8978d
#I hope this is the correct way to 'fix' this.
...
Fix compile warning
1999-11-03 02:53:52 +00:00
Sascha Schumann
358af8b9eb
Add <FORM ACTION=...> tag
1999-11-02 18:35:59 +00:00
Andrei Zmievski
f31c9d7d2a
Remove extraneous comment.
...
# Pay no attention to multisort() at the moment.
1999-11-02 14:39:12 +00:00
Evan Klinger
229a26a497
(PHP getprotoby{name,number}) New Functions
...
@- Implemented getprotoby{name,number} (Evan)
1999-11-02 03:47:09 +00:00
Andrei Zmievski
92f6a8b20e
Added array_pad() function.
...
# Ignore multisort() for now.
@- Added array_pad() function. (Andrei)
1999-11-01 20:51:04 +00:00
Evan Klinger
f7440c020d
(PHP getservby{name,port}) New functions.
...
@- Added new getservby{name,port} functions. (Evan)
1999-11-01 01:07:51 +00:00
Rasmus Lerdorf
cf0868fec8
Clean up regex header file mess. php.h now explicitly includes php_regex.h
...
and php_regex.h figures out which regex header files to include and
defines symbols that prevents other stuff from including the wrong versions
of regex header files.
1999-10-30 14:22:10 +00:00
Rasmus Lerdorf
f160ee8782
Kill the regex header file warnings
1999-10-29 17:33:19 +00:00
Andrei Zmievski
b8ecfa18c1
(PHP str_repeat) New function.
1999-10-27 22:06:05 +00:00
Thies C. Arntzen
ea880d2b86
moved output.c into ext/standart and made it thread-safe.
...
moved output-buffering related functions from basic_functions to output.c
Win32 project need to be updated to reflect new position.
# i'm not really happy with this solution, but it seemed the easiest one!
# the whole output code is a bit hard to understand...
@- Output-Buffering system is now Thread-Safe. (Thies)
1999-10-27 18:30:41 +00:00
Andrei Zmievski
1a2f656816
Forgot to remove function entry.
1999-10-27 02:19:53 +00:00
Thies C. Arntzen
6b69ebf2b8
eliminated warinigs
1999-10-26 20:09:59 +00:00
Andrei Zmievski
21ce8b7c64
(PHP array_map) Away with it.
1999-10-26 19:57:10 +00:00
Thies C. Arntzen
31b1a8fc7f
kill warning
1999-10-24 18:16:16 +00:00
Thies C. Arntzen
6581d11cea
folding fix (xemacs 21 loads the file again;-)
1999-10-24 18:15:42 +00:00
Thies C. Arntzen
3e307aacc4
unserialize no longer complaints about unserializing empty-strings (started that just a few days ago)
1999-10-22 06:59:05 +00:00
Sascha Schumann
e9fc8bb300
Add <AREA HREF=...
1999-10-21 20:22:12 +00:00
Andi Gutmans
5212b2fe5b
- Make CVS compile on Win32.
...
- Rename php3_COM.h -> php_COM.h
1999-10-20 18:09:44 +00:00
Thies C. Arntzen
33ebd52387
(PHP getcwd()) added, needs to porting to Win32
...
@- added getcwd() function. (Thies)
# as we do have chdir() now we have getcwd() - i think we *should* restore the
# working directory in RSHUTDOWN!
1999-10-20 16:17:30 +00:00
Sascha Schumann
df6d06def4
(_display_module_info): Add anchor for module names
1999-10-20 16:16:58 +00:00
Thies C. Arntzen
41b87a238e
(PHP var_dump, serialize) fixed mem_leak.
1999-10-20 14:34:16 +00:00
Andrei Zmievski
ee6c1ea743
(PHP extract): Fixed bug that would mess up global and referenced
...
variables in certain cases.
1999-10-19 14:43:48 +00:00
Thies C. Arntzen
578c6035c8
(parse_url) fix for #2569 : parse_url('-') crashes
...
@- Fixed parse_url('-') crash. (Thies)
1999-10-19 11:02:05 +00:00
Egon Schmid
4fe14a780c
More forgotten prototypes.
1999-10-18 20:00:42 +00:00
Thies C. Arntzen
4f013f8e2d
@- unserialize() now gives a notice when passed invalid data. (Thies)
1999-10-18 17:46:33 +00:00
Thies C. Arntzen
cf1134787a
(PHP unserialize) - fixed mem-leak.
1999-10-18 15:03:29 +00:00
Egon Schmid
515206ec4e
Looks better, but isn't wrong
1999-10-17 08:07:50 +00:00
Egon Schmid
6025dd0bda
One typo corrected.
1999-10-17 07:38:35 +00:00
Andrei Zmievski
9e0017536d
_php3/_php3i -> php rename
1999-10-16 16:35:20 +00:00
Andi Gutmans
ad84f02efb
- Get windows version to compile again. No biggy if array_map is not #if 0'd
...
out even if it doesn't work.
1999-10-16 10:14:47 +00:00
Andrei Zmievski
e74d81f2ed
*** empty log message ***
1999-10-15 22:04:59 +00:00
Andrei Zmievski
0a829ab104
(PHP array_map) Temporarily #if 0 this.
1999-10-15 21:24:15 +00:00
Andrei Zmievski
22fb5f281a
Renamed a couple of functions to have proper php_ prefix.
1999-10-15 20:04:31 +00:00
Andrei Zmievski
c671332b29
Massive change of zend_error() to php_error().
1999-10-15 19:37:44 +00:00
Andrei Zmievski
738c36932a
@- Fixed shuffle() so that it no longer breaks on Solaris. (Andrei)
1999-10-15 19:25:27 +00:00
Thies C. Arntzen
ac997bb6c2
(is_resource, is_bool) new functions
...
@- Added is_resource(), is_bool() functions. (Thies)
1999-10-15 18:15:02 +00:00
Thies C. Arntzen
b5c3c7bfc9
files are now resources, file.c is thread-safe, the le_ vars are no longer shared,
...
but they are accessible thru "php_file_le_socket(), php_file_le_uploads()..."
i also updated the ftp, pdf and file-upload stuff to match the new requirements.
@- Cleaned up File-Module (Thies)
1999-10-15 15:22:25 +00:00
Andrei Zmievski
d69d118cbd
(PHP implode): Properly separate zval for another case.
1999-10-15 14:53:56 +00:00
Zeev Suraski
231fe2e1aa
That should do the trick - fix implode() not to modify its arguments
1999-10-15 14:45:54 +00:00
Andi Gutmans
4a8cac0878
- Converted math.c to use new convert_to_number_ex() macro.
1999-10-15 06:31:40 +00:00
Thies C. Arntzen
e2d66a6d28
new api fo dl() - renamed php3_dl to php_dl (added compat header)
1999-10-13 19:55:25 +00:00
Thies C. Arntzen
f5fa29184c
(PHP: htmlspecialchars, htmlentities): new zend-api for html-function (not worth mentioning in NEWS)
1999-10-13 19:51:11 +00:00
Thies C. Arntzen
8bafcd3aa7
@- Upgraded math-funtions to use new Zend function API (Thies)
1999-10-13 19:43:36 +00:00
Thies C. Arntzen
e6ffafa264
(shell_exec) use pclose for FILE* that has been opened via popen!
...
@- Fixed zombie problem in shell_exec() and $a = `some_command`
@ constructs. (Thies)
1999-10-13 14:01:47 +00:00
Thies C. Arntzen
0cc1641447
starting to clean-up/new API'ize and resourcify the file-stuff - nothing happened yet - just renaming things around.
1999-10-12 18:50:05 +00:00
Andrei Zmievski
9e773dfde2
Modified sorting functions to use updated zend_hash() prototype.
1999-10-11 21:42:42 +00:00
Jouni Ahto
379889339f
(PHP gmmktime) Should now give right values. Note that there was never need for
...
the acrobacy adjusting the time for GMT. mktime() fills
tm_gmtoff with just the right offset to add.
@- Fixed gmmktime() so that the following should always be true:
gmmktime([args]) == mktime([args]) + date('Z', mktime([args])) (Jouni)
# Heh, conforming to the rules anyway...
1999-10-08 03:08:44 +00:00
Jouni Ahto
9109d8dcdd
(PHP setlocale) Locale settings are now correctly restored to the values
...
set in environment at request shutdown.
@- setlocale doesn't anymore screw up things if you forgot to change it back
to the original settings. (Jouni)
# Trying to conform to the rules set up by Andrei. Let's hope this works.
1999-10-08 02:10:57 +00:00
Andrei Zmievski
8959144837
Move random functions related defines into its own header file.
1999-10-06 16:34:36 +00:00
Thies C. Arntzen
657edcd50e
- replaced most getParamters against getParamtersEx calls
...
- removed ParamterPassedByReference where appropiate
1999-10-06 12:54:45 +00:00
Uwe Steinmann
8c473e1f47
- support for mimetype application/vnd.fdf needed by fdf module
...
(only active if fdf support is compiled in)
1999-10-06 05:26:25 +00:00
Sascha Schumann
d71eb7bbe6
Fix typo (xml_globals => dir_globals)
1999-10-05 16:18:40 +00:00
Thies C. Arntzen
35e7bcbb9d
dir modules is now resourcified & thread-safe!
1999-10-05 14:36:00 +00:00
Thies C. Arntzen
5a605ae6f4
fix some warnings
1999-10-05 12:09:08 +00:00
Andrei Zmievski
cb78ebc0de
Taken from PHP3 source.
1999-10-04 21:10:26 +00:00
Sascha Schumann
232afa4816
* 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
1999-10-04 15:18:26 +00:00
Thies C. Arntzen
008810dc29
ereg now returns a continious array 0..9 again - empty values are returned as false.
...
i think this is *more* compatible with PHP3 - unless anybody really dislikes it i'd prefer it like this.
1999-10-04 13:04:32 +00:00
Andrei Zmievski
23e8d1762d
Added array_reverse() function.
1999-10-01 17:36:54 +00:00
Andrei Zmievski
a92fb5fe3d
rename.
1999-10-01 14:54:55 +00:00
Andrei Zmievski
97f105e450
Fix nl2br crash.
1999-09-30 20:03:32 +00:00
Andrey Hristov
2fa5e6dd6a
Fix for my fix.
1999-09-29 14:25:40 +00:00
Andi Gutmans
cf6c92949c
- Get rid of warning
1999-09-28 17:37:06 +00:00
Sascha Schumann
9442b13939
Make an extra copy of input parameter.
1999-09-27 18:00:30 +00:00
Andrey Hristov
7665e9ef27
Fix for bug #2199 . Redirect was returning http:// which resulted in a crash.
1999-09-27 15:17:28 +00:00
Sascha Schumann
dd7b4680da
Add entry for AOLserver.
1999-09-25 15:41:51 +00:00
Sascha Schumann
00b2df7b8f
New Zend API
1999-09-25 12:09:50 +00:00
Sascha Schumann
9d1c26481a
Use new Zend API
1999-09-25 11:55:42 +00:00
Andrey Hristov
bfa7b6b145
- Updated array functions to use high-performance API
...
- Updated preg_split() to allow returning only non-empty pieces
1999-09-24 22:44:41 +00:00
Sascha Schumann
7a1fff1441
Use new Zend API.
1999-09-24 19:35:25 +00:00
Andrey Hristov
54fed6c652
Extended var_dump to handle IS_RESOURCE somewhat.
1999-09-24 18:57:02 +00:00
Thies C. Arntzen
c626d9e47b
updated XML (only partly tested)
1999-09-24 18:02:58 +00:00
Stig Bakken
a4bc9478f8
kill another warning
1999-09-24 15:34:54 +00:00
Stig Bakken
63b101f36d
kill warning
1999-09-24 15:34:30 +00:00
Sascha Schumann
de8120f5d0
This version is finally the standard one. The last one was created
...
using the 'nested ifs mode' which seems to be the source of the problem.
1999-09-23 14:53:39 +00:00
Sascha Schumann
ba8b703ba1
re2c's bit vectors appear to be not binary clean. Revert to
...
standard mode for the moment.
1999-09-23 14:09:42 +00:00
Andi Gutmans
7e5ef04b13
- Get rid of warning on win32, non-threadsafe mode.
1999-09-22 05:26:22 +00:00
Rasmus Lerdorf
1e57766b11
Slightly redundant to check for crypt() here again, but the TRY_RUN stuff
...
needs it defined in the same m4 file or it won't work, and it will just
get pulled out of the cache anyway, so it isn't a big deal.
1999-09-21 20:10:53 +00:00
Rasmus Lerdorf
cd0957112b
fgetss/gzgetss fixes
1999-09-21 17:50:51 +00:00
Andrey Hristov
53fb0ea075
A couple of fixes.
1999-09-21 17:06:30 +00:00
Sascha Schumann
8771472210
AC_CRYPT_CAP depends on symbol checks performed later.
1999-09-21 15:00:22 +00:00
Thies C. Arntzen
8638a61df9
added krsort() function
1999-09-21 14:36:41 +00:00
Sascha Schumann
3f684e77a7
Continue, if re2c is not available.
...
Using the ".new" suffix, we prevent the shell from zeroing the file.
1999-09-21 12:24:41 +00:00
Sascha Schumann
240d17f12f
Fix typo.
...
catched by: ssb
1999-09-21 08:41:31 +00:00
Sascha Schumann
cf00d75980
On at least Win32, gettimeofday() returns values in tv_usec which exceed
...
1,000,000.
For portability reasons we set the integer part of our result to 0.
This is equivalent to using tv_usec % 1000000.
1999-09-21 08:22:33 +00:00
Andi Gutmans
6735ebb271
- Move some more language specific functions over to Zend.
...
get_class() and friends.
1999-09-20 21:29:41 +00:00
Sascha Schumann
7e686b1b95
Timestamp commit. I do consider removing the rule from Makefile.am
1999-09-20 21:17:26 +00:00
Egon Schmid
565c322797
Here was also something missing.
1999-09-20 20:05:26 +00:00
Andi Gutmans
96a19593b2
- Internal functions which are basic language functions should be in Zend
...
and not in PHP. I.e. strlen(), each(), error_reporting(), count(),
get_class_name().
1999-09-20 16:56:02 +00:00
Rasmus Lerdorf
c0dcedcafc
Added optional allowable_tags arguments to strip_tags() and fgetss() to
...
allow you to specify a string of tags that are not to be stripped
Could have used flex for this, and Andrew sent me a flex file to do this,
but I could do the same thing with only minor additions to the existing
state machine and the resulting code is much smaller and tighter.
1999-09-20 15:50:56 +00:00
Andrey Hristov
f84ba1b039
- Upgraded var_dump() to take multiple arguments
...
- php3api_ is changed to php_
1999-09-20 14:14:26 +00:00
Stig Bakken
fffbcf5297
logic fix
1999-09-20 13:11:34 +00:00
Thies C. Arntzen
4bb329eafb
added array_count_values function.
1999-09-20 10:09:57 +00:00
Thies C. Arntzen
22d6f64f54
new API for var_dump
1999-09-20 09:34:39 +00:00
Sascha Schumann
39dbe1d41b
Aline escape signs in macro definitions.
1999-09-18 12:16:16 +00:00
Thies C. Arntzen
ab185b11b5
SUN c89 doesn't like } direct after a label;-(
1999-09-17 12:32:18 +00:00
Zeev Suraski
98d95dd88e
- Added support for unknown POST content types (Zeev)
...
- Introduce the convert_to_*_ex() API in strlen()
1999-09-16 23:18:15 +00:00
Zeev Suraski
13e67642fa
Generalize SAPI a bit
1999-09-16 22:15:43 +00:00
Thies C. Arntzen
6ecd417b34
php4 now deserialized php3 objects correctly!
...
php3 will ignore objects serialized by php4 (that's the price we have to pay!)
small fix in deserializing objects with static initializers (thanx boris)
1999-09-16 08:05:17 +00:00
Thies C. Arntzen
de73bd0123
when unserializing classes:
...
if the class is not known the standard class (no methods) will be used.
if the class is known - the created object will functional again!
1999-09-15 15:03:06 +00:00
Andrey Hristov
b287aa2cf4
Fixed printf format.
1999-09-15 13:37:11 +00:00
Thies C. Arntzen
e7ad3bbec2
use new API in var.c
1999-09-15 11:42:28 +00:00
Thies C. Arntzen
21a0c57cb1
i love id-strings
1999-09-15 11:09:32 +00:00
Thies C. Arntzen
3491633aa0
made serialize/unserialize work with classes! (also made the code "shorter")
...
CHANGES:
- the serialized string now also contains the class name (was not available in PHP3)!
- when unserializing php will create a fully working object of that class again
therby the class has to be defined when unserializing - else you get a warning!
1999-09-15 11:08:25 +00:00
Thies C. Arntzen
328d08bd63
HASH_OF is usable enough (i hate duplicating macros all over the place)
1999-09-15 09:51:20 +00:00
Andi Gutmans
100148168a
- Thread-unsafe win32 compiles again
...
- Some strlcpy changes including one bug fix.
1999-09-15 05:42:36 +00:00
Andi Gutmans
0a7fc83253
- gettimeofday wasn't registered.
1999-09-15 05:08:45 +00:00
Thies C. Arntzen
da599af7cb
is_array & friens speedups
1999-09-14 14:18:18 +00:00
Rasmus Lerdorf
0fd0323956
Fix a warning
1999-09-14 14:09:57 +00:00
Thies C. Arntzen
41da939988
count() now uses the new getParamertersEx API.
1999-09-14 13:34:27 +00:00
Thies C. Arntzen
95303a4bb2
added Metaphone support
1999-09-13 15:48:32 +00:00
Thies C. Arntzen
d5bafdaa20
ported oci8 to use new class API
...
var_dump no longer tries to traverse avr->value.ht for objects but uses var->value.obj.properties instead
1999-09-13 10:52:54 +00:00
Zeev Suraski
b88ef58a9f
Modified phpinfo() to show the contents of arrays in HTTP_*_VARS[]
1999-09-13 01:11:41 +00:00
Zeev Suraski
3f0696dada
Fix a buglet, and avoid crashing in phpinfo() (fixes an elusive legacy bug too)
1999-09-13 00:35:03 +00:00
Zeev Suraski
b2c0acb9ec
- Rewrote the GET/POST/Cookie data reader to support multi-dimensional
...
arrays! (Zeev)
This still needs a lot of more testing, but it seems to work more or less.
1999-09-12 23:51:12 +00:00
Zeev Suraski
9e3315799c
That's important enough to be cached
1999-09-12 20:36:48 +00:00
Sascha Schumann
96559e91fe
use static buffer for URLs instead of allocating/freeing memory
...
for each one
1999-09-12 13:03:10 +00:00
Zeev Suraski
a1784083e9
Time to do that - rename the output layer prefix
1999-09-12 03:25:02 +00:00
Sascha Schumann
9531846163
add rule for url_scanner.c
1999-09-12 00:00:44 +00:00
Sascha Schumann
b0f01a4778
- add standard disclaimer
...
- regenerate scanner with re2c -s
1999-09-11 23:53:40 +00:00
Sascha Schumann
f040ce584d
add transparent session id propagation
...
this uses a custom scanner which detects relative URIs and changes
them appropiately.
must be explicitly enabled with --enable-trans-sid
(normal case is not affected, since session_adapt_uris defaults to
void statement. Compiler should eliminate dead code in output.c then.)
1999-09-11 23:47:16 +00:00
Sascha Schumann
2f39b484f5
avoid mmap overhead for small files
1999-09-11 18:38:34 +00:00
Sascha Schumann
dda0b783df
optimize fpassthru/readfile to use mmap instead of fread
...
which especially increases speed on large files.
1999-09-11 18:15:39 +00:00
Zeev Suraski
7afbcb4fef
Rename allow_builtin_links to expose_php
1999-09-11 16:32:08 +00:00
Zeev Suraski
7f42813ad8
Except for this small bug fix - it works
1999-09-11 15:36:00 +00:00
Zeev Suraski
15fee4d3a6
- Seriously optimize and clean php_parse_gpc_data()
...
- Added gpc_globals directive to turn global definitions of GPC variables on/off
(untested)
1999-09-11 15:04:45 +00:00
Zeev Suraski
1b6ccfe86c
Cleanups & optimizations
1999-09-11 14:09:29 +00:00
Zeev Suraski
fb910c64cd
Cleanups
1999-09-11 13:44:23 +00:00
Andrey Hristov
42e39d474b
Remove extraneous debug dlerror() call which results in the subsequent
...
dlerror() returning NULL.
1999-09-08 19:36:18 +00:00
Andi Gutmans
48ab0fb57d
- Fix warnings and win32 compile
1999-09-07 20:29:31 +00:00
Andrey Hristov
6101d108e0
Here you go, Egon.
1999-09-07 19:41:28 +00:00
Stig Bakken
5c40e7c41e
Add thread-safety notice here. The solution is using gethostbyname_r,
...
but it seems that it takes different parameters on Solaris and
Linux. ;-P We should probably make a wrapper function, and make a
configure test that checks if there is a reentrant version available,
and if not protect gethostbyname and similar calls with a mutex until
the results have been copied. Ugly.
1999-09-07 18:46:25 +00:00
Andrey Hristov
7aacff63c9
Added second parameter to array_keys() which allows returning keys
...
only for a specific value in an array.
1999-09-07 18:29:59 +00:00
Andrey Hristov
cff218cf54
Kill compiler warning.
1999-09-07 18:26:36 +00:00
Andrey Hristov
209fe717b1
Kill warnings.
1999-09-07 16:09:18 +00:00
Uwe Steinmann
51b01ca9b7
- uniqid() used the additional parameter even if it was not provided
...
this caused an segm fault. fixed it.
1999-09-07 10:34:17 +00:00
Zeev Suraski
959ad0e9ea
A couple of BoundsChecker fixes
1999-09-06 22:40:27 +00:00
Egon Schmid
f0f7b9de53
File should here be string.
1999-09-06 20:13:23 +00:00
Jakub Skopal
a38995a832
Workaround for crypt() getting too few characters for salt.
1999-09-06 13:24:36 +00:00
Jakub Skopal
5cc16d86b0
Added addcslashes(), stripcslashes().
...
Reverted addslashes() to the very original behaviour.
1999-09-05 20:55:13 +00:00
Andi Gutmans
14d9a59f1c
- Make dir functions compile in Win32
...
- Fix too early memory manager initialization (For you Thies)
1999-09-05 19:04:40 +00:00
Jakub Skopal
8c2f752c3d
C++ comment fix... sorry.
1999-09-05 00:58:59 +00:00
Jakub Skopal
06545c3364
Appended second argument of addslashes(),
...
Changed php_addslashes() to add \000 instead of just \0
1999-09-05 00:55:48 +00:00
Rasmus Lerdorf
f42659a8f1
Kill a warning
1999-09-04 22:15:51 +00:00
Rasmus Lerdorf
d3439023d3
Catch a timeout and add user-level interface for connection handling
1999-09-04 21:10:39 +00:00
Zeev Suraski
c12d4bc7d4
*** empty log message ***
1999-09-04 13:18:59 +00:00
Thies C. Arntzen
9e959a0b8a
newest GetImageSize renamed header-file
1999-09-02 11:58:23 +00:00
Stig Bakken
4092f4b8c0
ext/lcg -> ext/standard in various places
1999-08-31 18:05:22 +00:00
Stig Bakken
b5375a323d
oops
1999-08-31 15:57:30 +00:00
Stig Bakken
b55d490ef0
fix for bug #2191
1999-08-31 15:27:31 +00:00
Stig Bakken
0e5f26c6bb
compat fix, bug #2201
1999-08-31 15:20:21 +00:00
Stig Bakken
5600f889b2
moved lcg stuff to ext/standard
1999-08-29 20:12:12 +00:00
Egon Schmid
2c0b8b5ac8
Oops, file should be string here.
1999-08-29 09:59:12 +00:00
Philippe Verdy
ce6db81dce
semicolon syntax error
1999-08-28 17:01:32 +00:00
Philippe Verdy
1dcee0c840
Bug in gmmktime():
...
it produced wrong results in New Foundland,
Central Australia, India, Iran, and Java, with
half-hour timezones.
1999-08-28 16:19:14 +00:00
Sascha Schumann
52cd153723
merge in fix from php3
1999-08-28 13:53:46 +00:00
Zeev Suraski
aa8b27ba1d
Better debug macros
1999-08-27 19:17:19 +00:00
Andi Gutmans
7a9ad9d0c8
Make fopen() work with URL's in Win32
1999-08-25 16:24:14 +00:00
Sascha Schumann
c9bb8db0ad
get rid of that usleep() and add some entropy using the combined lcg
1999-08-21 17:22:08 +00:00
Andi Gutmans
aeec4e198a
- Fixed memory leaks. tsrm resource id deallocation still needs to be implemented.
1999-08-19 16:52:53 +00:00
Andrey Hristov
c10c675f5b
Fixed bug #2105
1999-08-18 17:23:01 +00:00
Zeev Suraski
65e6d82771
Fix #2096
1999-08-17 22:00:02 +00:00
Sascha Schumann
71e3f6fde3
merge in change:
...
Date: Monday June 28, 1999 @ 4:40
Author: bjh
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv5697
Modified Files:
crypt.c
Log Message:
Stop core dump using crypt() with standard DES. When PHP3_MAX_SALT_LEN = 2
adding the null terminator to the salt exceeds allocated space causing
stack corruption.
1999-08-17 18:21:04 +00:00
Thies C. Arntzen
e30a2740cf
imported diskfreespace from 3.0
1999-08-17 12:32:23 +00:00
Andrey Hristov
a0bf6b0923
Removed internal pointer reset from array_walk.
1999-08-16 14:19:49 +00:00
Thies C. Arntzen
94ce166244
added a few PLS_FETCH()
1999-08-15 18:52:10 +00:00
Andrey Hristov
c85209985a
Forgot to have internal pointer reset.
1999-08-14 16:43:38 +00:00
Zeev Suraski
2560bfd5f9
Rename TestClass to OverloadedTestClass
1999-08-14 11:08:26 +00:00
Zeev Suraski
58e24ac18a
- Add PHP Modules workspace
...
- Get the MySQL module to compile&work under thread-safe Win32
- Fix various thread safety issues with dynamic modules
1999-08-13 21:03:27 +00:00
Andrey Hristov
5ae3f32b24
Fixed bug #2023 .
1999-08-13 20:28:27 +00:00
Philippe Verdy
646db4f072
signed/unsigned warning removed
1999-08-12 10:53:29 +00:00
Egon Schmid
8588b58a5e
More typos.
1999-08-09 20:52:58 +00:00
Zeev Suraski
1e6c159422
Built-in phpinfo() links are now turned off by default. They can be
...
turned on using the allow_builtin_links INI directive
1999-08-07 18:21:35 +00:00
Zeev Suraski
9b09f412bf
- Changed phpinfo() to list modules that have no info function
1999-08-07 17:52:11 +00:00
Andrey Hristov
fd87bb3321
Modified array_walk() function so that the userland callback is passed
...
a key and possible user data in addition to the value. It's still backward
compatible with one argument version.
1999-08-07 16:43:25 +00:00
Stefan Roehrich
4f3f4699ea
Corrected spelling.
1999-08-07 15:50:26 +00:00
Zeev Suraski
125300b563
Fix&improve conversion scripts
1999-08-07 15:31:57 +00:00
Zeev Suraski
edabed5604
count/sizeof had their arguments setup wrong (messup between Beta 1 and 2)
1999-08-06 15:34:51 +00:00
Zeev Suraski
37d7d08482
- Improved register_shutdown_function() - you may now supply arguments that
...
will be passed to the shutdown function
- Improved call_user_func() and call_user_method() - they now support passing
arguments by reference
- Fixed usort() and uksort()
1999-08-06 15:25:11 +00:00
Thies C. Arntzen
4b8a100ec9
fix for #1947
1999-08-06 08:56:15 +00:00
Rasmus Lerdorf
f2fe56ff69
[s]printf fix for bug #1952
...
(note, [s]printf doesn't work in PHP4 yet)
1999-08-03 20:08:33 +00:00
Zeev Suraski
dcf9114329
AIX needs this include...
1999-08-02 19:59:04 +00:00
Zeev Suraski
3cb1eb0471
Removed '3' from key functions in PHP (maintained compatibility through
...
php3_compat.h)
1999-08-02 19:17:14 +00:00
Andrey Hristov
98037c425d
Updated proto
1999-08-02 14:31:41 +00:00
Andi Gutmans
91ec4763fd
Support resource type in gettype()
1999-08-01 17:56:09 +00:00
Zeev Suraski
eb3d12c6dd
Fix bug #1914
1999-07-31 16:20:06 +00:00
Zeev Suraski
3ee8c8f0da
This should fix the implode() problem
1999-07-30 22:17:51 +00:00
Andi Gutmans
e3246872e3
-Tiny fix
1999-07-29 04:03:03 +00:00
Andi Gutmans
7d0715d53d
- Added function documentation prototypes. Thanks to Egon Schmid for
...
straightening me out :)
1999-07-29 03:48:29 +00:00
Andi Gutmans
a7af382874
- Added get_class($obj), get_parent_class($obj) and method_exists($obj,"name")
1999-07-28 17:58:38 +00:00
Andrey Hristov
5aa3eff94f
Fix link functions problem.
1999-07-28 13:59:35 +00:00
Danny Heijl
d69ec49dc6
Make it compile again
1999-07-28 11:26:58 +00:00
Philippe Verdy
e1b5df4b55
Commited changes in php3 function/soundex 1.32
1999-07-28 07:04:26 +00:00
Andi Gutmans
71ffa09f41
- strttotime is compiled in on win32 again.
1999-07-27 17:30:45 +00:00
Andrey Hristov
15d87d2452
check for nKeyLength not arKey
1999-07-27 16:26:30 +00:00
Andrey Hristov
cd0dd562f0
Fix for bug #1887 .
1999-07-27 16:17:58 +00:00
Andrey Hristov
ad671669ce
Fix for bug #1891
1999-07-27 13:40:54 +00:00
Andrey Hristov
1b2c932cc2
More symbol work.
...
I've defined a few macros to help with module/request init/startup function definitions.
Basically:
PHP_MINIT_FUNCTION(module)
PHP_MSHUTDOWN_FUNCTION(module)
PHP_RINIT_FUNCTION(module)
PHP_RSHUTDOWN_FUNCTION(module)
PHP_MINFO_FUNCTION(module)
These will expand to proper function prototypes.
Now to specify these in the module entry, use:
PHP_MINIT(module)
PHP_MSHUTDOWN(module)
PHP_RINIT(module)
PHP_RSHUTDOWN(module)
PHP_MINFO(module)
I've updated all modules in ext/standard and everything from ext/apache to ext/db.
If you can, please update your module to use these macros.
1999-07-26 20:09:08 +00:00
Andi Gutmans
8f51f72dc6
- Fix the new operator incompatibility.
...
- I commented PHP_FUNCTION(strtotime) in datetime.c because it stopped
win32 from compiling. This needs to be fixed!!!
- Check out libzend to compile the tree now.
1999-07-26 16:57:06 +00:00
Andrey Hristov
736f4831a5
A bunch of grunt work updating function entries and declarations.
1999-07-24 22:16:54 +00:00
Zeev Suraski
68e32f6ac3
* Make Win32 build work again
...
* Make error_reporting value prior to the standard initialization be
set so that errors show up
1999-07-24 16:52:00 +00:00
Zeev Suraski
2b2bda778e
* Fix a warning
...
* Update ChangeLog
1999-07-24 14:36:48 +00:00
Rasmus Lerdorf
d9f6ea2fc3
Fix broken build
1999-07-24 02:43:22 +00:00
Rasmus Lerdorf
8de073782c
Bring rand.c up to date
1999-07-24 02:30:37 +00:00
Andrey Hristov
974f278257
Added function entry for similar_text().
1999-07-23 22:47:24 +00:00
Andrey Hristov
244cc30c14
Added function entry for strip_tags.
1999-07-23 22:35:14 +00:00
Andrey Hristov
9dd45ec800
Ported strtotime() function.
1999-07-23 19:51:27 +00:00
Andrey Hristov
64dae03eea
-Ported all remaining date() options
...
-Made array_walk() work somewhat, but it's not
possible to change array values from inside the
walk function yet
1999-07-22 15:15:41 +00:00
Sascha Schumann
9a910ed353
sync with 1.133
1999-07-21 16:12:13 +00:00
Stig Bakken
2ab934bfc2
fix to reiterate that one should _always_ use braces around if/else/for/while
1999-07-21 14:27:05 +00:00
Sascha Schumann
58bb4adae1
use the same version as in php3
1999-07-21 09:31:48 +00:00
Sascha Schumann
63f7648fdc
use reverse lookup array, submitted by bfranklin@dct.com, #1755
1999-07-21 09:02:05 +00:00
Mike Gerdts
72f675be50
exec() can now properly handle lines longer than (EXEC_INPUT_BUF-2) bytes.
...
Lines being returned via the array that that contain only "\n" now are
trimmed down to "" to be consistent with exec's whitespace trimming
behavior for all other lines.
1999-07-20 20:19:58 +00:00
Andrey Hristov
3ff606a934
Added 'n' option to date().
1999-07-20 19:11:32 +00:00
Andrey Hristov
2d1b6f0801
Added headers_sent() function
1999-07-20 18:03:27 +00:00
Andrey Hristov
f8fdee1c66
Fix for bug #1750 .
1999-07-20 16:59:30 +00:00
Andrey Hristov
40de81a5d9
Updated status
1999-07-19 20:27:49 +00:00
Zeev Suraski
c1853b5628
*** empty log message ***
1999-07-19 18:37:42 +00:00
Andrey Hristov
d1b1e3513f
Kill compiler warnings.
1999-07-19 15:07:17 +00:00
Sascha Schumann
afb16a5818
update
1999-07-19 14:07:10 +00:00
Andrey Hristov
18579a5f64
More credits.
1999-07-19 13:35:13 +00:00
Andrey Hristov
715dc6b23a
Update credits a bit.
...
"Overall Work" line should probably be extended.
1999-07-17 20:38:14 +00:00
Andrey Hristov
4518351648
Proto change
1999-07-17 19:23:32 +00:00
Zeev Suraski
5a3e983fa4
*** empty log message ***
1999-07-17 19:22:27 +00:00
Zeev Suraski
614b4b781e
I was sure I committed these already. Weird
1999-07-17 19:17:42 +00:00
Zeev Suraski
cbcf7c66bc
*** empty log message ***
1999-07-17 17:33:42 +00:00
Andrey Hristov
459ed2b1ad
A little change in how array_splice/array_slice handle length parameter.
...
Makes it compatible with Perl.
1999-07-16 20:47:20 +00:00
Andrey Hristov
7201cdac96
Updated the functionality of array_splice.
1999-07-16 20:08:06 +00:00
Zeev Suraski
4e6c2b468c
* Get the mSQL module up to date
1999-07-16 17:06:48 +00:00
Zeev Suraski
c5724cbd14
License update
1999-07-16 13:13:16 +00:00
Zeev Suraski
b7fe07d8dc
php3.ini -> php.ini
1999-07-14 23:34:30 +00:00
Zeev Suraski
e883283590
* Update logos
...
* Move from PreAlpha 1 to Beta 1.
1999-07-14 23:33:00 +00:00
Andi Gutmans
3e6bce59b3
- Add a bitwise flag to phpinfo()
...
- Import a draft of the new PHP license
1999-07-14 16:02:10 +00:00
Zeev Suraski
c43c235427
Don't touch refcount and EA directly
1999-07-09 20:45:55 +00:00
Zeev Suraski
5f62c347c7
Step 2:
...
Rename is_ref to EA
1999-07-09 17:44:41 +00:00
Zeev Suraski
3a9cb0220c
Step 1 in nuking the garbage collector:
...
- Change the hash destructor to return int
1999-07-09 17:36:12 +00:00
Thies C. Arntzen
ad0076ee53
ported IPTC fro php3
1999-07-05 07:42:07 +00:00
Sascha Schumann
c42305c54e
fix from php3
1999-07-02 14:37:36 +00:00
Thies C. Arntzen
fe4efa91c3
changed boolean behaviour:
...
var_dump(
1999-07-01 09:26:05 +00:00
Sascha Schumann
2e690ac4b5
some additional consts
1999-07-01 05:47:06 +00:00
Andrey Hristov
26a7fe78f2
oops
1999-06-28 13:46:58 +00:00
Andrey Hristov
db400222ff
*** empty log message ***
1999-06-28 13:39:52 +00:00
Sascha Schumann
e205a6749d
more porting
1999-06-27 21:45:06 +00:00
Zeev Suraski
d1169e735e
Win32/general patches
1999-06-26 23:21:18 +00:00
Zeev Suraski
d4f24f19ad
* Get rid of another request_info element (filename)
...
* CGI through Apache should work now
1999-06-26 19:14:26 +00:00
Zeev Suraski
320541430b
*** empty log message ***
1999-06-26 18:01:21 +00:00
Thies C. Arntzen
18962f1993
gettype now reports "boolean" correct
1999-06-22 21:37:43 +00:00
Andrey Hristov
df86725019
Making function accessible.
1999-06-22 19:37:26 +00:00
Andrey Hristov
226f75e0f3
Making the function accessible.
1999-06-22 19:36:52 +00:00
Thies C. Arntzen
5fa6882567
urlencode and decode return an empty-string if the input-string is empty (matches php3 behaviour "more" closly)
...
Please read my previous mail and comment!
1999-06-22 13:35:28 +00:00
Andrey Hristov
2b8c85bd0b
Backing out changes.
1999-06-21 23:07:46 +00:00
Thies C. Arntzen
8052667684
fixed implode "again" -
1999-06-21 15:57:20 +00:00
Zeev Suraski
63a845f2f6
*** empty log message ***
1999-06-19 13:13:28 +00:00
Zeev Suraski
f88464ee6d
Win32/ZTS compiles again
1999-06-19 13:04:55 +00:00
Andrey Hristov
cd74a455dd
for struct sockaddr
1999-06-18 15:54:14 +00:00
Stig Bakken
467523bac5
Apply Sascha's fsock fixes to php4.
1999-06-18 13:42:21 +00:00
Stig Bakken
117a2fba07
* fixed some #if/#ifdef issues
...
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-16 17:06:53 +00:00
Stig Bakken
8eec7a022f
reversing another patch that slipped
1999-06-15 21:56:11 +00:00
Stig Bakken
8c4411b5da
* reverse fsock/string import patches
1999-06-15 21:51:00 +00:00
Stig Bakken
336392ea6c
* now using php4.ini instead of php3.ini
...
* re-imported fopen-wrappers, fsock and string code from php3
NB! I have not tested all of the imported functions yet.
1999-06-15 17:06:22 +00:00
Rasmus Lerdorf
bdbdaa4369
gmmktime() fix
1999-06-15 12:31:29 +00:00
Zeev Suraski
96bfbc7904
First attempt at moving the old RFC1867 support to the right place
1999-06-12 17:50:39 +00:00
Sascha Schumann
be14ccadf1
it's obj.properties, not ht
1999-06-11 19:29:10 +00:00
Andrey Hristov
8c43c5f708
Fix up var.c a bit.
1999-06-11 15:54:06 +00:00
Rasmus Lerdorf
f8bac0f8ad
Same Fix here
1999-06-11 12:48:22 +00:00
Zeev Suraski
1798a0183a
* Fix a buglet in the session module
...
* Make some renames in the session module - avoid having a function called 'delete'
so that we don't piss any C++ compilers. Also rename the {startup,shutdown}_globals
to {startup,shutdown}_session_globals, so that they're a bit less general names,
and made them static.
* Remove uselss variables
1999-06-11 09:23:00 +00:00
Sascha Schumann
83de88e90c
make serialize work
...
unserialize does not work yet
1999-06-10 15:34:20 +00:00
Andrey Hristov
2bb01b6f81
Fixing serialize a bit.
1999-06-10 15:13:26 +00:00
Andrey Hristov
3b1843bc9f
Added preg_grep() function.
1999-06-10 14:41:38 +00:00
Andrey Hristov
f7072fbf87
Make array_shift/array_pop work better.
1999-06-09 22:03:15 +00:00
Andrey Hristov
3d45dd58b8
Fixed a bug in preg_split.
...
Fixed a bug in array_shift/array_pop.
1999-06-09 21:13:05 +00:00
Thies C. Arntzen
a3464b7c11
oci8 to 3.0.9
...
implode works!
1999-06-09 19:47:06 +00:00
Andrey Hristov
835b0d8823
*** empty log message ***
1999-06-09 15:39:56 +00:00
Andrey Hristov
2a64925a67
Fixed a bug in preg_replace.
1999-06-09 15:02:57 +00:00
Andrey Hristov
bc1e4a5a10
Don't set is_ref in _phpi_splice()
...
More checking in array_merge()
Added keys() and values() array functions.
1999-06-07 18:52:20 +00:00
Zeev Suraski
b886985d63
Fix an ereg_replace() crash bug
1999-06-07 15:01:25 +00:00
Andi Gutmans
d5dc2cd22c
- Remove the is_ref =1 from the push() function.
1999-06-06 15:00:49 +00:00
Andrey Hristov
f8f8defb42
Added array_merge() function.
1999-06-05 21:19:25 +00:00
Andrey Hristov
421414df03
Added push(), pop(), shift(), unshift(), splice(), and slice() array functions.
...
The first 5 work like their Perl counterparts. slice() returns a chunk of the array
specified by offset and length arguments.
Backport to PHP3 and docs will be coming soon.
1999-06-05 20:43:36 +00:00
Zeev Suraski
e586468a4e
Not sure that's the right fix, but at least it fixes the symptom
1999-06-05 13:56:18 +00:00
Andrey Hristov
0f99eeb29f
function dir doesn't exist anymore
1999-06-01 21:01:02 +00:00
Andi Gutmans
250d803c31
- Fix for exec to use API
1999-06-01 16:41:56 +00:00
Andi Gutmans
f153896de5
*** empty log message ***
1999-05-31 17:41:41 +00:00
Sascha Schumann
577340bb9f
zend_hash_merge was changed
1999-05-30 11:57:28 +00:00
Zeev Suraski
274f3aa727
Fix
1999-05-29 18:28:46 +00:00
Sascha Schumann
dfce358a5b
that seems to fix it
1999-05-28 21:41:17 +00:00
Sascha Schumann
7401ef12fb
Either I'm playing the EG(symbol_table) game wrong or var.c leaks memory
...
when unserializing arrays/objects. Still testing
1999-05-28 21:27:19 +00:00
Zeev Suraski
7a167cd0c1
* Use new Zend macros for standardized definition of classes.
...
* Reverse bogus shutdown order.
* Use the new object/class support of Zend to make the dir functions work again.
1999-05-28 11:09:39 +00:00
Andrey Hristov
ff29e85724
Fixing a couple of long standing bugs.
1999-05-26 18:45:53 +00:00
Andrey Hristov
6155d91e7a
Just a little sanity check.
1999-05-25 21:47:58 +00:00
Zeev Suraski
0eb500cef5
Thou shalt use the API, and thou shalt be safe
1999-05-23 20:32:19 +00:00
Sascha Schumann
4fe8fe715e
merge in some PHP3 stuff
1999-05-21 08:37:48 +00:00
Sascha Schumann
286fef1ce4
remove debug messages
1999-05-21 07:04:48 +00:00
Sascha Schumann
27fc61c4dc
Apply the fix for feof()
1999-05-20 13:56:19 +00:00
Andi Gutmans
7eef22472c
- Small fixes
1999-05-20 12:06:45 +00:00
Sascha Schumann
4e08c66771
kill another 64-bit issue.
...
this affected at least md5 which produced wrong values on 64-bit platforms
1999-05-16 11:55:34 +00:00
Sascha Schumann
a37a5e5c4a
char * => unsigned char *
1999-05-16 11:32:51 +00:00
Sascha Schumann
39691bed9e
conv_proto *.[ch]
1999-05-16 11:19:26 +00:00
Sascha Schumann
ed8a7dff62
add fast bin2hex string function
1999-05-16 11:12:23 +00:00
Sascha Schumann
d886b84ef4
kill some compiler warnings
1999-05-16 11:10:41 +00:00
Zeev Suraski
1fb61df8a5
* Include all of the standard modules in internal_functions.c.in. Stig - is that
...
the way you intended it to be? How does the basic_functions module get in there?
* Fix to get MySQL objects working, even though I'll probably make a dedicated
MySQL object in the future.
1999-05-14 18:25:16 +00:00
Zeev Suraski
5eaed486e1
* HTTP-auth bugfix
...
* Patch the regex thread safe code to compile in thread safe mode
1999-05-13 15:54:49 +00:00
Zeev Suraski
52ac2e67c1
Enable Apache HTTP Auth
1999-05-12 22:49:23 +00:00
Andrey Hristov
89a56a139b
It's been there long enough.
1999-05-12 17:29:51 +00:00
Sascha Schumann
a4d20864a6
- regex cache (needs some work)
...
- str_replace changes from php3
1999-05-12 15:40:15 +00:00
Rasmus Lerdorf
fbeeb8f29c
substr() fix
1999-05-12 12:53:45 +00:00
Rasmus Lerdorf
43d93b6533
substr() fix for PHP4 as well
1999-05-12 12:43:03 +00:00
Zeev Suraski
ceeb9b38ba
* Finally commit that -q patch
...
* Refine SAPI built in header support
* Use DllMain() in ISAPI to clean after threads and initialize tsrm/sapi as soon as possible.
1999-05-11 20:38:16 +00:00
Andrey Hristov
702829709c
Added compact() function.
1999-05-11 19:31:37 +00:00
Zeev Suraski
ba88c0c47c
* Move unclean_shutdown from PHP to Zend.
...
* The Master/Local headers in the phpinfo() table were reversed.
* Fix a gpc bug
1999-05-11 16:52:58 +00:00
Zeev Suraski
dc5ed5a3fb
beatify Apache's info func
1999-05-11 00:43:46 +00:00
Zeev Suraski
0b77132507
* Get Apache to work. POST doesn't work yet.
...
* There are now -I directives for the absolute path of php4, php4/libzend and the builddir for
the Apache module, so we can #include any php/Zend header.
* Rename config.h to php_config.h
1999-05-11 00:01:47 +00:00
Andrey Hristov
957616cd2d
Minor updates.
1999-05-10 21:14:43 +00:00
Andrey Hristov
d7ed9c1455
Added in_array() function.
1999-05-10 21:10:48 +00:00
Andi Gutmans
4079f914bd
* Make read_post() read input by chunks instead of returning a single string.
...
This will allow us to efficiently support file upload through SAPI in the future.
* Fixes
1999-05-09 18:40:59 +00:00
Zeev Suraski
60fcac8f2a
A few other minor fixes
1999-05-09 13:57:09 +00:00
Zeev Suraski
5ba4b3311d
Several minor fixes
1999-05-09 13:55:15 +00:00
Zeev Suraski
bc415d5a88
* 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.
1999-05-09 08:48:05 +00:00
Andrey Hristov
a0b94fccbb
-Added extract() function
...
-Added function_exists() function
1999-05-08 21:18:06 +00:00
Zeev Suraski
465c94ce18
* Optimize _php3_parse_gpc_data() and clean it up, plus fix a couple of Zend related memory leaks in it
1999-05-06 18:09:50 +00:00
Zeev Suraski
6f1c611868
Fixes
1999-05-05 21:29:26 +00:00
Zeev Suraski
aee864e9d8
Get CGI to work with the new headers code.
...
Now Apache is the only interface that doesn't use it.
1999-05-05 21:05:44 +00:00
Andi Gutmans
537cc54acd
Added initial headers support in SAPI
...
*untested*
It definitely broke the thread-safe CGI, it may have broken other stuff as well.
1999-05-05 18:25:20 +00:00
Stig Bakken
9a66ffbaee
* added --enable-thread-safety switch
...
* now generating internal_functions.c
1999-05-03 11:11:23 +00:00
Zeev Suraski
a5ab6b9638
Move path_info to the SAPI structure
1999-05-02 19:54:02 +00:00
Andi Gutmans
5dbe924660
- Make ISAPI hook in as an extension too.
...
- Some work on moving stuff to SAPI.
1999-05-02 18:07:41 +00:00
Zeev Suraski
66476011dd
A step towards generalizing the INI mechanism even more
1999-04-28 20:26:33 +00:00
Zeev Suraski
1aaf98e54b
get rid of some stupid warnings
1999-04-28 20:18:25 +00:00
Rasmus Lerdorf
92905543f1
Add fgetcsv() here as well
1999-04-27 13:06:58 +00:00
Zeev Suraski
9b56453566
* Small startup fix
...
* Fix min() and max()
1999-04-26 20:20:12 +00:00
Zeev Suraski
3cd0af11ee
* 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)
1999-04-26 17:26:37 +00:00
Zeev Suraski
7942eaf381
* 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.
1999-04-26 14:00:49 +00:00
Thies C. Arntzen
9cace18e10
serialize & unserialize working (with mem-leak)
1999-04-25 12:41:18 +00:00
Rasmus Lerdorf
0704064cdf
Argh! That typo took me over an hour to find. Grr..
1999-04-25 04:03:36 +00:00
Rasmus Lerdorf
ecc1dce8f5
libbind check
1999-04-24 21:52:53 +00:00
Sascha Schumann
3b195581db
bugfix port
1999-04-24 20:48:12 +00:00
Sascha Schumann
8036c5fbf1
include some header files explicitly
1999-04-24 20:26:31 +00:00
Thies C. Arntzen
992e6a429d
made var_dump zend-aware....
...
<?
$ar = array("hallo" => "tubu");
var_dump($ar);
?>
works again!!!
zeev, andi -> please review what i've done!!!
(no i can start "debugging" other stuff, as i often use var_dump)
1999-04-24 18:39:41 +00:00
Zeev Suraski
0818d96c97
A lot of cleanups... Removed old thread-safe code and other redundant code and files
1999-04-24 00:12:00 +00:00
Zeev Suraski
05d24c6022
Remove redundant code
1999-04-23 22:45:01 +00:00
Zeev Suraski
09946676d2
Thread-safe header_is_being_sent
1999-04-23 20:20:30 +00:00
Zeev Suraski
6f7c0edee3
Remove tls.[ch]
1999-04-23 20:06:01 +00:00
Rasmus Lerdorf
7440bc50da
Ok, finally.. These now work nicely on a RH-5.2 box:
...
--with-mysql --with-ldap --with-imap --with-zlib --with-snmp
1999-04-23 04:54:31 +00:00
Stig Bakken
2c0ad3ee25
last bunch of extensions moving to ext/
...
fhttpd module taken out of functions, functions is ready to go.
The only extensions I have tested are gd+freetype and odbc(solid).
Please try compiling in your favourite extensions and let me know how it
works.
1999-04-22 02:48:28 +00:00
Stig Bakken
2a78f92804
moved imap and ldap
1999-04-22 00:45:14 +00:00
Stig Bakken
ff37732997
moved fdf, hyperwave, informix and some smaller files
1999-04-22 00:25:57 +00:00
Zeev Suraski
751709a469
* Rename php_compat.[ch] to flock_compat.[ch] and move it to ext/standard
...
* Fix Win32 compilation
1999-04-21 19:01:38 +00:00
Sascha Schumann
08c6298af9
cleanup, flock() support
1999-04-21 18:10:18 +00:00
Sascha Schumann
f06cb4deb6
crypt constants
1999-04-21 17:57:40 +00:00
Zeev Suraski
7aad231327
Thread safety patch. It works now with just-in-time resource initialization!
1999-04-21 17:28:54 +00:00
Sascha Schumann
dcc16af80c
port some fixes, add compat routines
1999-04-21 17:11:01 +00:00
Sascha Schumann
a6e4ef3e31
str_replace fix
1999-04-21 16:31:27 +00:00
Zeev Suraski
c5af324ec3
More thread safety work
1999-04-21 04:02:11 +00:00
Zeev Suraski
5e8c322859
Make Win32 happy with the recent changes.
1999-04-18 15:58:27 +00:00
Andi Gutmans
593e603e4b
- Make gettype() behave like it used to where it returned "object" for
...
objects.
1999-04-17 07:02:58 +00:00
Stig Bakken
4f7b0a0ccd
make sure the images on the phpinfo() page point to PHP-enabled pages
1999-04-17 01:52:58 +00:00
Stig Bakken
257de2bade
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.
1999-04-17 00:37:12 +00:00