Commit Graph

4916 Commits

Author SHA1 Message Date
Sascha Schumann
00596b414e Get rid of memchr 2001-07-25 19:02:13 +00:00
Nikos Mavroyanopoulos
81dd2af465 updated ovrimos driver 2001-07-25 13:30:36 +00:00
Frank M. Kromann
612b3666a9 Add extra check on Delete statements 2001-07-24 18:24:10 +00:00
Harald Radi
050d346cd2 removed duplicate code and changed
code slightly to be compatible with broken
com implementations
2001-07-24 10:42:29 +00:00
Andi Gutmans
afaa0085bb - MSHUTDOWN needs to return SUCCESS/FAILURE 2001-07-24 03:52:16 +00:00
Thies C. Arntzen
6c2cfdea43 indention 2001-07-23 17:50:06 +00:00
Thies C. Arntzen
b660a9f553 fix newly introduced mem-leak in assert-module 2001-07-23 16:13:34 +00:00
Paul Moosman
22a8e9536a I added code to up the reference count of the database connection
reference. This change fixes bug #11489 in php version 4.0.6.
I derived this fix from the my_sql module.
2001-07-23 16:10:10 +00:00
Hartmut Holzgraefe
d3fdc92ff5 these tow fail with "Constant sid already defined" i
too if E_NOTICE error reporting is active
2001-07-22 21:46:39 +00:00
Sascha Schumann
8492ece5f6 While researching a crash-bug in mail(), I found these two goldies.
Replace php_escape_shell_(arg|cmd) with straight-forward implementations.
2001-07-22 21:32:55 +00:00
Rasmus Lerdorf
cc44119bf6 Left-over outdated comment 2001-07-21 15:51:40 +00:00
Zeev Suraski
336004f4bc Improved bailout mechanism, supports nested bailouts a-la try..catch
Note:  You may *not* return directly from a catch block
2001-07-21 14:27:56 +00:00
Zeev Suraski
20d53346ce Remove redundant code 2001-07-21 12:43:23 +00:00
Sascha Schumann
09ce807bf1 Drop memchr() in php_memnstr in favor of manual scanning. This reduces
the complexity of the function and is about 20% faster on Linux/x86.
2001-07-21 03:26:31 +00:00
Zeev Suraski
38e5a2077d Clarify and optimize 2001-07-21 01:15:18 +00:00
Rasmus Lerdorf
bf513871bc Fix more crashes related to this switch to z_value 2001-07-21 00:14:14 +00:00
Sascha Schumann
b79aa095f5 Fix last two instances of using ext/standard/php_output.h 2001-07-20 19:42:26 +00:00
Thies C. Arntzen
0453eff2b8 fix include 2001-07-20 19:37:19 +00:00
Zeev Suraski
11c2acc34a Retain downwards compatibility - cool idea Jon :) 2001-07-20 17:10:04 +00:00
Zeev Suraski
ef9504cafc Fix UNIX build 2001-07-20 15:06:51 +00:00
Zeev Suraski
6f297a370a Fix Windows build 2001-07-20 14:40:30 +00:00
Zeev Suraski
13ac04b8e5 Avoid getting bailouts on text output during shutdown. Text output is now
'officially' disabled during shutdown (this doesn't change the Apache module
behavior, but may change behavior of other server modules, in which it was
possible to emit output during shutdown;  I think it's a good step towards
consistency, though)
2001-07-20 13:59:00 +00:00
Daniel Beulshausen
aa032e2e4c fix font handling in vdir mode 2001-07-20 11:25:13 +00:00
Sascha Schumann
4ebcdd9929 Add optional support for using boyer-moore to str_replace. 2001-07-20 01:22:29 +00:00
Joey Smith
c2e983709a I just got annoyed by this, eventually. :) 2001-07-19 23:36:37 +00:00
Marc Boeren
2a661c6114 Added the error-message functionality (new in odbc module) (Mc) 2001-07-19 15:45:56 +00:00
Marc Boeren
e8bcbacb3e changed implementation of creating reference to a value by columnname (Mc)
added a test for changing the referenced value (Mc)
2001-07-19 15:44:58 +00:00
Adam Dickmeiss
863062a8be Function yaz_record handles MARC records that have identifers in 00X. 2001-07-19 13:27:58 +00:00
Stanislav Malyshev
dfe15ad070 Fix warnings 2001-07-19 08:12:12 +00:00
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
Jason Greene
7f2fa9fea7 Actually check for the needed system calls.
Currently require sigaction, fork, waitpit.
2001-07-04 21:51:22 +00:00
Sascha Schumann
ef13ab5750 Improve url scanner speed (up to 40% for large chunks of data)
and handle some corner cases better.  The scanner has been changed
to the format as proposed in "RE2C - A More Versatile Scanner Generator"
by Cowan et al.
2001-07-04 15:30:21 +00:00
Nikos Mavroyanopoulos
98b1d4bbf4 fixes in source documentation 2001-07-04 13:33:11 +00:00
Wez Furlong
a07a26888e Added a couple of new functions to "modularize" working with calendars.
Added a few constants for the existing functions, and tidied them up a bit.
2001-07-04 10:12:45 +00:00
Wez Furlong
f1364ebf3e (PHP nl_langinfo) Added function when provided by OS
(PHP htmlentities, htmlspecialchars) Uses nl_langinfo to determine charset
@- Added nl_langinfo() (when OS provides it) that returns locale
   information. (Wez Furlong)
