Commit Graph

2250 Commits

Author SHA1 Message Date
foobar
922b7596a2 That was not correct.. 2002-08-01 16:44:47 +00:00
foobar
6df2b90c05 Reset index when doing array_pop() 2002-08-01 16:39:52 +00:00
foobar
362fc4ee76 Add test for the index resetting. 2002-08-01 16:39:14 +00:00
Rasmus Lerdorf
b15651c95f Ugh 2002-08-01 15:51:56 +00:00
foobar
ababdff402 Added tests for array_shift/array_pop. 2002-08-01 12:33:02 +00:00
foobar
06b3dd122f Nuke compile warning. 2002-08-01 12:07:15 +00:00
foobar
9d62cd7d45 - Removed the DOS line endings
- Changed the '//' comment (this is C, not C++) to /* */
# Brad, use some editor which works..
2002-08-01 12:06:46 +00:00
Brad LaFountain
4f5bd6b7d4 made array_shift re-index like it did before previous fix 2002-08-01 04:38:11 +00:00
foobar
9fe39b9604 Reverted the patch..it breaks the original behaviour of at least array_shift. 2002-07-31 13:49:50 +00:00
Brad LaFountain
70fb744365 fixed bugs 16063 and 16068
increased preformance of array_pop and array_shift
2002-07-30 22:54:12 +00:00
Dan Kalowsky
18c0d30c58 Commiting Steph@php.net's patch to re-enable touch on Win32 machines 2002-07-30 20:24:13 +00:00
Rasmus Lerdorf
059f302596 Fix strtotime() "next" keyword handling. 2002-07-30 18:42:19 +00:00
Rasmus Lerdorf
d56bc7934d Fix for #18638 (str_rot13 bug) 2002-07-30 10:51:33 +00:00
Edin Kadribasic
a55c1228ed Fixed bug #14657 (patch by Steph Fox) 2002-07-29 13:13:50 +00:00
Derick Rethans
1630e1788f - Copy and paste error -> unify error messages 2002-07-28 19:29:28 +00:00
Stefan Esser
bffe4cf222 Added sha1, sha1_file functions. 2002-07-28 19:18:08 +00:00
Georg Richter
797f7736eb Bugfix: #18532
Fixed week number calculation in accordance with ISO 8601
2002-07-26 16:50:34 +00:00
Stefan Esser
02e6cd022a all functions based on php_stat are now safe mode aware... 2002-07-26 08:04:42 +00:00
Derick Rethans
b7cc9f7447 - Added parameter to print_r which returns the variable representation
instead of echoing it.
@- Added parameter to print_r which returns the variable representation
@  instead of echoing it. (Derick)
2002-07-25 11:22:20 +00:00
Yasuo Ohgaki
7b3fb771e4 is_object() returns FALSE if object is a "incomplete object".
Raise E_NOTICE, instead of E_ERROR, for setting/getting properties
to/from a "incomplete object".
2002-07-24 09:55:11 +00:00
jim winstead
e83a35d215 restore shane to list of members of php group (got lost somewhere along the way) 2002-07-23 23:46:54 +00:00
Jason Greene
a64eceef59 Switch streams socket abstraction to use a timeval structure instead of an
integer to allow subsecond timeouts.

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

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

register_tick_function(a);

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

Revert the change to the sapi_add_header_ex interface.

Fix various bugs:

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

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

2.  The CGI SAPI did not send out the HTTP status line at all, if
    http_status_line had not been set explicitly by calling
    header("HTTP/1.0 200 foo");
2002-07-03 10:42:31 +00:00
Derick Rethans
c73733c59a - Fix windows build
#- I could not test this, please try!
2002-07-03 06:45:01 +00:00
foobar
980d7a11a9 Fix the nasty crash. And Sterling..test next time before you commit? 2002-07-03 03:18:55 +00:00
Frank M. Kromann
8a7c339974 Add default arguments to new internal mail function. 2002-07-02 23:46:15 +00:00
Sterling Hughes
d4512030bb use access instead of manually determining file permissions.. 2002-07-02 21:02:34 +00:00
Derick Rethans
f7cab95a7d - Be nice to users and allow them to check if the mail was send 2002-07-02 14:22:22 +00:00
Derick Rethans
0d61ab3814 - Disable 5th parameter to mail in safemode
@- Disabled the fifth parameter to the mail function in safemode. (Derick)
2002-07-02 13:56:47 +00:00