Commit Graph

451 Commits

Author SHA1 Message Date
Andi Gutmans
0a7fc83253 - gettimeofday wasn't registered. 1999-09-15 05:08:45 +00:00
Thies C. Arntzen
da599af7cb is_array & friens speedups 1999-09-14 14:18:18 +00:00
Rasmus Lerdorf
0fd0323956 Fix a warning 1999-09-14 14:09:57 +00:00
Thies C. Arntzen
41da939988 count() now uses the new getParamertersEx API. 1999-09-14 13:34:27 +00:00
Thies C. Arntzen
95303a4bb2 added Metaphone support 1999-09-13 15:48:32 +00:00
Thies C. Arntzen
d5bafdaa20 ported oci8 to use new class API
var_dump no longer tries to traverse avr->value.ht for objects but uses var->value.obj.properties instead
1999-09-13 10:52:54 +00:00
Zeev Suraski
b88ef58a9f Modified phpinfo() to show the contents of arrays in HTTP_*_VARS[] 1999-09-13 01:11:41 +00:00
Zeev Suraski
3f0696dada Fix a buglet, and avoid crashing in phpinfo() (fixes an elusive legacy bug too) 1999-09-13 00:35:03 +00:00
Zeev Suraski
b2c0acb9ec - Rewrote the GET/POST/Cookie data reader to support multi-dimensional
arrays! (Zeev)

This still needs a lot of more testing, but it seems to work more or less.
1999-09-12 23:51:12 +00:00
Zeev Suraski
9e3315799c That's important enough to be cached 1999-09-12 20:36:48 +00:00
Sascha Schumann
96559e91fe use static buffer for URLs instead of allocating/freeing memory
for each one
1999-09-12 13:03:10 +00:00
Zeev Suraski
a1784083e9 Time to do that - rename the output layer prefix 1999-09-12 03:25:02 +00:00
Sascha Schumann
9531846163 add rule for url_scanner.c 1999-09-12 00:00:44 +00:00
Sascha Schumann
b0f01a4778 - add standard disclaimer
- regenerate scanner with re2c -s
1999-09-11 23:53:40 +00:00
Sascha Schumann
f040ce584d add transparent session id propagation
this uses a custom scanner which detects relative URIs and changes
  them appropiately.
  must be explicitly enabled with --enable-trans-sid
  (normal case is not affected, since session_adapt_uris defaults to
   void statement. Compiler should eliminate dead code in output.c then.)