# There are a lot of constants used by nl_langinfo; should we do something
# along the lines of what we do for syslog?
2001-07-04 10:10:30 +00:00
foobar
7adb7db038 This works better. 2001-07-03 21:09:16 +00:00
Frank M. Kromann
6c20b4de53 This module is no longer experimental 2001-07-03 18:45:11 +00:00
Rui Hirokawa
f90580caf1 fixed an argument in example of ext/xslt. 2001-07-03 16:59:46 +00:00
Rainer Schaaf
b18dd1bab3 - fixed bug in pdf_open_image_file when using images as masks.
- clean up some comments
2001-07-03 14:35:08 +00:00
Sterling Hughes
6809bcf2b5 Small fixes. 2001-07-03 12:16:03 +00:00
Zeev Suraski
551f1831a7 Fix a major thread safety bug in the output mechanism
@- Fixed a major memory corruption bug in the thread safe version (Zeev)
2001-07-02 18:17:10 +00:00
foobar
610ebfe3de Missing constant. 2001-07-02 12:49:21 +00:00
Sterling Hughes
4dc55c14a4 Fix possible corruption problem with curl_errno() and curl_error() 2001-07-02 12:08:21 +00:00
Sterling Hughes
d097b0ed86 Fix mispell. 2001-07-02 11:56:08 +00:00
Derick Rethans
91424b2b91 - Fixed proto's (Patch by Zak) 2001-07-02 11:11:58 +00:00
Rui Hirokawa
30ca718935 fixed a link problem of shared extension module in ext/xslt. 2001-07-02 01:55:43 +00:00
Daniel Beulshausen
4aa6ae493e PHPAPI-ize php_var_* functions
# need this for shm*
2001-07-01 20:18:51 +00:00
Sean Bright
55fecbab76 Remove unused variable. 2001-07-01 14:07:44 +00:00
Sascha Schumann
da3b899dd8 mhash_keygen_s2k() overwrote the limits of a statically allocated buffer
for long salts.  We truncate the salt now appropiately.

PR: #11817
2001-07-01 11:20:56 +00:00
Sean Bright
1b0356e0f7 Fix for bug #11796. Also, fixed a problem in get_meta_tags that required
NAME and CONTENT to be in that order.  Meta tags with no CONTENT attribute
are now added to the array as empty strings.  Meta tags with no NAME
attribute are ignored.
2001-06-30 20:07:12 +00:00
foobar
61b28c586a If no backend is specified, bail out. 2001-06-30 00:48:35 +00:00
foobar
c493c298d4 Now all these options should behave the same. 2001-06-30 00:38:06 +00:00
Hartmut Holzgraefe
7f08918b87 suppress sending of cookies if session id already came
from a non-cookie source
2001-06-29 05:27:57 +00:00
foobar
bc3482d65f Fixed bug: #11728. Error message was cleared before outputted in pg_pconnect() 2001-06-29 03:12:06 +00:00
Derick Rethans
3b66803260 - Fix for bug #11775: Typo in cpdf.c 2001-06-28 21:59:26 +00:00
Harald Radi
851d401e23 changed CLSIDfromProgId to CLSIDfromString 2001-06-28 21:26:20 +00:00
Frank M. Kromann
a98efcda76 Adding new function to convert from binary to GUID format 2001-06-28 16:59:17 +00:00
foobar
5884ff3412 let this be more userfriendly. 2001-06-28 15:16:28 +00:00
Sterling Hughes
540391326c # leftovers 2001-06-26 22:49:54 +00:00
Sterling Hughes
abd3b1543c Making logging optional. 2001-06-26 22:48:44 +00:00
Joey Smith
eaaf36b65e Make info look more like mysql's output. 2001-06-26 21:00:13 +00:00
Joey Smith
d4881848a3 Added charset support. 2001-06-26 20:56:03 +00:00
Zeev Suraski
f35b85b4c1 Fix bug #11678 2001-06-26 18:30:31 +00:00
Sterling Hughes
8133703841 special offer... 0 out a structure, and remove a crash bug...
# Offer only available between 6/30/2001 - 7/14/2001, Exclusively for
# cvs committers
2001-06-26 18:20:28 +00:00
Zeev Suraski
49d1e26143 Fix Win32 build 2001-06-26 13:33:24 +00:00
foobar
0b7bf00cfc Simplify this and fix bug: #11654 2001-06-26 11:35:34 +00:00
foobar
531ec3623f No need for this constant. 2001-06-26 10:39:15 +00:00
foobar
0d3832ccdb Added an optional 2nd parameter 'readall' to read_exif_data. 2001-06-26 09:52:54 +00:00
foobar
9813454356 This test won't work without these libs. Also, it might fail for other
reasons too.
2001-06-26 05:50:42 +00:00
Jason Greene
8f1f79fa7b *BSD doesn't have SIGPOLL or SIGPWR 2001-06-26 04:54:47 +00:00
Sterling Hughes
c01ab20f01 Bunch of fixes, tested a bit, folks, please test with your scripts. changes
include nuking unnecessary extra copies, fixing handling of optional args,
adding an additional argument.

