Sascha Schumann
ef42a25b42
Fix a serious long-standing bug which deleted the shared memory segment
...
when an Apache children died.
Dynamically resize hash-table.
The hash key is now stored as part of the hash entry structure which
saves a mm_malloc.
ps_sd_new has been restructured to avoid code duplication.
A bug concerning moving existing entries to the top of a linked list
has been fixed.
2001-07-19 04:16:54 +00:00
Sascha Schumann
664df24d11
Fix GC bug which did not increment the proper variable.
...
Fix warning regarding the initial hash value.
Use php_uint32 everywhere.
Speedup linked-list traversal by using the hash value.
Degrade linked-list to singledly linked-list.
Allocate a new shared memory buffer, if the data does not fit into the
current one. Prior to this change, we always allocated a new buffer.
Fix debug prints to be compatible with non-GCC compilers.
NUL-terminate string return values.
2001-07-18 23:18:58 +00:00
Sascha Schumann
9576ab24dd
Instead of using the poor system rand() algorithm and the
...
system-time seed, rely on the long-living LCG to determine
whether to start the GC process.
2001-07-18 22:56:56 +00:00
Sascha Schumann
dcc60b7f4a
The lcg needs to operate on signed 32-bit integers, so use
...
the proper php_int32 types here.
2001-07-18 22:55:52 +00:00
Sascha Schumann
e8fe8f9d99
Provide typedefs for php_int32
2001-07-18 22:54:55 +00:00
Sascha Schumann
eef0dda4da
Retire old hash algorithm and use the FNV-1 algorithm.
2001-07-18 21:39:02 +00:00
Harald Radi
3110a58795
fixed a bug in 'case VT_DATE'
2001-07-18 19:56:18 +00:00
Stanislav Malyshev
f0c879bb26
Make variables receiving long be long
...
Fix binary (x,o,b) formats - they should not be signed
2001-07-18 16:48:52 +00:00
Stanislav Malyshev
e2a7a6b0f6
Prevent cURl from always outputting the header. Fix bug #12018
2001-07-18 10:47:54 +00:00
Jason Greene
6034e5161d
Forgotten Include.
...
This should fix the windows build (though I currently don't have a way to test it)
2001-07-17 16:56:51 +00:00
Joey Smith
5f2d12c3bc
Be consistent with hashed_details behavior.
2001-07-17 08:16:58 +00:00
Jason Greene
8eb5a4b856
@Added support for socket and popen file types to ftp_fput (Jason)
2001-07-17 05:53:03 +00:00
Stanislav Malyshev
cdf0532ad3
Make read always 0-terminate strings
2001-07-16 15:44:36 +00:00
Stanislav Malyshev
b028410760
Add credits to GMP
2001-07-16 12:45:36 +00:00
Joey Smith
f272469b4c
Close Bug #10235 .
...
This makes domxml_root() work again. It now works
equally as well as object method or a simple function.
2001-07-16 11:16:44 +00:00
Rasmus Lerdorf
721c562e2a
Fix a couple of build warnings
2001-07-16 04:31:13 +00:00
Zeev Suraski
2edcf835ed
Update cast
2001-07-15 22:49:25 +00:00
Zeev Suraski
0078ceec19
Fix an inline
2001-07-15 19:08:32 +00:00
Zeev Suraski
94f5950438
Get rid of var_uninit()
2001-07-15 19:03:04 +00:00
Zeev Suraski
85b4df53c0
Improved interactive mode - it is now available in all builds, without any significant slowdown
2001-07-15 14:08:58 +00:00
Zeev Suraski
4e1c65b42b
Fix an inline
2001-07-15 14:08:23 +00:00
Stig Venaas
eabe8fcf8d
Fixed memory leaks in ldap_get_entries() and ldap_get_dn() when using
...
RFC1823 API
# These leaks have always been there, will fix in PHP3
@- Fixed various memory leaks in the LDAP extension (Stig Venaas)
2001-07-15 11:12:28 +00:00
Andi Gutmans
fbc8f3f51d
- Faster without calling strlen()
2001-07-14 16:41:58 +00:00
Rasmus Lerdorf
8406c2d682
Fix for bug #11632
2001-07-14 15:08:36 +00:00
Wez Furlong
36e008ee66
Fix for bug #12065
...
# Was that it??
2001-07-14 12:59:46 +00:00
Thies C. Arntzen
3db0b1813a
clearify ocisetprefetch
2001-07-14 12:45:42 +00:00
Boian Bonev
e0b3fd8cd1
replaced add_index_string with add_next_index_string
...
made vpopmail_alias_get_all return sane result
2001-07-13 20:45:19 +00:00
James E. Flemer
771e3e498f
o Fixed Bug #12121 : chdir and safe_mode
...
- [ main/safe_mode.h ] added new checkuid mode:
CHECKUID_ALLOW_ONLY_FILE: skips directory check if file check
fails
- [ ext/standard/dir.c ] changed php_checkuid() to use
CHECKUID_ALLOW_ONLY_FILE instead of CHECKUID_ALLOW_ONLY_DIR
- [ main/safe_mode.c ] added code for new checkuid mode
o Fixed Bug #12119 : safe mode owner check can be bypassed with symlink
- [ main/safe_mode.c ] use VCWD_REALPATH to resolve destination
of symlink before trimming filename
o New Feature: safe_mode_include_dir (php.ini directive)
- Allows bypassing UID/GID checks when including files
from the directory in safe_mode_include_dir and its
subdirectories. (safe_mode must be on, directory must
also be in include_path or full path must be used when
including)
o Fixed Feature: safe_mode_gid (php.ini directive)
- Correctly check (and report) UID/GID bits on directories
o Changed include() fall back to scripts cwd implementation
- CWD added to the (local) search path in php_fopen_with_path()
instead of seperate case. [ main/fopen_wrappers.c ]
2001-07-13 18:21:21 +00:00
Rasmus Lerdorf
b9325a36a8
Fix for #11941
2001-07-13 17:13:00 +00:00
Rasmus Lerdorf
df965e200c
Add fdf_set_encoding()
2001-07-13 16:58:09 +00:00
Sterling Hughes
f00791ce24
add missing break statements.
2001-07-13 16:44:44 +00:00
Thies C. Arntzen
15f55b5e56
change test-name
2001-07-13 15:49:18 +00:00
Thies C. Arntzen
d30590369a
make sure all string from zlib are \0 terminated.
...
change one realloc to erealloc (though this code is never reached IMHO)
add regression tests
2001-07-13 15:48:37 +00:00
Thies C. Arntzen
11eca11dca
fixed #12091 . added \0 bytes at EOS in a few cases.
2001-07-13 15:19:17 +00:00
Thies C. Arntzen
ba17fadbfb
@ - Fixed crash in iptcparse() if the supplied data was bogus. (Thies)
2001-07-13 14:35:05 +00:00
Thies C. Arntzen
249c010d92
make regession test of session work without the ugly hack in session.c
...
and removed that ugly hack.
2001-07-13 10:32:37 +00:00
Rasmus Lerdorf
65c8679b26
Fix for bug #12081
...
@ - Fix return value for a failed snmpset() - now returns false (Rasmus)
2001-07-13 05:21:37 +00:00
Rasmus Lerdorf
60c8e4409f
Add port support to snmp functions
...
@ - Add hostname:port support to snmp functions
@ (nbougues@axialys.net , Rasmus)
2001-07-13 05:09:40 +00:00
Rui Hirokawa
86ae8add13
added an option to support utf-8 in pcre.
2001-07-13 03:37:18 +00:00
John Donagher
84cc39ea5f
Quote grep patterns to avoid shell interpretation
2001-07-13 01:46:31 +00:00
Frank M. Kromann
cbfe23b99b
Fixing bug when using select unique from <table>
...
The value was not returned to the script
2001-07-12 22:43:25 +00:00
Sascha Schumann
87d99aa93c
Allow extensions to define custom prealloc sizes
2001-07-11 23:13:55 +00:00
Sterling Hughes
fc729b7cd5
Herr sascha's reccomendation.
2001-07-11 23:03:24 +00:00
Sterling Hughes
f76c42688d
Return proper length, thanks for excellent reports by Colin.
2001-07-11 18:10:52 +00:00
Thies C. Arntzen
5676e5ad05
use ZVAL_* macros
2001-07-11 15:27:37 +00:00
Thies C. Arntzen
bbe83e4f29
gzencode() now zero-terminates its buffer.
2001-07-11 15:26:42 +00:00
Hartmut Holzgraefe
319149fd8b
workaround to make ext/session well behaved with 'make test' and E_ALL
2001-07-11 13:46:11 +00:00
Hartmut Holzgraefe
e15d0193d9
cleanup in preparation for session_readonly()
2001-07-11 13:27:27 +00:00
Thies C. Arntzen
0ef0f8e32b
ZVAL_BOOL(v,0) -> ZVAL_FALSE(v)
2001-07-11 12:42:25 +00:00
Stanislav Malyshev
adc98200d6
More correct pseudo-fix
...
# This is not really a fix. This thing is still broken. I will think on
# how to really fix it. Any suggestion is *welcome*.
2001-07-11 11:45:05 +00:00
Zeev Suraski
66d94bc655
Nuke zval_reset
2001-07-11 11:39:10 +00:00
Zeev Suraski
d70ce7be27
var_reset -> ZVAL_RESET
2001-07-11 09:39:09 +00:00
Shane Caraveo
ff4dfc56f2
prevent php from crashing when serializing circular data.
...
This script produced the crash.
<?
$hash["test_key"] = "test_value";
$hash["hash_key"] = &$hash;
echo serialize($hash);
?>
2001-07-11 05:57:18 +00:00
Andrei Zmievski
44de304a5f
Modified to work with the new parameter parsing API as a demonstration.
2001-07-11 03:58:51 +00:00
Sterling Hughes
dd3a7680ca
fix.
2001-07-11 01:06:09 +00:00
Frank M. Kromann
94e6db966b
changed return value from fbsql_query to be booloan
2001-07-10 23:39:39 +00:00
Frank M. Kromann
ad8150b3a9
Fixing return value from fbsql_query after a DELETE FROM with success.
2001-07-10 22:34:24 +00:00
Sterling Hughes
203ea6c51d
# I think i am quite stupid.
2001-07-10 20:31:49 +00:00
Sterling Hughes
5e4e376571
If the transfer fails, still free the buffer if it exists.
2001-07-10 20:09:56 +00:00
Zeev Suraski
4bbb8a001e
Fix a couple of buffer overflows in mcrypt.c
2001-07-10 12:57:28 +00:00
Rasmus Lerdorf
45d71e2951
Make range() function smarter
...
@ - Improve range() function to support range('a','z') and range(9,0)
@ types of ranges. (Rasmus)
2001-07-09 20:36:47 +00:00
Andrei Zmievski
f42519ffbd
*** empty log message ***
2001-07-09 18:54:59 +00:00
Thies C. Arntzen
9f3110ea32
fix newly introduced SEFAULT.
2001-07-09 18:01:18 +00:00
Sascha Schumann
aee2ff3ec9
__USE_GNU should not be defined by an application.
2001-07-09 17:44:07 +00:00
Rasmus Lerdorf
934e10c7dc
Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
...
a gid check instead of a uid check.
@ - Add getmygid() and safe_mode_gid ini directive to allow safe mode to do
@ a gid check instead of a uid check. (James E. Flemer, Rasmus)
2001-07-09 17:36:04 +00:00
Derick Rethans
9869ecc9b7
- Added php_escape_shell_arg to the header file
2001-07-09 17:02:50 +00:00
Thies C. Arntzen
61822fcd47
@ - assert() now accepts the array(&$obj,"methodname") syntax. (Thies)
...
+ some cleanups
2001-07-09 10:20:41 +00:00
Thies C. Arntzen
e7b01fc53c
added test for assert
2001-07-09 09:08:14 +00:00
Thies C. Arntzen
08546ef0e8
changed to use Z_* macros
2001-07-09 09:04:19 +00:00
Thies C. Arntzen
1be0975dff
added test for serialize
...
changed var.c to use Z_* macros
2001-07-09 09:03:06 +00:00
Thies C. Arntzen
6708768c07
xml_utf8_encode: make sure the returned data is zero-terminated
2001-07-09 06:49:34 +00:00
Thies C. Arntzen
1e3553bd42
use erealloc for zvals!
2001-07-09 06:48:15 +00:00
Sascha Schumann
28efce4019
Reset strtok_string, so that strtok can be used in all session handler
...
functions.
2001-07-08 23:28:48 +00:00
Shane Caraveo
fd2c27c061
Enable using an external mailer under windows.
...
1. this depends on the patch to fix tsrm I sent to dev
2. this provides backwards compatibility, as long as sendmail_path in the ini file is empty, the old internal mailer will be used, once sendmail_path is defined, the external sendmail program will be used.
I tested with indigomail from www.indigostar.com, which provides the same command line interface as sendmail no linux.
2001-07-08 22:30:11 +00:00
Sascha Schumann
69d129bdfb
Needed for the prototype of php_escape_shell_cmd().
2001-07-08 19:09:59 +00:00
Thies C. Arntzen
423613f4ee
@ - Make sure that OCI8 outbound variables are always zero-terminated. (Thies)
2001-07-08 12:37:08 +00:00
Joey Smith
cd9fe169e1
This should get xmldocfile() working again.
...
This should fix bugs:
11192, 10899
2001-07-08 00:54:25 +00:00
Jason Greene
be8b7f9981
Signal numbers are not uniform accross all platforms.
...
Modified test to use the constants unless a failure occurs.
2001-07-06 18:30:38 +00:00
Daniel Beulshausen
805c76f742
fix dsp (?)
2001-07-06 17:53:02 +00:00
Dan Kalowsky
eb7b11ce2e
Making --with-openlink work the same as --with-iodbc for it's eventual
...
disappearing act.
# As requested by the Openlink Software people
2001-07-06 14:30:34 +00:00
Rui Hirokawa
7dcb3cdfbd
fixed argument number in mb_send_mail().
2001-07-06 13:21:47 +00:00
Rui Hirokawa
659282bfbc
fixed argument number in mb_send_mail().
2001-07-06 13:19:36 +00:00
Sascha Schumann
dda5663549
Fix Unix build (AC_ADD_* -> PHP_ADD_*)
2001-07-06 11:51:11 +00:00
Daniel Beulshausen
0568236d13
fix win32 build
2001-07-06 09:51:03 +00:00
Jason Greene
14646bf08e
Fix proto's and some ws ugliness
2001-07-06 06:00:51 +00:00
Jason Greene
0bfa63490d
Added wait.h functionality to pcntl
...
Added tests for such functionality
Removed bogus files
2001-07-06 05:48:52 +00:00
Joey Smith
08d1178d6e
Be consistent across all cases.
2001-07-06 01:21:55 +00:00
Hartmut Holzgraefe
7b9b542af3
experimental db++ database support
2001-07-06 00:04:03 +00:00
Hartmut Holzgraefe
46265b64ce
preliminary documentation for db++ support in ext/dbplus
2001-07-05 23:58:53 +00:00
Sean Bright
9d05cba6b8
This should be lower-cased per the documentation and previous
...
implementation.
2001-07-05 23:29:11 +00:00
Jason Greene
2b8945965b
Check for getpgid (torben@php.net)
2001-07-05 22:01:42 +00:00
Wez Furlong
79ce305d1a
Made imagegammacorrect() work on true-color images.
...
Added support for new ImageStringFTEx function (due in GD 2.0.2).
2001-07-05 21:23:28 +00:00
Wez Furlong
8ca519ca88
Change a load of E_ERRORS into E_WARNINGs; it was being a bit too severe,
...
which meant that scripts could not identify (or even display) errors before
PHP bailed out.
2001-07-05 21:18:21 +00:00
Frank M. Kromann
37cd3e026c
Optimizing the mssql_execute function.
2001-07-05 19:17:33 +00:00
Wez Furlong
4948cb1691
More ifdefs, just in case.
2001-07-05 10:53:15 +00:00
Wez Furlong
ca9c4b3753
Added loads of #ifdefs; should fix Bug #11889 .
2001-07-05 10:49:58 +00:00
Wez Furlong
9b889bef19
Added name for enum, hopefully fixing the win32 build.
2001-07-05 09:55:13 +00:00
Derick Rethans
832fe2e636
- Fix for the first part of Bug #11890
...
@- Fixed a bug that allowed users to spawn processes while using the 5th
@ parameter to mail(). (Derick)
2001-07-05 08:47:37 +00:00
Jason Greene
e48bc17c58
Fix build on linux
...
Heads up Wez
2001-07-05 07:12:28 +00:00
Jason Greene
d4391dcdd8
no need to implement these functions, already in posix module
2001-07-04 22:02:00 +00:00