1999-09-11 23:47:16 +00:00
Sascha Schumann
2f39b484f5 avoid mmap overhead for small files 1999-09-11 18:38:34 +00:00
Sascha Schumann
dda0b783df optimize fpassthru/readfile to use mmap instead of fread
which especially increases speed on large files.
1999-09-11 18:15:39 +00:00
Zeev Suraski
7afbcb4fef Rename allow_builtin_links to expose_php 1999-09-11 16:32:08 +00:00
Zeev Suraski
7f42813ad8 Except for this small bug fix - it works 1999-09-11 15:36:00 +00:00
Zeev Suraski
15fee4d3a6 - Seriously optimize and clean php_parse_gpc_data()
- Added gpc_globals directive to turn global definitions of GPC variables on/off
(untested)
1999-09-11 15:04:45 +00:00
Zeev Suraski
1b6ccfe86c Cleanups & optimizations 1999-09-11 14:09:29 +00:00
Zeev Suraski
fb910c64cd Cleanups 1999-09-11 13:44:23 +00:00
Andrey Hristov
42e39d474b Remove extraneous debug dlerror() call which results in the subsequent
dlerror() returning NULL.
1999-09-08 19:36:18 +00:00
Andi Gutmans
48ab0fb57d - Fix warnings and win32 compile 1999-09-07 20:29:31 +00:00
Andrey Hristov
6101d108e0 Here you go, Egon. 1999-09-07 19:41:28 +00:00
Stig Bakken
5c40e7c41e Add thread-safety notice here. The solution is using gethostbyname_r,
but it seems that it takes different parameters on Solaris and
Linux. ;-P We should probably make a wrapper function, and make a
configure test that checks if there is a reentrant version available,
and if not protect gethostbyname and similar calls with a mutex until
the results have been copied.  Ugly.
1999-09-07 18:46:25 +00:00
Andrey Hristov
7aacff63c9 Added second parameter to array_keys() which allows returning keys
only for a specific value in an array.
1999-09-07 18:29:59 +00:00
Andrey Hristov
cff218cf54 Kill compiler warning. 1999-09-07 18:26:36 +00:00
Andrey Hristov
209fe717b1 Kill warnings. 1999-09-07 16:09:18 +00:00
Uwe Steinmann
51b01ca9b7 - uniqid() used the additional parameter even if it was not provided
this caused an segm fault. fixed it.
1999-09-07 10:34:17 +00:00
Zeev Suraski
959ad0e9ea A couple of BoundsChecker fixes 1999-09-06 22:40:27 +00:00
Egon Schmid
f0f7b9de53 File should here be string. 1999-09-06 20:13:23 +00:00
Jakub Skopal
a38995a832 Workaround for crypt() getting too few characters for salt. 1999-09-06 13:24:36 +00:00
Jakub Skopal
5cc16d86b0 Added addcslashes(), stripcslashes().
Reverted addslashes() to the very original behaviour.
1999-09-05 20:55:13 +00:00
Andi Gutmans
14d9a59f1c - Make dir functions compile in Win32
- Fix too early memory manager initialization (For you Thies)
1999-09-05 19:04:40 +00:00
Jakub Skopal
8c2f752c3d C++ comment fix... sorry. 1999-09-05 00:58:59 +00:00
Jakub Skopal
06545c3364 Appended second argument of addslashes(),
Changed php_addslashes() to add \000 instead of just \0
1999-09-05 00:55:48 +00:00
Rasmus Lerdorf
f42659a8f1 Kill a warning 1999-09-04 22:15:51 +00:00
Rasmus Lerdorf
d3439023d3 Catch a timeout and add user-level interface for connection handling 1999-09-04 21:10:39 +00:00
Zeev Suraski
c12d4bc7d4 *** empty log message *** 1999-09-04 13:18:59 +00:00
Thies C. Arntzen
9e959a0b8a newest GetImageSize renamed header-file 1999-09-02 11:58:23 +00:00
Stig Bakken
4092f4b8c0 ext/lcg -> ext/standard in various places 1999-08-31 18:05:22 +00:00
Stig Bakken
b5375a323d oops 1999-08-31 15:57:30 +00:00
Stig Bakken
b55d490ef0 fix for bug #2191 1999-08-31 15:27:31 +00:00
Stig Bakken
0e5f26c6bb compat fix, bug #2201 1999-08-31 15:20:21 +00:00
Stig Bakken
5600f889b2 moved lcg stuff to ext/standard 1999-08-29 20:12:12 +00:00
Egon Schmid
2c0b8b5ac8 Oops, file should be string here. 1999-08-29 09:59:12 +00:00
Philippe Verdy
ce6db81dce semicolon syntax error 1999-08-28 17:01:32 +00:00
Philippe Verdy
1dcee0c840 Bug in gmmktime():
it produced wrong results in New Foundland,
Central Australia, India, Iran, and Java, with
half-hour timezones.
1999-08-28 16:19:14 +00:00
Sascha Schumann
52cd153723 merge in fix from php3 1999-08-28 13:53:46 +00:00
Zeev Suraski
aa8b27ba1d Better debug macros 1999-08-27 19:17:19 +00:00
Andi Gutmans
7a9ad9d0c8 Make fopen() work with URL's in Win32 1999-08-25 16:24:14 +00:00
Sascha Schumann
c9bb8db0ad get rid of that usleep() and add some entropy using the combined lcg 1999-08-21 17:22:08 +00:00
Andi Gutmans
aeec4e198a - Fixed memory leaks. tsrm resource id deallocation still needs to be implemented. 1999-08-19 16:52:53 +00:00
Andrey Hristov
c10c675f5b Fixed bug #2105 1999-08-18 17:23:01 +00:00
Zeev Suraski
65e6d82771 Fix #2096 1999-08-17 22:00:02 +00:00
Sascha Schumann
71e3f6fde3 merge in change:
Date:   Monday June 28, 1999 @ 4:40
Author: bjh

Update of /repository/php3/functions
In directory php:/tmp/cvs-serv5697

Modified Files:
    crypt.c
