Sascha Schumann
7e686b1b95
Timestamp commit. I do consider removing the rule from Makefile.am
1999-09-20 21:17:26 +00:00
Egon Schmid
565c322797
Here was also something missing.
1999-09-20 20:05:26 +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
Rasmus Lerdorf
c0dcedcafc
Added optional allowable_tags arguments to strip_tags() and fgetss() to
...
allow you to specify a string of tags that are not to be stripped
Could have used flex for this, and Andrew sent me a flex file to do this,
but I could do the same thing with only minor additions to the existing
state machine and the resulting code is much smaller and tighter.
1999-09-20 15:50:56 +00:00
Andrey Hristov
f84ba1b039
- Upgraded var_dump() to take multiple arguments
...
- php3api_ is changed to php_
1999-09-20 14:14:26 +00:00
Stig Bakken
fffbcf5297
logic fix
1999-09-20 13:11:34 +00:00
Thies C. Arntzen
4bb329eafb
added array_count_values function.
1999-09-20 10:09:57 +00:00
Thies C. Arntzen
22d6f64f54
new API for var_dump
1999-09-20 09:34:39 +00:00
Sascha Schumann
39dbe1d41b
Aline escape signs in macro definitions.
1999-09-18 12:16:16 +00:00
Thies C. Arntzen
ab185b11b5
SUN c89 doesn't like } direct after a label;-(
1999-09-17 12:32:18 +00:00
Zeev Suraski
98d95dd88e
- Added support for unknown POST content types (Zeev)
...
- Introduce the convert_to_*_ex() API in strlen()
1999-09-16 23:18:15 +00:00
Zeev Suraski
13e67642fa
Generalize SAPI a bit
1999-09-16 22:15:43 +00:00
Thies C. Arntzen
6ecd417b34
php4 now deserialized php3 objects correctly!
...
php3 will ignore objects serialized by php4 (that's the price we have to pay!)
small fix in deserializing objects with static initializers (thanx boris)
1999-09-16 08:05:17 +00:00
Thies C. Arntzen
de73bd0123
when unserializing classes:
...
if the class is not known the standard class (no methods) will be used.
if the class is known - the created object will functional again!
1999-09-15 15:03:06 +00:00
Andrey Hristov
b287aa2cf4
Fixed printf format.
1999-09-15 13:37:11 +00:00
Thies C. Arntzen
e7ad3bbec2
use new API in var.c
1999-09-15 11:42:28 +00:00
Thies C. Arntzen
21a0c57cb1
i love id-strings
1999-09-15 11:09:32 +00:00
Thies C. Arntzen
3491633aa0
made serialize/unserialize work with classes! (also made the code "shorter")
...
CHANGES:
- the serialized string now also contains the class name (was not available in PHP3)!
- when unserializing php will create a fully working object of that class again
therby the class has to be defined when unserializing - else you get a warning!
1999-09-15 11:08:25 +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
100148168a
- Thread-unsafe win32 compiles again
...
- Some strlcpy changes including one bug fix.
1999-09-15 05:42:36 +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
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