also, fix  socket_read() which used the php_read function by
default (by default, reading 4k would cause 4k calls to the read() function),
now it uses the system's built-in read() function, only uses php_read()
when its explicitly specified.
2001-06-26 04:19:39 +00:00
Jason Greene
333b1bf9c8 Fix casting wierdness that broke compiled code with Sun CC.
(Also easier to read)
2001-06-25 17:56:23 +00:00
Sterling Hughes
0216627522 @ Fixed a crash when using the CURLOPT_WRITEHEADER option. (Sterling)
# Folks please test, I've tested a limited amount of test cases, however,
# this change is far reaching, so I couldn't test all the necessary things
2001-06-25 15:14:20 +00:00
Sergey Kartashoff
0f3e5a3914 Security fix in Udm_Set_Agent_Param function. 2001-06-25 11:36:42 +00:00
foobar
9b131c2633 added missing include 2001-06-24 23:29:13 +00:00
Harald Radi
4a29944dac added verbose ini entry 2001-06-24 22:20:28 +00:00
foobar
2c95a1d690 The extension name seems to be usually totally lower-cased. 2001-06-24 22:18:51 +00:00
foobar
c72bac335d A little typo here.. :) 2001-06-24 22:00:45 +00:00
foobar
a8382659f9 added missing ending fold tag. 2001-06-24 21:58:47 +00:00
Harald Radi
7c95f0436f adapted to changes from com module 2001-06-24 21:20:23 +00:00
Harald Radi
22d42820b7 cast error 2001-06-24 21:19:49 +00:00
Sascha Schumann
5f51da8c58 Remove bogus use of volatile and add a note about using inet_ntop
instead.
2001-06-24 21:16:21 +00:00
Harald Radi
69abb74075 fixed bug that resource was freed twice 2001-06-24 21:10:08 +00:00
Harald Radi
750fee8fa0 cleanup 2001-06-24 21:09:32 +00:00
Harald Radi
3949658942 cleanup
added some macros
2001-06-24 21:09:17 +00:00
Sterling Hughes
35a816ce5f Hopefully fix leaks... 2001-06-24 17:50:16 +00:00
foobar
242b8af6aa fixed bug: #11641 2001-06-24 15:56:05 +00:00
foobar
315cfb2b4e This is better looking. Other options use the same. 2001-06-24 12:53:17 +00:00
Stig Venaas
4172edad96 Fixed memory leak in ldap_first_attribute(), ldap_next_attribute(),
ldap_get_attributes(), ldap_get_dn() and ldap_dn2ufn() when using post
RFC 1823 API. Still more leaks to fix.
2001-06-23 13:43:20 +00:00
foobar
087398621f fix build. 2001-06-23 11:26:24 +00:00
foobar
cc6a1b20fd Moved some messages to the end of configure process so they are easier
to notice.
2001-06-23 10:21:00 +00:00
Hartmut Holzgraefe
045acafc52 @added optional suffix removal parameter to basename() (Hartmut)
added optional suffix removal parameter to basename()
this makes it more simmilar to the basename command
2001-06-23 00:51:03 +00:00
foobar
d87e59a1a3 Make it possible to build this extension as shared module. 2001-06-22 15:52:25 +00:00
foobar
f61eac29ad Make it possible to build mysql extension as shared module. 2001-06-22 15:03:10 +00:00
Sergey Kartashoff
5d2d340af9 mnoGoSearch module test example updates 2001-06-22 08:54:31 +00:00
Sergey Kartashoff
bdf1db6bdb A new parameter UDM_PARAM_VARDIR has been added in
Udm_Set_Agent_Param function to support alternative search data directory.
This requires mnogoSearch 3.1.13 or later.
@- A new parameter UDM_PARAM_VARDIR has been added in
@  Udm_Set_Agent_Param function to support alternative search data directory.
@  This requires mnogoSearch 3.1.13 or later.
2001-06-22 08:43:24 +00:00
Sascha Schumann
6558ae6f21 dup fds before fdopen'ing them, so that people cannot deliberately
close stdio streams.