Log Message:
Stop core dump using crypt() with standard DES. When PHP3_MAX_SALT_LEN = 2
adding the null terminator to the salt exceeds allocated space causing
stack corruption.
1999-08-17 18:21:04 +00:00
Thies C. Arntzen
e30a2740cf imported diskfreespace from 3.0 1999-08-17 12:32:23 +00:00
Andrey Hristov
a0bf6b0923 Removed internal pointer reset from array_walk. 1999-08-16 14:19:49 +00:00
Thies C. Arntzen
94ce166244 added a few PLS_FETCH() 1999-08-15 18:52:10 +00:00
Andrey Hristov
c85209985a Forgot to have internal pointer reset. 1999-08-14 16:43:38 +00:00
Zeev Suraski
2560bfd5f9 Rename TestClass to OverloadedTestClass 1999-08-14 11:08:26 +00:00
Zeev Suraski
58e24ac18a - Add PHP Modules workspace
- Get the MySQL module to compile&work under thread-safe Win32
- Fix various thread safety issues with dynamic modules
1999-08-13 21:03:27 +00:00
Andrey Hristov
5ae3f32b24 Fixed bug #2023. 1999-08-13 20:28:27 +00:00
Philippe Verdy
646db4f072 signed/unsigned warning removed 1999-08-12 10:53:29 +00:00
Egon Schmid
8588b58a5e More typos. 1999-08-09 20:52:58 +00:00
Zeev Suraski
1e6c159422 Built-in phpinfo() links are now turned off by default. They can be
turned on using the allow_builtin_links INI directive
1999-08-07 18:21:35 +00:00
Zeev Suraski
9b09f412bf - Changed phpinfo() to list modules that have no info function 1999-08-07 17:52:11 +00:00
Andrey Hristov
fd87bb3321 Modified array_walk() function so that the userland callback is passed
a key and possible user data in addition to the value.  It's still backward
compatible with one argument version.
1999-08-07 16:43:25 +00:00
Stefan Roehrich
4f3f4699ea Corrected spelling. 1999-08-07 15:50:26 +00:00
Zeev Suraski
125300b563 Fix&improve conversion scripts 1999-08-07 15:31:57 +00:00
Zeev Suraski
edabed5604 count/sizeof had their arguments setup wrong (messup between Beta 1 and 2) 1999-08-06 15:34:51 +00:00
Zeev Suraski
37d7d08482 - Improved register_shutdown_function() - you may now supply arguments that
will be passed to the shutdown function
- Improved call_user_func() and call_user_method() - they now support passing
  arguments by reference
- Fixed usort() and uksort()
1999-08-06 15:25:11 +00:00
Thies C. Arntzen
4b8a100ec9 fix for #1947 1999-08-06 08:56:15 +00:00
Rasmus Lerdorf
f2fe56ff69 [s]printf fix for bug #1952
(note, [s]printf doesn't work in PHP4 yet)
1999-08-03 20:08:33 +00:00
Zeev Suraski
dcf9114329 AIX needs this include... 1999-08-02 19:59:04 +00:00
Zeev Suraski
3cb1eb0471 Removed '3' from key functions in PHP (maintained compatibility through
php3_compat.h)
1999-08-02 19:17:14 +00:00
Andrey Hristov
98037c425d Updated proto 1999-08-02 14:31:41 +00:00
Andi Gutmans
91ec4763fd Support resource type in gettype() 1999-08-01 17:56:09 +00:00
Zeev Suraski
eb3d12c6dd Fix bug #1914 1999-07-31 16:20:06 +00:00
Zeev Suraski
3ee8c8f0da This should fix the implode() problem 1999-07-30 22:17:51 +00:00
Andi Gutmans
e3246872e3 -Tiny fix 1999-07-29 04:03:03 +00:00
Andi Gutmans
7d0715d53d - Added function documentation prototypes. Thanks to Egon Schmid for
straightening me out :)
1999-07-29 03:48:29 +00:00
Andi Gutmans
a7af382874 - Added get_class($obj), get_parent_class($obj) and method_exists($obj,"name") 1999-07-28 17:58:38 +00:00
Andrey Hristov
5aa3eff94f Fix link functions problem. 1999-07-28 13:59:35 +00:00
Danny Heijl
d69ec49dc6 Make it compile again 1999-07-28 11:26:58 +00:00
Philippe Verdy
e1b5df4b55 Commited changes in php3 function/soundex 1.32 1999-07-28 07:04:26 +00:00
Andi Gutmans
71ffa09f41 - strttotime is compiled in on win32 again. 1999-07-27 17:30:45 +00:00
Andrey Hristov
15d87d2452 check for nKeyLength not arKey 1999-07-27 16:26:30 +00:00
Andrey Hristov
cd0dd562f0 Fix for bug #1887. 1999-07-27 16:17:58 +00:00
Andrey Hristov
ad671669ce Fix for bug #1891 1999-07-27 13:40:54 +00:00
Andrey Hristov
1b2c932cc2 More symbol work.
I've defined a few macros to help with module/request init/startup function definitions.
Basically:

PHP_MINIT_FUNCTION(module)
PHP_MSHUTDOWN_FUNCTION(module)
PHP_RINIT_FUNCTION(module)
PHP_RSHUTDOWN_FUNCTION(module)
PHP_MINFO_FUNCTION(module)

These will expand to proper function prototypes.

Now to specify these in the module entry, use:

PHP_MINIT(module)
PHP_MSHUTDOWN(module)
PHP_RINIT(module)
PHP_RSHUTDOWN(module)
PHP_MINFO(module)

