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
0b7fd17c2b
Added sscanf() function.
2000-06-06 18:58: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
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
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
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
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
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
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
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
Hartmut Holzgraefe
df4547a3df
another bunch of proto fixes
2000-05-23 23:13:02 +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
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
Jouni Ahto
e80b2b13fa
Fix #4230 . Putenv() was modifying its argument, a no-no.
2000-05-21 21:13:32 +00:00
Zeev Suraski
e043439ff6
Update the license with the new clause 6
2000-05-18 15:34:45 +00:00
Andrei Zmievski
fdbea075fa
@- Added array_rand() function. (Andrei)
2000-05-09 19:27:00 +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
5c5ec88292
@Added substr_count() from Peter Kovacs. (Andrei)
...
# also some todo stuff
2000-04-26 00:29:59 +00:00
Andrei Zmievski
a15b08a709
Just a type cast is sufficient.
2000-04-19 18:36:50 +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
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
0c2b366ce1
phpinfo() prettying
2000-04-05 21:43:03 +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
6db2262102
Tis protoriffic.
2000-03-29 01:39:04 +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
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
Sam Ruby
ec8add1a4c
Only define crypt if it is present
2000-03-07 12:28:06 +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
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
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
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
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
Zeev Suraski
86fa2aade2
the pipe is breaking all the time
2000-02-19 23:41:32 +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
Zeev Suraski
80bdd19e03
Fine tune Andi's patch
2000-02-11 15:59:30 +00:00