Zeev Suraski
736570923d
@- Fixed a crash in pfsockopen() (Zeev)
2000-01-10 19:56:23 +00:00
Zeev Suraski
8acd3e3818
@- Fixed a possible crash in phpinfo() (Zeev)
...
phpinfo() now ensures that HTTP_*_VARS[] are actually arrays before it tries
to access them...
2000-01-09 18:32:13 +00:00
Thies C. Arntzen
48e10ec9c4
@- Applied safe-mode patch to popen(). (Patch by Kristian Köhntopp)
2000-01-06 15:27:03 +00:00
Jouni Ahto
9a07df6c4a
(php_setlocale) Fixed memory leak (bug #3105 ).
...
# Must have been thinking something else when originally wrote this.
2000-01-05 12:26:41 +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
Andi Gutmans
bdefd5da15
- Change IS_UNSET -> IS_NULL
2000-01-04 13:22:58 +00:00
Thies C. Arntzen
402a9db2fe
@- str_repeat() now returns correct length. (Thies)
2000-01-04 09:45:28 +00:00
Thies C. Arntzen
953bf8bbf6
(var_dump, serialize, unserialize) support NULL
...
@- Added new NULL constant (Zeev, Zend library)
2000-01-02 11:49:27 +00:00
Sascha Schumann
890c1de998
Remove second (equal) definition of isleap()
2000-01-01 20:50:37 +00:00
Sascha Schumann
2fd8cbff2a
Declare timezone only, if the system fails to do so.
2000-01-01 02:22:01 +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
ccb4b18348
Happy new year (especially to Thies :)
...
- Zend branch patches merged in - get the PHP tree uptodate
- Clean
1999-12-31 14:06:31 +00:00
Sascha Schumann
cf5a5fb1dd
Whoops, defining them to empty values generates many parse errors.
...
Defaulting to 1.
1999-12-30 04:52:19 +00:00
Sascha Schumann
2c99bef442
Get rid of config.h.stub. Note that you should embed a comment about
...
what the respective define does into the AC_DEFINE macro. I.e.
AC_DEFINE(HAVE_FOO, 1, [Whether you have FOO])
1999-12-30 04:07:46 +00:00
Sascha Schumann
f2f8d38efa
Integration of -ng changes. Changes:
...
- added support for externally built modules,
- improved support for in-tree shared modules,
- fixed diversion bugs,
- configure displays some informative messages,
- faster static build
(libtool isn't used anymore for compiling non-PIC objects),
- dependencies comparable to automake's without requiring GNU make or GCC,
- working make clean for non-GNU makes.
1999-12-30 02:59:53 +00:00
Sascha Schumann
09d2e3d159
Move include into source file
1999-12-28 18:47:59 +00:00
Sascha Schumann
068596552d
Cache results of crypt capability checks
1999-12-26 22:35:55 +00:00
Zeev Suraski
235386b245
Change ALLOC_ZVAL() semantics
1999-12-26 21:21:33 +00:00
Zeev Suraski
90f1218fbb
- Change uint32 to php_uint32 (PostgreSQL defines uint32, and perhaps other packages too)
...
- PostgreSQL finally compiles&links
1999-12-26 00:18:44 +00:00
Andi Gutmans
d6f788f56a
- Get rid of two warnings
1999-12-25 09:06:55 +00:00
Andi Gutmans
3bf1b04cb4
- Move more stuff to ALLOC_ZVAL(). We need to add those FREE_ZVAL()'s now.
1999-12-24 17:39:27 +00:00
Andi Gutmans
3f6e00e48d
- Use ALLOC_ZVAL() in PHP. Finding the places to put FREE_ZVAL(z) is much
...
more tricky and I'm not sure how many places this is. zval allocations
were only made directly in 11 places.
1999-12-24 15:43:39 +00:00
Thies C. Arntzen
63d0849403
pval->zval
1999-12-23 14:59:01 +00:00
Thies C. Arntzen
a94721fc4c
@- strrev() no longer modifies arg1. (Thies)
1999-12-23 14:55:50 +00:00
Thies C. Arntzen
ec33704c39
@- Fixed buffer overruns in iptcembed(). (Thies)
1999-12-22 14:46:31 +00:00
Sascha Schumann
a2276107ab
Some cleanup
1999-12-21 22:58:04 +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
80bab9d939
We're using ZVAL's now.
1999-12-21 17:14:31 +00:00
Thies C. Arntzen
e96c5401f1
commented out select() & friends for now - we need to come up with a good API for those!
1999-12-21 16:51:27 +00:00
Sam Ruby
8a34d1a7e0
Further cleanup as including php.h is no longer harmful
...
- thanks to Sascha for noticing it.
Tested on Linux and WinNT, should work everywhere.
1999-12-21 02:34:20 +00:00
Sascha Schumann
ed0a307ccd
Use sapi_module_struct to contain SAPI module name
1999-12-20 23:09:54 +00:00
Andrei Zmievski
6e1dbe497c
Made quotemeta() binary-safe.
...
@ Made quotemeta() binary-safe. (Andrei)
1999-12-20 20:43:47 +00:00
Andrei Zmievski
1ad5180f28
getParameters -> zend_get_parameters
1999-12-20 17:34:55 +00:00
Zeev Suraski
f455a484bd
Make the Win32 tree compile again
1999-12-20 15:38:44 +00:00
Sascha Schumann
0d70a91b6d
Add information about chosen SAPI module to phpinfo()
1999-12-20 07:12:27 +00:00
Evan Klinger
f5d5637f72
Ex API
1999-12-20 02:09:58 +00:00
Evan Klinger
eb54c032c8
Ex API
1999-12-20 01:23:15 +00:00
Evan Klinger
9ea9ca32ba
Ex API and UDP support.
...
@- Added UDP support in fsockopen() (Evan).
# UDP activated with "udp://hostname"
1999-12-20 00:55:58 +00:00
Zeev Suraski
489de5dce2
Support the latest update to call_user_function_ex()
1999-12-19 18:58:27 +00:00
Sascha Schumann
cb45c2ea55
Use zend_sprintf by default (which is defined to sprintf, if the system's
...
sprintf is useable).
1999-12-19 14:39:41 +00:00
Sascha Schumann
63d4411560
Use workaround function for sprintf, if the return value of sprintf is needed
1999-12-19 02:12:31 +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
396bccfb1d
More php3_ cleanup
1999-12-17 22:34:04 +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
a3c6514332
More php3_ annihilation
1999-12-17 19:51:39 +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
1cad06afda
(getimagesize) grrr, fixed newly (30 min ago) introduced NPR
1999-12-14 04:32:54 +00:00
Thies C. Arntzen
ad764253ca
use ex-API
1999-12-14 04:10:01 +00:00
Thies C. Arntzen
6553540153
@- implemented count_chars(). (Thies)
1999-12-14 03:52:12 +00:00
Thies C. Arntzen
8267934235
use ex-API
1999-12-14 03:49:42 +00:00
Thies C. Arntzen
d90daba134
use _ex-API
1999-12-14 03:48:46 +00:00
Andrei Zmievski
8ebba516a3
Boo.
1999-12-14 03:25:04 +00:00
Andrei Zmievski
a15916a47a
Made strspn() and strcspn() binary-safe.
...
# Please test if you can, especially cases with embedded chr(0).
@ Made strspn() and strcspn() binary-safe.
1999-12-13 23:40:36 +00:00
Andrei Zmievski
457a13dac5
Finished array_multisort() function. Basically it sorts multiple arrays
...
similar to ORDER BY SQL clause.
@ Added array_multisort() function. (Andrei)
# Docs are coming soon
1999-12-13 19:42:26 +00:00
Sascha Schumann
e911ee38bd
Make rand.c thread-safe.
1999-12-13 18:31:29 +00:00
Sascha Schumann
61a6a92618
Make filestat.c thread-safe
1999-12-12 16:48:54 +00:00
Sascha Schumann
d9258da42e
@- Made pageinfo.c thread-safe (Sascha)
1999-12-12 16:14:40 +00:00
Sascha Schumann
9278d9d911
Remove unnecessary ARRAYLS_FETCH() calls
1999-12-12 10:50:30 +00:00
Andrei Zmievski
dbaf6c5c65
Added array globals in preparation for multisort() changes.
1999-12-11 22:42:01 +00:00
Andrei Zmievski
0c779c51c9
(PHP php_implode) Made binary-safe.
...
@ Made implode() binary-safe (Andrei)
1999-12-11 20:00:40 +00:00
Andrei Zmievski
33d82cb6d1
get_meta_tags() was using php_stristr() so it needed to be changed.
...
Optimized it to use php_memnstr() directly.
1999-12-11 19:51:04 +00:00
Andrei Zmievski
17ff0f3af3
Made strstr(), stristr(), and ucwords() binary-safe(). Also corrected
...
stristr() behavior to match that of strstr() if needle is not a string.
@ Made strstr(), stristr(), and ucwords() binary-safe() (Andrei)
1999-12-11 19:50:01 +00:00
Andrei Zmievski
d18ff45c4c
A few more fixes for php_strtolower().
1999-12-10 04:44:32 +00:00
Andrei Zmievski
7e4bd9fb60
(PHP strtoupper, strtolower, substr_replace) Made binary-safe.
...
@Made strtoupper(), strtolower(), substr_replace() binary-safe. (Andrei)
1999-12-09 23:45:30 +00:00
Thies C. Arntzen
0489895d0b
(unserialize) closed mem-leak
1999-12-09 11:24:51 +00:00
Sascha Schumann
01c7fc6c8f
Use global ctor in non-ZTS mode as well
1999-12-08 19:07:58 +00:00
Thies C. Arntzen
276c0a378d
(unserialize) now cleans up better on failure!
1999-12-08 14:40:46 +00:00
Thies C. Arntzen
f7089e600f
make non-ZTS happy again
1999-12-08 14:18:28 +00:00
Thies C. Arntzen
5fad6deb65
this is the "right" ZTS-fix
1999-12-08 11:47:50 +00:00
Sam Ruby
b9f27a4743
Fill in empty constructor in order to appease Sascha ;-)
...
More seriously, uninitialized values cause MSHUTDOWN to trap.
Only an issue because assert was added to internal_functions.
1999-12-07 21:07:42 +00:00
Thies C. Arntzen
7b7192dda3
added assert.quiet_eval plus a bit of cleaning (docs to follow!)
1999-12-07 16:45:46 +00:00
Sam Ruby
8fdd352404
fixed just enough to enable assert to build on win32 and Linux/ZTS
1999-12-07 16:28:27 +00:00
Thies C. Arntzen
f02f67e83c
fixed NPR
1999-12-07 13:33:37 +00:00
Thies C. Arntzen
2f7693963d
@- Added support for a C-like assert() function. (Thies)
1999-12-07 13:08:17 +00:00
Thies C. Arntzen
19ce7e05db
getting there
1999-12-07 12:33:36 +00:00
Thies C. Arntzen
a807dd31e9
new assert() module. (Not yet finished!)
1999-12-07 11:37:30 +00:00
Thies C. Arntzen
5cdb16ad09
(explode) fixed newly introduced bug (them shall check twice *before* committing!)
1999-12-07 08:14:00 +00:00
Evan Klinger
1fe899d8cd
Mention CyberCash.
1999-12-07 02:49:03 +00:00
Sam Ruby
e3cbafdda6
-kludges -warning +reentrancy(more) +compiles(Unix)
1999-12-07 02:47:35 +00:00
Zeev Suraski
40eb2bb5b0
First step in making parsedate.y thread safe - use a pure parser
1999-12-06 19:04:01 +00:00
Thies C. Arntzen
beb9723617
fixed warning
1999-12-06 19:01:21 +00:00
Thies C. Arntzen
1095f8a502
@- explode() is now binary-safe. (Thies)
...
we save one buffer-copy as well (hehe)
1999-12-06 18:29:22 +00:00
Thies C. Arntzen
db3cf21e55
@- strpos() is now binary-safe. (Thies)
1999-12-06 17:37:59 +00:00
Zeev Suraski
02d76f8b86
This is no longer needed. Note that we'll always need to undefine YYSTYPE, since
...
the template bison generated .h file defines it if it's not already defined.
1999-12-06 15:34:05 +00:00
Thies C. Arntzen
5201f90588
removed unneded CLS_FETCH()
1999-12-06 13:08:16 +00:00
Sam Ruby
7ae5d271b6
build error: wrong num parms to date_parse
1999-12-06 05:28:26 +00:00
Sascha Schumann
4a60eed469
Fix some warnings
1999-12-05 16:25:32 +00:00
Rasmus Lerdorf
dfd0f8824c
More maintainer-mode cleanups
1999-12-05 14:16:37 +00:00
Rasmus Lerdorf
ca362445c4
Fix a maintainer-mode warning
1999-12-05 13:41:42 +00:00
Stig Bakken
ae1b7bf4b8
@Fix warnings compiling in maintainer mode. (Stig)
...
Fix warnings compiling in maintainer mode.
Install DB/common.php and DB/mysql.php on "make install".
# We still have a warning from http_config.h:97. Rasmus? :-)
1999-12-05 10:29:06 +00:00
Stig Bakken
0dd9658485
#if -> #ifdef change for HAVE_LIBDL (to be consistent with the same symbol
...
in libzend).
1999-12-04 20:55:33 +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
b978a64ebb
Check for htonl in libsocket (sol251), and move inet_aton check in libbind to configure.in, so that our later AC_CHECK_FUNCS(inet_aton) will find inet_aton in libbind (if it is there).
1999-12-04 13:16:04 +00:00
Sam Ruby
70b97864f8
windows build errors
1999-12-03 20:08:24 +00:00
David Hedbor
b40afedd7e
Added credit notes for Roxen SAPI module
1999-12-03 17:10:18 +00:00
Sascha Schumann
7c209d774c
Use socklen_t where appropiate
1999-12-03 14:57:29 +00:00
Stig Bakken
a8f71d621f
Add configure command to phpinfo() output (Stig)
1999-12-03 13:31:41 +00:00
Stig Bakken
2467dd6d05
@Fix some warnings when compiling in maintainer-mode (Stig)
...
@Made mysql and gd work as shared extensions again (Stig)
- Fixed some warnings in maintainer-mode.
- Made mysql and gd work as shared extensions again by defining
COMPILE_DL if PIC is defined.
# We need a better solution for building .so extensions than this
# PIC/COMPILE_DL hack!
1999-12-01 22:59:45 +00:00
Zeev Suraski
15d47e551a
Test commit, ignore
1999-12-01 21:30:45 +00:00
Zeev Suraski
3467337217
@- Made the GET/POST/Cookie and their HTTP_*_VARS[] counterparts be references
...
@ to each other (Zeev)
1999-12-01 21:29:09 +00:00
Zeev Suraski
d6fd485692
@- Make the global GET/POST/Cookie variables and their $HTTP_*_VARS[] counterparts
...
@ be references to each other (Zeev)
1999-12-01 20:42:56 +00:00
Sascha Schumann
3b515617a4
Make array.c thread-safe
1999-12-01 17:21:52 +00:00
Sascha Schumann
94c36e8846
Make fsock module thread-safe
1999-12-01 17:07:25 +00:00
Sam Ruby
933c3121c5
libzend/zend_compile.h's #define YYSTYPE causes parsedate to barf on Windows
1999-12-01 14:24:45 +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
Sam Ruby
fd9265362c
Initial alpha-level of sapi/servlet. See README for details.
1999-11-29 15:36:25 +00:00
Sam Ruby
0383909477
Use thread-safe versions of localtime and gmtime on Win32 too
1999-11-29 14:04:16 +00:00
Andi Gutmans
0ab2c37540
- Add OLS_C so that we can call php_output_init_globals() with it.
1999-11-28 20:38:44 +00:00
Rasmus Lerdorf
7cefad61ed
# check link() as well
1999-11-28 16:35:26 +00:00
Rasmus Lerdorf
6132f85c8d
(symlink) Disable symlinks to urls
...
@- Disable symlinks to urls
1999-11-28 16:23:30 +00:00
Sascha Schumann
6216edda44
Make basic/string functions thread-safe
1999-11-28 00:31:02 +00:00
Sascha Schumann
8573448db2
one tmbuf is enough
1999-11-27 21:18:01 +00:00
Jouni Ahto
3e8303abf0
Use thread-safe versions of localtime and gmtime
1999-11-27 20:51:17 +00:00
Sascha Schumann
b6e6dddc30
Only compile the scanner, if trans_sid is enabled
1999-11-27 16:15:35 +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
Sascha Schumann
f0187ef3c9
Use php_init_output_globals() also in non-ZTS mode
1999-11-26 18:34:27 +00:00
Sascha Schumann
1c6173619e
Use thread-safe versions of localtime and gmtime
1999-11-26 16:29:00 +00:00
Zeev Suraski
061cfea2ac
*** empty log message ***
1999-11-26 13:56:33 +00:00
Sascha Schumann
38819040b6
Replace strtok with strtok_r
1999-11-26 13:34:31 +00:00
Sascha Schumann
d462115341
Killing some unused variable warnings
1999-11-24 17:56:31 +00:00
Evan Klinger
18fb96efb4
Freeing the memory would be a good idea...
1999-11-24 06:16:37 +00:00
Evan Klinger
633d18de0f
Can't forget fd_isset()
1999-11-24 03:47:58 +00:00
Evan Klinger
769e25e168
First attempt at fd_set() and select()
...
# Please test thoroughly
1999-11-24 03:05:10 +00:00
Zeev Suraski
db0fcc6d11
Use the unified notation...
1999-11-23 22:10:44 +00:00
Zeev Suraski
e9742f5458
Cosmetic changes
1999-11-23 21:08:51 +00:00
Evan Klinger
42f8f2516d
Convert to Ex API
...
# If someone could please check these I'd appreciate it
1999-11-23 06:46:40 +00:00
Sam Ruby
5385610450
errors during startup trap server
1999-11-23 03:10:46 +00:00
Zeev Suraski
9820dd0927
Fixed a leak when using automatic output buffering
...
@ Fixed a leak when using automatic output buffering (Zeev)
1999-11-22 20:58:56 +00:00
Frank M. Kromann
8aed1627c0
add MS SQL module to credit info
1999-11-22 19:10:14 +00:00
Evan Klinger
be6dde2639
Optimize a tiny bit
1999-11-22 02:38:00 +00:00
Sascha Schumann
11030ee410
(PHP urldecode) Fix for #2788 , function changed parameter in place
1999-11-21 20:08:43 +00:00
Thies C. Arntzen
5cc10ecec2
@- Fixed float-compare in min(),max(),a[r]sort(),[r]sort(). (Thies)
...
convert_to_long() after compare_function() destroys float-compares!
1999-11-21 17:13:39 +00:00
Egon Schmid
0929985414
Maybe later on today. Must buy some beer first.
1999-11-21 14:06:30 +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
Thies C. Arntzen
2451ff5368
@- Implemented array_flip() function. Returns input-array with key, value
...
@ flipped. (Thies)
(PHP array_flip) new function. no clash detection, only works for IS_STRING and IS_LONG datatypes in src-array.
1999-11-21 12:37:53 +00:00
Thies C. Arntzen
ee1380e6b0
-renamed some macros
...
-return_value_used now used in a few more functions
1999-11-21 12:13:44 +00:00
Thies C. Arntzen
9788129e0e
(PHP strtr) little smarter
1999-11-21 12:05:39 +00:00
Andrei Zmievski
90ecf41b19
(PHP substr_replace) Changed the order of the arguments.
1999-11-20 22:09:27 +00:00
Thies C. Arntzen
2013026c14
@- Implemented 2-Arg version of strtr($str,$translation_array). This can be used
...
@ to revert what htmlspecialchars() did. (Thies)
(PHP strtr) new 2-Arg version.
1999-11-20 15:53:18 +00:00
Andi Gutmans
3bffcbef5b
- Add array.c to the Win32 project
1999-11-19 15:06:57 +00:00
Sam Ruby
560c0c4308
arg! alphabetize correctly!
1999-11-18 03:03:24 +00:00
Sam Ruby
fd41750d87
add Java module to credit info
1999-11-18 02:40:52 +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
61142e4341
Just some rearranging.
1999-11-16 20:14:55 +00:00
Andi Gutmans
9e14736315
- Change used_return_value to return_value_used
1999-11-16 19:12:29 +00:00
Andi Gutmans
7239aad9c4
- Initial support for Thies' idea of passing functions a flag telling them
...
they don't need to return a value. Adjusted reset() to work with this.
It is a bit problematic because if internal functions don't look at the
flag and still return a value orginally this leaked. So I free the value
in any case, which kind of makes the speed gain a bit smaller
1999-11-16 18:47:47 +00:00
Thies C. Arntzen
2b08dfec28
(PHP k[r]sort) now use compare_function from libzend to be consistent with the language-core.
1999-11-14 19:59:52 +00:00
Thies C. Arntzen
4127b34a0a
@- ucfirst()/ucwords() no longer modify arg1. (Thies)
...
(PHP ucfirst,ucwords) no longer modify arg1
1999-11-14 17:20:56 +00:00
Thies C. Arntzen
f2b0c70512
@- Fixed strtr() not to modify arg1. (Thies)
...
(PHP strtr) no longer modifies arg1.
1999-11-14 15:34:50 +00:00
Stig Bakken
5f8f410e51
@Added tmpfile() function (Stig)
...
Removed the mkstemp stuff and added tmpfile() function instead.
1999-11-14 11:05:37 +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
Sascha Schumann
bcb2214e99
Improve regex library selection. It lets user specify whether they want
...
system, apache, or php's regex library by using the --with-regex option.
"php" is the default; if you use --with-apache in combination with
Apache 1.3.x, the default is "apache".
1999-11-13 16:51:33 +00:00
Sascha Schumann
117ebf3ca6
- remove extra CPPFLAGS from top-level Makefile
...
- HSREGEX defaults to what the user wants, but can be changed now internally
1999-11-13 13:27:49 +00:00
Sascha Schumann
3dc7757a99
Remove the extra INCLUDES line from most automake Mafiles. This is not
...
necessary, because we can change the value of INCLUDES globally in one
place (configure.in).
Also add two defines in thread-safe mode
(_REENTRANT and POSIX_PTHREAD_SEMANTICS)
1999-11-13 12:41:09 +00:00
Sascha Schumann
ceae3847b8
Enable selective regex library compilation.
1999-11-12 20:56:30 +00:00
Sascha Schumann
0c2e3e4e7d
Include proper header files (replacement functions were not used).
1999-11-09 13:57:11 +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
Thies C. Arntzen
c6b05b2e6b
(PHP var_dump, serialize) now use php.ini's precision size when displying/serializing doubles
...
@- serialize() and var_dump() now honor the precision as set in php.ini
@ for doubles. (Thies)
1999-11-06 08:16:25 +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
Sascha Schumann
358af8b9eb
Add <FORM ACTION=...> tag
1999-11-02 18:35:59 +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
Rasmus Lerdorf
cf0868fec8
Clean up regex header file mess. php.h now explicitly includes php_regex.h
...
and php_regex.h figures out which regex header files to include and
defines symbols that prevents other stuff from including the wrong versions
of regex header files.
1999-10-30 14:22:10 +00:00
Rasmus Lerdorf
f160ee8782
Kill the regex header file warnings
1999-10-29 17:33:19 +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
Thies C. Arntzen
6b69ebf2b8
eliminated warinigs
1999-10-26 20:09:59 +00:00
Andrei Zmievski
21ce8b7c64
(PHP array_map) Away with it.
1999-10-26 19:57:10 +00:00
Thies C. Arntzen
31b1a8fc7f
kill warning
1999-10-24 18:16:16 +00:00
Thies C. Arntzen
6581d11cea
folding fix (xemacs 21 loads the file again;-)
1999-10-24 18:15:42 +00:00
Thies C. Arntzen
3e307aacc4
unserialize no longer complaints about unserializing empty-strings (started that just a few days ago)
1999-10-22 06:59:05 +00:00
Sascha Schumann
e9fc8bb300
Add <AREA HREF=...
1999-10-21 20:22:12 +00:00
Andi Gutmans
5212b2fe5b
- Make CVS compile on Win32.
...
- Rename php3_COM.h -> php_COM.h
1999-10-20 18:09:44 +00:00
Thies C. Arntzen
33ebd52387
(PHP getcwd()) added, needs to porting to Win32
...
@- added getcwd() function. (Thies)
# as we do have chdir() now we have getcwd() - i think we *should* restore the
# working directory in RSHUTDOWN!
1999-10-20 16:17:30 +00:00
Sascha Schumann
df6d06def4
(_display_module_info): Add anchor for module names
1999-10-20 16:16:58 +00:00
Thies C. Arntzen
41b87a238e
(PHP var_dump, serialize) fixed mem_leak.
1999-10-20 14:34:16 +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
Thies C. Arntzen
578c6035c8
(parse_url) fix for #2569 : parse_url('-') crashes
...
@- Fixed parse_url('-') crash. (Thies)
1999-10-19 11:02:05 +00:00
Egon Schmid
4fe14a780c
More forgotten prototypes.
1999-10-18 20:00:42 +00:00
Thies C. Arntzen
4f013f8e2d
@- unserialize() now gives a notice when passed invalid data. (Thies)
1999-10-18 17:46:33 +00:00
Thies C. Arntzen
cf1134787a
(PHP unserialize) - fixed mem-leak.
1999-10-18 15:03:29 +00:00
Egon Schmid
515206ec4e
Looks better, but isn't wrong
1999-10-17 08:07:50 +00:00
Egon Schmid
6025dd0bda
One typo corrected.
1999-10-17 07:38:35 +00:00
Andrei Zmievski
9e0017536d
_php3/_php3i -> php rename
1999-10-16 16:35:20 +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
e74d81f2ed
*** empty log message ***
1999-10-15 22:04:59 +00:00
Andrei Zmievski
0a829ab104
(PHP array_map) Temporarily #if 0 this.
1999-10-15 21:24:15 +00:00
Andrei Zmievski
22fb5f281a
Renamed a couple of functions to have proper php_ prefix.
1999-10-15 20:04:31 +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
Thies C. Arntzen
b5c3c7bfc9
files are now resources, file.c is thread-safe, the le_ vars are no longer shared,
...
but they are accessible thru "php_file_le_socket(), php_file_le_uploads()..."
i also updated the ftp, pdf and file-upload stuff to match the new requirements.
@- Cleaned up File-Module (Thies)
1999-10-15 15:22:25 +00:00
Andrei Zmievski
d69d118cbd
(PHP implode): Properly separate zval for another case.
1999-10-15 14:53:56 +00:00
Zeev Suraski
231fe2e1aa
That should do the trick - fix implode() not to modify its arguments
1999-10-15 14:45:54 +00:00
Andi Gutmans
4a8cac0878
- Converted math.c to use new convert_to_number_ex() macro.
1999-10-15 06:31:40 +00:00
Thies C. Arntzen
e2d66a6d28
new api fo dl() - renamed php3_dl to php_dl (added compat header)
1999-10-13 19:55:25 +00:00
Thies C. Arntzen
f5fa29184c
(PHP: htmlspecialchars, htmlentities): new zend-api for html-function (not worth mentioning in NEWS)
1999-10-13 19:51:11 +00:00
Thies C. Arntzen
8bafcd3aa7
@- Upgraded math-funtions to use new Zend function API (Thies)
1999-10-13 19:43:36 +00:00
Thies C. Arntzen
e6ffafa264
(shell_exec) use pclose for FILE* that has been opened via popen!
...
@- Fixed zombie problem in shell_exec() and $a = `some_command`
@ constructs. (Thies)
1999-10-13 14:01:47 +00:00
Thies C. Arntzen
0cc1641447
starting to clean-up/new API'ize and resourcify the file-stuff - nothing happened yet - just renaming things around.
1999-10-12 18:50:05 +00:00
Andrei Zmievski
9e773dfde2
Modified sorting functions to use updated zend_hash() prototype.
1999-10-11 21:42:42 +00:00
Jouni Ahto
379889339f
(PHP gmmktime) Should now give right values. Note that there was never need for
...
the acrobacy adjusting the time for GMT. mktime() fills
tm_gmtoff with just the right offset to add.
@- Fixed gmmktime() so that the following should always be true:
gmmktime([args]) == mktime([args]) + date('Z', mktime([args])) (Jouni)
# Heh, conforming to the rules anyway...
1999-10-08 03:08:44 +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
Andrei Zmievski
8959144837
Move random functions related defines into its own header file.
1999-10-06 16:34:36 +00:00
Thies C. Arntzen
657edcd50e
- replaced most getParamters against getParamtersEx calls
...
- removed ParamterPassedByReference where appropiate
1999-10-06 12:54:45 +00:00
Uwe Steinmann
8c473e1f47
- support for mimetype application/vnd.fdf needed by fdf module
...
(only active if fdf support is compiled in)
1999-10-06 05:26:25 +00:00
Sascha Schumann
d71eb7bbe6
Fix typo (xml_globals => dir_globals)
1999-10-05 16:18:40 +00:00
Thies C. Arntzen
35e7bcbb9d
dir modules is now resourcified & thread-safe!
1999-10-05 14:36:00 +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
Sascha Schumann
232afa4816
* archive-based convenience libraries completely replaced
...
with libtool components
* SAPI targets can enable thread-safe mode and define
shared/static/program build target
* all configure scripts use the same config.cache
* phplibdir is $(top_builddir)/modules to avoid
permission problems
* sapi/*/Makefile.inc are gone
* runpath handling cleaned up
* top-level Makefile.in obsoleted through Makefile.am
* --enable-versioning uses libtool's cleaner and more
portable -export-symbols feature
1999-10-04 15:18:26 +00:00
Thies C. Arntzen
008810dc29
ereg now returns a continious array 0..9 again - empty values are returned as false.
...
i think this is *more* compatible with PHP3 - unless anybody really dislikes it i'd prefer it like this.
1999-10-04 13:04:32 +00:00
Andrei Zmievski
23e8d1762d
Added array_reverse() function.
1999-10-01 17:36:54 +00:00
Andrei Zmievski
a92fb5fe3d
rename.
1999-10-01 14:54:55 +00:00
Andrei Zmievski
97f105e450
Fix nl2br crash.
1999-09-30 20:03:32 +00:00
Andrey Hristov
2fa5e6dd6a
Fix for my fix.
1999-09-29 14:25:40 +00:00
Andi Gutmans
cf6c92949c
- Get rid of warning
1999-09-28 17:37:06 +00:00
Sascha Schumann
9442b13939
Make an extra copy of input parameter.
1999-09-27 18:00:30 +00:00
Andrey Hristov
7665e9ef27
Fix for bug #2199 . Redirect was returning http:// which resulted in a crash.
1999-09-27 15:17:28 +00:00
Sascha Schumann
dd7b4680da
Add entry for AOLserver.
1999-09-25 15:41:51 +00:00
Sascha Schumann
00b2df7b8f
New Zend API
1999-09-25 12:09:50 +00:00
Sascha Schumann
9d1c26481a
Use new Zend API
1999-09-25 11:55:42 +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
Sascha Schumann
7a1fff1441
Use new Zend API.
1999-09-24 19:35:25 +00:00
Andrey Hristov
54fed6c652
Extended var_dump to handle IS_RESOURCE somewhat.
1999-09-24 18:57:02 +00:00
Thies C. Arntzen
c626d9e47b
updated XML (only partly tested)
1999-09-24 18:02:58 +00:00
Stig Bakken
a4bc9478f8
kill another warning
1999-09-24 15:34:54 +00:00
Stig Bakken
63b101f36d
kill warning
1999-09-24 15:34:30 +00:00
Sascha Schumann
de8120f5d0
This version is finally the standard one. The last one was created
...
using the 'nested ifs mode' which seems to be the source of the problem.
1999-09-23 14:53:39 +00:00
Sascha Schumann
ba8b703ba1
re2c's bit vectors appear to be not binary clean. Revert to
...
standard mode for the moment.
1999-09-23 14:09:42 +00:00
Andi Gutmans
7e5ef04b13
- Get rid of warning on win32, non-threadsafe mode.
1999-09-22 05:26:22 +00:00
Rasmus Lerdorf
1e57766b11
Slightly redundant to check for crypt() here again, but the TRY_RUN stuff
...
needs it defined in the same m4 file or it won't work, and it will just
get pulled out of the cache anyway, so it isn't a big deal.
1999-09-21 20:10:53 +00:00
Rasmus Lerdorf
cd0957112b
fgetss/gzgetss fixes
1999-09-21 17:50:51 +00:00
Andrey Hristov
53fb0ea075
A couple of fixes.
1999-09-21 17:06:30 +00:00
Sascha Schumann
8771472210
AC_CRYPT_CAP depends on symbol checks performed later.
1999-09-21 15:00:22 +00:00
Thies C. Arntzen
8638a61df9
added krsort() function
1999-09-21 14:36:41 +00:00
Sascha Schumann
3f684e77a7
Continue, if re2c is not available.
...
Using the ".new" suffix, we prevent the shell from zeroing the file.
1999-09-21 12:24:41 +00:00
Sascha Schumann
240d17f12f
Fix typo.
...
catched by: ssb
1999-09-21 08:41:31 +00:00