I've updated all modules in ext/standard and everything from ext/apache to ext/db.
If you can, please update your module to use these macros.
1999-07-26 20:09:08 +00:00
Andi Gutmans
8f51f72dc6 - Fix the new operator incompatibility.
- I commented PHP_FUNCTION(strtotime) in datetime.c because it stopped
  win32 from compiling. This needs to be fixed!!!
- Check out libzend to compile the tree now.
1999-07-26 16:57:06 +00:00
Andrey Hristov
736f4831a5 A bunch of grunt work updating function entries and declarations. 1999-07-24 22:16:54 +00:00
Zeev Suraski
68e32f6ac3 * Make Win32 build work again
* Make error_reporting value prior to the standard initialization be
  set so that errors show up
1999-07-24 16:52:00 +00:00
Zeev Suraski
2b2bda778e * Fix a warning
* Update ChangeLog
1999-07-24 14:36:48 +00:00
Rasmus Lerdorf
d9f6ea2fc3 Fix broken build 1999-07-24 02:43:22 +00:00
Rasmus Lerdorf
8de073782c Bring rand.c up to date 1999-07-24 02:30:37 +00:00
Andrey Hristov
974f278257 Added function entry for similar_text(). 1999-07-23 22:47:24 +00:00
Andrey Hristov
244cc30c14 Added function entry for strip_tags. 1999-07-23 22:35:14 +00:00
Andrey Hristov
9dd45ec800 Ported strtotime() function. 1999-07-23 19:51:27 +00:00
Andrey Hristov
64dae03eea -Ported all remaining date() options
-Made array_walk() work somewhat, but it's not
 possible to change array values from inside the
 walk function yet
