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