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
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
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
Zeev Suraski
3a816341f9
Cleanup patches
2000-02-05 15:16:12 +00:00
Zeev Suraski
86a19f4714
Add the complement to the putenv() security
2000-01-31 22:31:00 +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
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
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
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
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
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
1ad5180f28
getParameters -> zend_get_parameters
1999-12-20 17:34:55 +00:00
Zeev Suraski
489de5dce2
Support the latest update to call_user_function_ex()
1999-12-19 18:58:27 +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
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
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
6553540153
@- implemented count_chars(). (Thies)
1999-12-14 03:52:12 +00:00
Sascha Schumann
e911ee38bd
Make rand.c thread-safe.
1999-12-13 18:31:29 +00:00
Sascha Schumann
d9258da42e
@- Made pageinfo.c thread-safe (Sascha)
1999-12-12 16:14:40 +00:00
Rasmus Lerdorf
dfd0f8824c
More maintainer-mode cleanups
1999-12-05 14:16:37 +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
3b515617a4
Make array.c thread-safe
1999-12-01 17:21:52 +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
Sascha Schumann
6216edda44
Make basic/string functions thread-safe
1999-11-28 00:31:02 +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
Zeev Suraski
e9742f5458
Cosmetic changes
1999-11-23 21:08:51 +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
Andrei Zmievski
e46198bf7b
(PHP substr_replace) New function.
...
@- Added substr_replace() function. (Andrei)
1999-11-16 22:44:13 +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
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
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
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
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
Andrei Zmievski
21ce8b7c64
(PHP array_map) Away with it.
1999-10-26 19:57:10 +00:00
Thies C. Arntzen
6581d11cea
folding fix (xemacs 21 loads the file again;-)
1999-10-24 18:15:42 +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
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
0a829ab104
(PHP array_map) Temporarily #if 0 this.
1999-10-15 21:24:15 +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
Andrei Zmievski
9e773dfde2
Modified sorting functions to use updated zend_hash() prototype.
1999-10-11 21:42:42 +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
Thies C. Arntzen
657edcd50e
- replaced most getParamters against getParamtersEx calls
...
- removed ParamterPassedByReference where appropiate
1999-10-06 12:54:45 +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
Andrei Zmievski
23e8d1762d
Added array_reverse() function.
1999-10-01 17:36:54 +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
Andrey Hristov
53fb0ea075
A couple of fixes.
1999-09-21 17:06:30 +00:00
Thies C. Arntzen
8638a61df9
added krsort() function
1999-09-21 14:36:41 +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
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
Thies C. Arntzen
4bb329eafb
added array_count_values function.
1999-09-20 10:09:57 +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
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
Zeev Suraski
a1784083e9
Time to do that - rename the output layer prefix
1999-09-12 03:25:02 +00:00
Andrey Hristov
6101d108e0
Here you go, Egon.
1999-09-07 19:41:28 +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
Egon Schmid
f0f7b9de53
File should here be string.
1999-09-06 20:13:23 +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
Rasmus Lerdorf
d3439023d3
Catch a timeout and add user-level interface for connection handling
1999-09-04 21:10:39 +00:00
Stig Bakken
b55d490ef0
fix for bug #2191
1999-08-31 15:27:31 +00:00
Egon Schmid
2c0b8b5ac8
Oops, file should be string here.
1999-08-29 09:59:12 +00:00
Zeev Suraski
65e6d82771
Fix #2096
1999-08-17 22:00:02 +00:00
Andrey Hristov
a0bf6b0923
Removed internal pointer reset from array_walk.
1999-08-16 14:19:49 +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
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
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
Zeev Suraski
3cb1eb0471
Removed '3' from key functions in PHP (maintained compatibility through
...
php3_compat.h)
1999-08-02 19:17:14 +00:00
Andi Gutmans
91ec4763fd
Support resource type in gettype()
1999-08-01 17:56:09 +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
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
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
Andrey Hristov
2d1b6f0801
Added headers_sent() function
1999-07-20 18:03:27 +00:00
Andrey Hristov
4518351648
Proto change
1999-07-17 19:23:32 +00:00
Zeev Suraski
614b4b781e
I was sure I committed these already. Weird
1999-07-17 19:17: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
c5724cbd14
License update
1999-07-16 13:13:16 +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
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
Thies C. Arntzen
18962f1993
gettype now reports "boolean" correct
1999-06-22 21:37:43 +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
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
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
Andrey Hristov
835b0d8823
*** empty log message ***
1999-06-09 15:39:56 +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
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
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
6155d91e7a
Just a little sanity check.
1999-05-25 21:47:58 +00:00
Sascha Schumann
39691bed9e
conv_proto *.[ch]
1999-05-16 11:19:26 +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
Andrey Hristov
89a56a139b
It's been there long enough.
1999-05-12 17:29:51 +00:00
Andrey Hristov
702829709c
Added compact() function.
1999-05-11 19:31:37 +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
5ba4b3311d
Several minor fixes
1999-05-09 13:55:15 +00:00
Andrey Hristov
a0b94fccbb
-Added extract() function
...
-Added function_exists() function
1999-05-08 21:18:06 +00:00
Zeev Suraski
6f1c611868
Fixes
1999-05-05 21:29:26 +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
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
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
6f7c0edee3
Remove tls.[ch]
1999-04-23 20:06:01 +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
Zeev Suraski
7aad231327
Thread safety patch. It works now with just-in-time resource initialization!
1999-04-21 17:28:54 +00:00
Zeev Suraski
c5af324ec3
More thread safety work
1999-04-21 04:02:11 +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
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