1999-07-22 15:15:41 +00:00
Sascha Schumann
9a910ed353 sync with 1.133 1999-07-21 16:12:13 +00:00
Stig Bakken
2ab934bfc2 fix to reiterate that one should _always_ use braces around if/else/for/while 1999-07-21 14:27:05 +00:00
Sascha Schumann
58bb4adae1 use the same version as in php3 1999-07-21 09:31:48 +00:00
Sascha Schumann
63f7648fdc use reverse lookup array, submitted by bfranklin@dct.com, #1755 1999-07-21 09:02:05 +00:00
Mike Gerdts
72f675be50 exec() can now properly handle lines longer than (EXEC_INPUT_BUF-2) bytes.
Lines being returned via the array that that contain only "\n" now are
trimmed down to "" to be consistent with exec's whitespace trimming
behavior for all other lines.
1999-07-20 20:19:58 +00:00
Andrey Hristov
3ff606a934 Added 'n' option to date(). 1999-07-20 19:11:32 +00:00
Andrey Hristov
2d1b6f0801 Added headers_sent() function 1999-07-20 18:03:27 +00:00
Andrey Hristov
f8fdee1c66 Fix for bug #1750. 1999-07-20 16:59:30 +00:00
Andrey Hristov
40de81a5d9 Updated status 1999-07-19 20:27:49 +00:00
Zeev Suraski
c1853b5628 *** empty log message *** 1999-07-19 18:37:42 +00:00
Andrey Hristov
d1b1e3513f Kill compiler warnings. 1999-07-19 15:07:17 +00:00
Sascha Schumann
afb16a5818 update 1999-07-19 14:07:10 +00:00
Andrey Hristov
18579a5f64 More credits. 1999-07-19 13:35:13 +00:00
Andrey Hristov
715dc6b23a Update credits a bit.
"Overall Work" line should probably be extended.
1999-07-17 20:38:14 +00:00
Andrey Hristov
4518351648 Proto change 1999-07-17 19:23:32 +00:00
Zeev Suraski
5a3e983fa4 *** empty log message *** 1999-07-17 19:22:27 +00:00
Zeev Suraski
614b4b781e I was sure I committed these already. Weird 1999-07-17 19:17:42 +00:00
Zeev Suraski
cbcf7c66bc *** empty log message *** 1999-07-17 17:33:42 +00:00
Andrey Hristov
459ed2b1ad A little change in how array_splice/array_slice handle length parameter.
Makes it compatible with Perl.
1999-07-16 20:47:20 +00:00
Andrey Hristov
7201cdac96 Updated the functionality of array_splice. 1999-07-16 20:08:06 +00:00
Zeev Suraski
4e6c2b468c * Get the mSQL module up to date 1999-07-16 17:06:48 +00:00
Zeev Suraski
c5724cbd14 License update 1999-07-16 13:13:16 +00:00
Zeev Suraski
b7fe07d8dc php3.ini -> php.ini 1999-07-14 23:34:30 +00:00
Zeev Suraski
e883283590 * Update logos
* Move from PreAlpha 1 to Beta 1.
1999-07-14 23:33:00 +00:00
Andi Gutmans
3e6bce59b3 - Add a bitwise flag to phpinfo()
- Import a draft of the new PHP license
1999-07-14 16:02:10 +00:00
Zeev Suraski
c43c235427 Don't touch refcount and EA directly 1999-07-09 20:45:55 +00:00
Zeev Suraski
5f62c347c7 Step 2:
Rename is_ref to EA
1999-07-09 17:44:41 +00:00
Zeev Suraski
3a9cb0220c Step 1 in nuking the garbage collector:
- Change the hash destructor to return int
1999-07-09 17:36:12 +00:00
Thies C. Arntzen
ad0076ee53 ported IPTC fro php3 1999-07-05 07:42:07 +00:00
Sascha Schumann
c42305c54e fix from php3 1999-07-02 14:37:36 +00:00
Thies C. Arntzen
fe4efa91c3 changed boolean behaviour:
var_dump(
1999-07-01 09:26:05 +00:00
Sascha Schumann
2e690ac4b5 some additional consts 1999-07-01 05:47:06 +00:00
Andrey Hristov
26a7fe78f2 oops 1999-06-28 13:46:58 +00:00
Andrey Hristov
db400222ff *** empty log message *** 1999-06-28 13:39:52 +00:00
Sascha Schumann
e205a6749d more porting 1999-06-27 21:45:06 +00:00
Zeev Suraski
d1169e735e Win32/general patches 1999-06-26 23:21:18 +00:00
Zeev Suraski
d4f24f19ad * Get rid of another request_info element (filename)
* CGI through Apache should work now
1999-06-26 19:14:26 +00:00
Zeev Suraski
320541430b *** empty log message *** 1999-06-26 18:01:21 +00:00
Thies C. Arntzen
18962f1993 gettype now reports "boolean" correct 1999-06-22 21:37:43 +00:00
Andrey Hristov
df86725019 Making function accessible. 1999-06-22 19:37:26 +00:00
Andrey Hristov
226f75e0f3 Making the function accessible. 1999-06-22 19:36:52 +00:00
Thies C. Arntzen
5fa6882567 urlencode and decode return an empty-string if the input-string is empty (matches php3 behaviour "more" closly)
Please read my previous mail and comment!
1999-06-22 13:35:28 +00:00
Andrey Hristov
2b8c85bd0b Backing out changes. 1999-06-21 23:07:46 +00:00
Thies C. Arntzen
8052667684 fixed implode "again" - 1999-06-21 15:57:20 +00:00
Zeev Suraski
63a845f2f6 *** empty log message *** 1999-06-19 13:13:28 +00:00
Zeev Suraski
f88464ee6d Win32/ZTS compiles again 1999-06-19 13:04:55 +00:00
Andrey Hristov
cd74a455dd for struct sockaddr 1999-06-18 15:54:14 +00:00
Stig Bakken
467523bac5 Apply Sascha's fsock fixes to php4. 1999-06-18 13:42:21 +00:00
Stig Bakken
117a2fba07 * fixed some #if/#ifdef issues
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
   fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
   ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
   FP_FGETS(buf,len,sock,fp,issock)
   FP_FREAD(buf,len,sock,fp,issock)
   FP_FEOF(sock,fp,issock)
   FP_FGETC(sock,fp,issock)
1999-06-16 17:06:53 +00:00
Stig Bakken
8eec7a022f reversing another patch that slipped 1999-06-15 21:56:11 +00:00
Stig Bakken
8c4411b5da * reverse fsock/string import patches 1999-06-15 21:51:00 +00:00
Stig Bakken
336392ea6c * now using php4.ini instead of php3.ini
* re-imported fopen-wrappers, fsock and string code from php3
  NB!  I have not tested all of the imported functions yet.
1999-06-15 17:06:22 +00:00
Rasmus Lerdorf
bdbdaa4369 gmmktime() fix 1999-06-15 12:31:29 +00:00
Zeev Suraski
96bfbc7904 First attempt at moving the old RFC1867 support to the right place 1999-06-12 17:50:39 +00:00
Sascha Schumann
be14ccadf1 it's obj.properties, not ht 1999-06-11 19:29:10 +00:00
Andrey Hristov
8c43c5f708 Fix up var.c a bit. 1999-06-11 15:54:06 +00:00
Rasmus Lerdorf
f8bac0f8ad Same Fix here 1999-06-11 12:48:22 +00:00
Zeev Suraski
1798a0183a * Fix a buglet in the session module
* Make some renames in the session module - avoid having a function called 'delete'
  so that we don't piss any C++ compilers.  Also rename the {startup,shutdown}_globals
  to {startup,shutdown}_session_globals, so that they're a bit less general names,
  and made them static.
* Remove uselss variables
1999-06-11 09:23:00 +00:00
Sascha Schumann
83de88e90c make serialize work
unserialize does not work yet
1999-06-10 15:34:20 +00:00
Andrey Hristov
2bb01b6f81 Fixing serialize a bit. 1999-06-10 15:13:26 +00:00
Andrey Hristov
3b1843bc9f Added preg_grep() function. 1999-06-10 14:41:38 +00:00
Andrey Hristov
f7072fbf87 Make array_shift/array_pop work better. 1999-06-09 22:03:15 +00:00
Andrey Hristov
3d45dd58b8 Fixed a bug in preg_split.
Fixed a bug in array_shift/array_pop.
1999-06-09 21:13:05 +00:00
Thies C. Arntzen
a3464b7c11 oci8 to 3.0.9
implode works!
1999-06-09 19:47:06 +00:00
Andrey Hristov
835b0d8823 *** empty log message *** 1999-06-09 15:39:56 +00:00
Andrey Hristov
2a64925a67 Fixed a bug in preg_replace. 1999-06-09 15:02:57 +00:00
Andrey Hristov
bc1e4a5a10 Don't set is_ref in _phpi_splice()
More checking in array_merge()
Added keys() and values() array functions.
1999-06-07 18:52:20 +00:00
Zeev Suraski
b886985d63 Fix an ereg_replace() crash bug 1999-06-07 15:01:25 +00:00
Andi Gutmans
d5dc2cd22c - Remove the is_ref =1 from the push() function. 1999-06-06 15:00:49 +00:00
Andrey Hristov
f8f8defb42 Added array_merge() function. 1999-06-05 21:19:25 +00:00
Andrey Hristov
421414df03 Added push(), pop(), shift(), unshift(), splice(), and slice() array functions.
The first 5 work like their Perl counterparts. slice() returns a chunk of the array
specified by offset and length arguments.

Backport to PHP3 and docs will be coming soon.
1999-06-05 20:43:36 +00:00
Zeev Suraski
e586468a4e Not sure that's the right fix, but at least it fixes the symptom 1999-06-05 13:56:18 +00:00
Andrey Hristov
0f99eeb29f function dir doesn't exist anymore 1999-06-01 21:01:02 +00:00
Andi Gutmans
250d803c31 - Fix for exec to use API 1999-06-01 16:41:56 +00:00
Andi Gutmans
f153896de5 *** empty log message *** 1999-05-31 17:41:41 +00:00
Sascha Schumann
577340bb9f zend_hash_merge was changed 1999-05-30 11:57:28 +00:00
Zeev Suraski
274f3aa727 Fix 1999-05-29 18:28:46 +00:00
Sascha Schumann
dfce358a5b that seems to fix it 1999-05-28 21:41:17 +00:00
Sascha Schumann
7401ef12fb Either I'm playing the EG(symbol_table) game wrong or var.c leaks memory
when unserializing arrays/objects. Still testing
1999-05-28 21:27:19 +00:00
Zeev Suraski
7a167cd0c1 * Use new Zend macros for standardized definition of classes.
* Reverse bogus shutdown order.
* Use the new object/class support of Zend to make the dir functions work again.
1999-05-28 11:09:39 +00:00
Andrey Hristov
ff29e85724 Fixing a couple of long standing bugs. 1999-05-26 18:45:53 +00:00
Andrey Hristov
6155d91e7a Just a little sanity check. 1999-05-25 21:47:58 +00:00
Zeev Suraski
0eb500cef5 Thou shalt use the API, and thou shalt be safe 1999-05-23 20:32:19 +00:00
Sascha Schumann
4fe8fe715e merge in some PHP3 stuff 1999-05-21 08:37:48 +00:00
Sascha Schumann
286fef1ce4 remove debug messages 1999-05-21 07:04:48 +00:00
Sascha Schumann
27fc61c4dc Apply the fix for feof() 1999-05-20 13:56:19 +00:00
Andi Gutmans
7eef22472c - Small fixes 1999-05-20 12:06:45 +00:00
Sascha Schumann
4e08c66771 kill another 64-bit issue.
this affected at least md5 which produced wrong values on 64-bit platforms
1999-05-16 11:55:34 +00:00
Sascha Schumann
a37a5e5c4a char * => unsigned char * 1999-05-16 11:32:51 +00:00
Sascha Schumann
39691bed9e conv_proto *.[ch] 1999-05-16 11:19:26 +00:00
Sascha Schumann
ed8a7dff62 add fast bin2hex string function 1999-05-16 11:12:23 +00:00
Sascha Schumann
d886b84ef4 kill some compiler warnings 1999-05-16 11:10:41 +00:00
Zeev Suraski
1fb61df8a5 * Include all of the standard modules in internal_functions.c.in. Stig - is that
the way you intended it to be?  How does the basic_functions module get in there?
* Fix to get MySQL objects working, even though I'll probably make a dedicated
  MySQL object in the future.
1999-05-14 18:25:16 +00:00
Zeev Suraski
5eaed486e1 * HTTP-auth bugfix
* Patch the regex thread safe code to compile in thread safe mode
1999-05-13 15:54:49 +00:00
Zeev Suraski
52ac2e67c1 Enable Apache HTTP Auth 1999-05-12 22:49:23 +00:00
Andrey Hristov
89a56a139b It's been there long enough. 1999-05-12 17:29:51 +00:00
Sascha Schumann
a4d20864a6 - regex cache (needs some work)
- str_replace changes from php3
1999-05-12 15:40:15 +00:00
Rasmus Lerdorf
fbeeb8f29c substr() fix 1999-05-12 12:53:45 +00:00
Rasmus Lerdorf
43d93b6533 substr() fix for PHP4 as well 1999-05-12 12:43:03 +00:00
Zeev Suraski
ceeb9b38ba * Finally commit that -q patch
* Refine SAPI built in header support
* Use DllMain() in ISAPI to clean after threads and initialize tsrm/sapi as soon as possible.
1999-05-11 20:38:16 +00:00
Andrey Hristov
702829709c Added compact() function. 1999-05-11 19:31:37 +00:00
Zeev Suraski
ba88c0c47c * Move unclean_shutdown from PHP to Zend.
* The Master/Local headers in the phpinfo() table were reversed.
* Fix a gpc bug
1999-05-11 16:52:58 +00:00
Zeev Suraski
dc5ed5a3fb beatify Apache's info func 1999-05-11 00:43:46 +00:00
Zeev Suraski
0b77132507 * Get Apache to work. POST doesn't work yet.
* There are now -I directives for the absolute path of php4, php4/libzend and the builddir for
  the Apache module, so we can #include any php/Zend header.
* Rename config.h to php_config.h
1999-05-11 00:01:47 +00:00
Andrey Hristov
957616cd2d Minor updates. 1999-05-10 21:14:43 +00:00
Andrey Hristov
d7ed9c1455 Added in_array() function. 1999-05-10 21:10:48 +00:00
Andi Gutmans
4079f914bd * Make read_post() read input by chunks instead of returning a single string.
This will allow us to efficiently support file upload through SAPI in the future.
* Fixes
1999-05-09 18:40:59 +00:00
Zeev Suraski
60fcac8f2a A few other minor fixes 1999-05-09 13:57:09 +00:00
Zeev Suraski
5ba4b3311d Several minor fixes 1999-05-09 13:55:15 +00:00
Zeev Suraski
bc415d5a88 * Finalizing the PHP version of SAPI. Support POST and cookies among other things.
* Fully implement ISAPI support - POST and cookies among other things.
* Almost completely rewrote phpinfo().  Allow modules to easily display their
  information in phpinfo() without modifying phpinfo() itself (prototype for
  the module info function was changed, thus the large amount of updated module
  files).
* Initial extended SAPI support for Apache, completely untested.
* CGI now uses SAPI fully as well.
1999-05-09 08:48:05 +00:00
Andrey Hristov
a0b94fccbb -Added extract() function
-Added function_exists() function
1999-05-08 21:18:06 +00:00
Zeev Suraski
465c94ce18 * Optimize _php3_parse_gpc_data() and clean it up, plus fix a couple of Zend related memory leaks in it 1999-05-06 18:09:50 +00:00
Zeev Suraski
6f1c611868 Fixes 1999-05-05 21:29:26 +00:00
Zeev Suraski
aee864e9d8 Get CGI to work with the new headers code.
Now Apache is the only interface that doesn't use it.
1999-05-05 21:05:44 +00:00
Andi Gutmans
537cc54acd Added initial headers support in SAPI
*untested*
It definitely broke the thread-safe CGI, it may have broken other stuff as well.
1999-05-05 18:25:20 +00:00
Stig Bakken
9a66ffbaee * added --enable-thread-safety switch
* now generating internal_functions.c
1999-05-03 11:11:23 +00:00
Zeev Suraski
a5ab6b9638 Move path_info to the SAPI structure 1999-05-02 19:54:02 +00:00
Andi Gutmans
5dbe924660 - Make ISAPI hook in as an extension too.
- Some work on moving stuff to SAPI.
1999-05-02 18:07:41 +00:00
Zeev Suraski
66476011dd A step towards generalizing the INI mechanism even more 1999-04-28 20:26:33 +00:00
Zeev Suraski
1aaf98e54b get rid of some stupid warnings 1999-04-28 20:18:25 +00:00
Rasmus Lerdorf
92905543f1 Add fgetcsv() here as well 1999-04-27 13:06:58 +00:00
Zeev Suraski
9b56453566 * Small startup fix
* Fix min() and max()
1999-04-26 20:20:12 +00:00
Zeev Suraski
3cd0af11ee * Get the Apache module to compile again
* Get rid of php3_rqst, use SG(server_context) instead (there's still Apache-specific code,
  but it nuked a global)
1999-04-26 17:26:37 +00:00
Zeev Suraski
7942eaf381 * Plenty of thread safety and Win32 work.
* Changed PHP4 to compile as a DLL, both ISAPI and the the CGI run with the same DLL.
* Switched to using the DLL runtime library under Win32.  PHP will NOT work if
  compiled against the static library!
* Removed yesterday's php4libts project (with php4dllts, it's obsolete).