This needs to be tested on non-UNIX platforms.

PR: #11599, #8624
2001-06-22 07:07:48 +00:00
Thies C. Arntzen
bd4f32cf12 - fixed the reference in session thingie
- regression test checked (this time;-)
- added new regression test for references
- references _between_ session variables also work in when the session var
  replaces an already existing global var (this was a brain twister)
- saved one strlen call per session variable
- fixed one tiny leak
2001-06-21 18:46:26 +00:00
Sascha Schumann
d6d59a9ee5 1. st_blksize might be different for regular files and symlinks; hence
ignore differences in the twelfth element of the stat() array.

2. The 'test.file' is created by the script, thus the owner of the file
   is the user id executing the script.  A mode of 0654 does not grant
   the owner the right to execute the file and therefore, the correct
   output here is "not executable."
2001-06-21 11:15:38 +00:00
Sascha Schumann
375ef3aec5 Back out severely broken patch. I currently don't have the time
to debug this.  Please reapply a fixed version.
2001-06-20 23:39:28 +00:00
Frank M. Kromann
d5d7cf7390 Changed length of BIT string.
Changed return value of fbsql_field_length to long
2001-06-20 22:54:51 +00:00
Stig Venaas
399885cddb Fixed memory leak in ldap_get_entries() when using post RFC 1823 API.
Similar problems for other functions will be fixed
2001-06-20 21:12:55 +00:00
Colin Viebrock
a367c39c2e date('W') now returns week of year (ISO 8601) 2001-06-20 18:07:53 +00:00
Thies C. Arntzen
03ae0d775b add PLS_FETCH(); 2001-06-20 15:46:47 +00:00
Thies C. Arntzen
45f629925f @- Fixed references in sessions. This doesn't work when using the
@  WDDX session-serializer. Also improved speed of sessions. (Thies)
from now on php_set_session_var no longer copies the variable recovered from a
session (tested with php, php_binary and wddx). this should speed up session
deserializing quite a bit. (this damn thing has cost me 6 hours of my life;-)
2001-06-20 15:16:08 +00:00
Rasmus Lerdorf
94897efc36 Fix for #11570 2001-06-20 14:47:26 +00:00
Marc Boeren
d0fba81668 All files are now in Unix-linebreak mode (\n only). Somehow \r\n still
created problems with some cvs clients.
2001-06-20 11:30:47 +00:00
Jason Greene
351b78d87e Make pcntl async safe by registering as a zend extension and grabing the
statement handler. There could possibly be a more atomic hook in the future.
Also added simple TODO section to README.

NOTE: sleep() grabs SIGALRM on solaris, so
test-pcntl.php's alarm_handle function will not catch.
2001-06-19 21:42:57 +00:00
Sebastian Bergmann
d926e84e5f Change copyright note. 2001-06-19 21:25:53 +00:00
Sebastian Bergmann
3f4a4a3643 Change copyright note. 2001-06-19 21:14:39 +00:00
Jon Parise
dbd51aaf61 Allow the PostgreSQL driver to do internal row counting when iterating
through a result set.

Submitted by: Georg von Zezschwitz <gvz@2scale.net>
2001-06-19 18:10:08 +00:00
Dan Kalowsky
746dd9cbe4 Closed off Solid DB access to a function that it doesn't support in 3.0 and less.
Thanks to Eric Veldhuzen
2001-06-19 17:58:09 +00:00
foobar
1e0aaeffe9 Fix bug: #11508 2001-06-19 16:48:37 +00:00
Andi Gutmans
c977f29862 - Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable)) 2001-06-19 16:03:35 +00:00
Sebastian Bergmann
e4f109b69f Finish phpinfo() HTML 4.01 tweaking. 2001-06-19 15:21:28 +00:00
Sebastian Bergmann
615cf785c1 Fix crash bug in urlencode(). 2001-06-19 15:20:50 +00:00
Harald Radi
85bb9e77e4 fixed malloc() / emalloc() bug 2001-06-15 21:48:05 +00:00
Sebastian Bergmann
499334e498 Make output of phpinfo() compliant with HTML 4.01. 2001-06-15 18:34:09 +00:00
Marc Boeren
fa168d6b38 Changed username and password for pgsql in include file. 2001-06-15 13:25:44 +00:00
Marc Boeren
35f8d4cb44 Added a pgsql testdatabase create script (thanks Christian)
Fine-tuned some tests.
2001-06-15 12:43:15 +00:00
foobar
32de53b7f5 Fixed proto. (also bug #10334) 2001-06-15 10:44:50 +00:00
Stanislav Malyshev
5ad3d2828f Fix potential crash 2001-06-14 15:36:10 +00:00
Dan Kalowsky
f2ec3fa6e5 adding in some error checking for parameter counts, and some thread safety for
functions
2001-06-14 15:02:17 +00:00
Daniel Beulshausen
e4a2620d80 update credits 2001-06-14 10:05:41 +00:00
foobar
97a98c6888 This extension works with pdflib 4.x too.. 2001-06-14 04:35:11 +00:00
Stig Venaas
a694b4b206 Added myself to the credits 2001-06-13 20:13:54 +00:00
Zeev Suraski
1093ed17fb Clean-up
Remove a lot of 100% redundent code
2001-06-13 17:04:36 +00:00
Frank M. Kromann
a86a08cc06 Fixing the return type of numeric data to be numeric 2001-06-13 17:00:32 +00:00
Marc Boeren
bfd1f986b1 Latest (minor) fixes: mssql, mysql and odbc now pass the testset correctly.
# I need a working setup to test pgsql with the test-set as well.
2001-06-13 13:35:17 +00:00
Hartmut Holzgraefe
f3fa23ace9 more functions, most of the simple ones (parameterwise) are now in 2001-06-13 07:26:41 +00:00
Jason Greene
5ae35781e3 Adding some ifdefs for better platform compatibility 2001-06-13 01:13:05 +00:00
Thies C. Arntzen
d34fad6be2 namespace protect one enum to fix compile with ncurses 2001-06-12 21:34:47 +00:00
Harald Radi
c7a934e763 added coauthors 2001-06-12 21:19:35 +00:00
Hartmut Holzgraefe
453a4ae985 initial version of ncurses extension,
see example1 for whats possible right now
2001-06-12 21:15:49 +00:00
Daniel Beulshausen
0d6661b436 fix build 2001-06-12 21:06:01 +00:00
Harald Radi
96686930ab added Alan Brown to credits 2001-06-12 20:33:50 +00:00
Stig Bakken
2a61bad994 (PHP curl_setopt) fix CURLOPT_HTTPHEADER crasher (Stig) 2001-06-12 20:23:14 +00:00
Daniel Beulshausen
d5e9942bfb get rid of some getsockname() calls 2001-06-12 16:41:51 +00:00
Harald Radi
0f3ab761b6 added experimetal php->safearray support 2001-06-12 16:31:54 +00:00
Marc Boeren
92eb51fde2 Fixed bug concerning mysql default_link that got freed too soon (Mc).
Added the test-case to te connect-test-file (Mc).
2001-06-12 15:32:22 +00:00
Jason Greene
3fd006d648 Remove bugus file. 2001-06-12 09:05:40 +00:00
Jason Greene
8b43f3222e @Added new experimental module pcntl (Process Control) (Jason)
Initial Import
2001-06-12 08:54:25 +00:00
foobar
3186994df1 Fix bug: #11397 2001-06-12 05:28:41 +00:00
foobar
9ddd6300de Fix the compile problem on some systems that do not have hstrerror() 2001-06-12 04:42:01 +00:00
Frank M. Kromann
44bc630d9b Fixing return value for fbsql_query on updates and fixing crash on fbsql_connect. 2001-06-12 00:39:05 +00:00
Harald Radi
20bb78f397 added experimental enum support
changed everthing to use the Z_* makros
2001-06-11 23:05:32 +00:00
Daniel Beulshausen
a82f4f76e8 add mbstring & xslt 2001-06-11 15:43:50 +00:00
Daniel Beulshausen
669a6d6cf2 should build under windows as well 2001-06-11 15:31:58 +00:00
foobar
73bfcd8a8a this should be here..styles must be array 2001-06-11 15:21:47 +00:00
Daniel Beulshausen
491fcd2ef8 used in extension(s) as well 2001-06-11 15:18:44 +00:00
Daniel Beulshausen
c6b4e55838 PHPAPIize url function to make them available to the outside (i.e. mbstring) 2001-06-11 15:14:04 +00:00