This *does* affect thread-unsafe Windows as well - the thread unsafe CGI is also
dependant on the thread-unsafe DLL.
1999-04-26 14:00:49 +00:00
Thies C. Arntzen
9cace18e10 serialize & unserialize working (with mem-leak) 1999-04-25 12:41:18 +00:00
Rasmus Lerdorf
0704064cdf Argh! That typo took me over an hour to find. Grr.. 1999-04-25 04:03:36 +00:00
Rasmus Lerdorf
ecc1dce8f5 libbind check 1999-04-24 21:52:53 +00:00
Sascha Schumann
3b195581db bugfix port 1999-04-24 20:48:12 +00:00
Sascha Schumann
8036c5fbf1 include some header files explicitly 1999-04-24 20:26:31 +00:00
Thies C. Arntzen
992e6a429d made var_dump zend-aware....
<?
$ar = array("hallo" => "tubu");

var_dump($ar);
?>
works again!!!

zeev, andi -> please review what i've done!!!

(no i can start "debugging" other stuff, as i often use var_dump)
1999-04-24 18:39:41 +00:00
Zeev Suraski
0818d96c97 A lot of cleanups... Removed old thread-safe code and other redundant code and files 1999-04-24 00:12:00 +00:00
Zeev Suraski
05d24c6022 Remove redundant code 1999-04-23 22:45:01 +00:00
Zeev Suraski
09946676d2 Thread-safe header_is_being_sent 1999-04-23 20:20:30 +00:00
Zeev Suraski
6f7c0edee3 Remove tls.[ch] 1999-04-23 20:06:01 +00:00
Rasmus Lerdorf
7440bc50da Ok, finally.. These now work nicely on a RH-5.2 box:
--with-mysql --with-ldap --with-imap --with-zlib --with-snmp
1999-04-23 04:54:31 +00:00
Stig Bakken
2c0ad3ee25 last bunch of extensions moving to ext/
fhttpd module taken out of functions, functions is ready to go.
The only extensions I have tested are gd+freetype and odbc(solid).
Please try compiling in your favourite extensions and let me know how it
works.
1999-04-22 02:48:28 +00:00
Stig Bakken
2a78f92804 moved imap and ldap 1999-04-22 00:45:14 +00:00
Stig Bakken
ff37732997 moved fdf, hyperwave, informix and some smaller files 1999-04-22 00:25:57 +00:00
Zeev Suraski
751709a469 * Rename php_compat.[ch] to flock_compat.[ch] and move it to ext/standard
* Fix Win32 compilation
1999-04-21 19:01:38 +00:00
Sascha Schumann
08c6298af9 cleanup, flock() support 1999-04-21 18:10:18 +00:00
Sascha Schumann
f06cb4deb6 crypt constants 1999-04-21 17:57:40 +00:00
Zeev Suraski
7aad231327 Thread safety patch. It works now with just-in-time resource initialization! 1999-04-21 17:28:54 +00:00
Sascha Schumann
dcc16af80c port some fixes, add compat routines 1999-04-21 17:11:01 +00:00
Sascha Schumann
a6e4ef3e31 str_replace fix 1999-04-21 16:31:27 +00:00
Zeev Suraski
c5af324ec3 More thread safety work 1999-04-21 04:02:11 +00:00
Zeev Suraski
5e8c322859 Make Win32 happy with the recent changes. 1999-04-18 15:58:27 +00:00
Andi Gutmans
593e603e4b - Make gettype() behave like it used to where it returned "object" for
objects.
1999-04-17 07:02:58 +00:00
Stig Bakken
4f7b0a0ccd make sure the images on the phpinfo() page point to PHP-enabled pages 1999-04-17 01:52:58 +00:00