Derick Rethans
bc11c47ce6
- Whitespace
2003-02-26 19:25:24 +00:00
Hartmut Holzgraefe
499a97a9b2
changed to emalloc just to be safe
2003-02-26 16:06:07 +00:00
Brad LaFountain
2c1b3b74b2
changes in the past shouldn't have compiled.
2003-02-26 03:04:00 +00:00
Ilia Alshanetsky
aee0c18bde
Made shell_exec() use streams, this simplifies the code and in some cases
...
makes it a little faster too.
2003-02-25 23:52:34 +00:00
Ilia Alshanetsky
bce8bfdae4
MFH (forgot to put this fix into the 5.X tree).
2003-02-25 23:39:57 +00:00
Moriyoshi Koizumi
991da29849
Set fgetss() free from the length parameter
2003-02-25 20:12:18 +00:00
Ilia Alshanetsky
503e49feae
Fixed test.
2003-02-25 16:27:51 +00:00
Ilia Alshanetsky
f29964e2ba
Fixed bug #22414 and added a test case for it.
2003-02-25 16:21:00 +00:00
foobar
400f466040
Cleanup
2003-02-25 11:48:50 +00:00
Adam Dickmeiss
79a3618b36
Tabify
2003-02-25 08:34:33 +00:00
Adam Dickmeiss
45214b2340
yaz_search supports query type cql
2003-02-25 08:31:53 +00:00
foobar
afc69728a8
(hope) fix some win32 build errors
2003-02-25 07:19:44 +00:00
Corne' Cornelius
086b317448
- Added Corne' Cornelius to CREDITS/Authors
2003-02-25 06:59:15 +00:00
Corne' Cornelius
9f48874675
- Changed IFX_VERSION to work with Major versions with more then one digit
2003-02-25 05:33:28 +00:00
foobar
14f98fca45
fix bug #22324 , libjdbcoci8.so is not necessarily needed..
2003-02-25 04:36:54 +00:00
Ilia Alshanetsky
e8823a205a
Fixed bug #22402 (opening of ftp for read/write could fail due to invalid
...
return code handling).
Solution suggested by jan@jancm.org
2003-02-25 04:20:22 +00:00
Ilia Alshanetsky
348200b54d
Fixed a crash in gdImageCopyMergeGray().
2003-02-25 03:49:26 +00:00
Stig Bakken
d4dff9e92a
* add new ZE2 tokens
2003-02-25 02:08:49 +00:00
Ilia Alshanetsky
862634ffa5
Added locking to streams.
...
Allow PHP to automatically release locks on files when terminating the
stream.
Fixed bugs in the handling of the 3rd optional parameter to flock().
2003-02-25 01:39:06 +00:00
Moriyoshi Koizumi
14db9ea88d
Fixed string.strip_tags filter so it reflects the change on php_strip_tags
2003-02-24 22:41:55 +00:00
Moriyoshi Koizumi
b44b0b80e0
Made fgetss() binary safe too
2003-02-24 22:39:47 +00:00
Moriyoshi Koizumi
8f341f6a19
Fixed possible buffer overflow of php_strip_tags
2003-02-24 22:19:36 +00:00
Moriyoshi Koizumi
385a809694
Made strip_tags() binary safe
2003-02-24 22:01:12 +00:00
Sara Golemon
85a5ef3ec9
Initial re-implementation of userfilters after filterchain redesign by wez. More userspace API to come.
2003-02-24 21:56:19 +00:00
Wez Furlong
088e2692c3
MFB: Bunch of streams related fixes.
2003-02-24 21:40:23 +00:00
Ilia Alshanetsky
4474f9225a
Fixed bug #22355 (PHP would remove folding from Subject & To fields).
2003-02-24 19:41:18 +00:00
Moriyoshi Koizumi
93b6d05bb8
Forgot to fix this part
2003-02-24 16:54:21 +00:00
Moriyoshi Koizumi
f73f94f258
Fixed a signed / unsigned issue.
...
# imagine the case like "\\\xfe" where walk[1] takes a value that is greater
# than 127 in integer...
2003-02-24 16:29:00 +00:00
Moriyoshi Koizumi
171fd93840
Style fix
2003-02-24 16:13:13 +00:00
Hartmut Holzgraefe
cfb377ce33
"key" has to be zero-delimited
2003-02-24 13:35:07 +00:00
foobar
cf72bfbae1
no c++ comments
2003-02-24 08:27:24 +00:00
Corne' Cornelius
7afe50fc5c
(PHP ifx_errormsg) Fixed Informix bug where ifx_errormsg() would Segfault
...
on an unopened connecection and with an errorcode supplied
2003-02-24 06:34:37 +00:00
foobar
6ed8720fa2
fix compile warning
2003-02-24 03:27:00 +00:00
Ilia Alshanetsky
a3cb589b71
Fixed bug #22382 (fgetcsv did not handle \" correctly).
2003-02-24 03:13:25 +00:00
foobar
c87c4c7bd7
Extra paranoia checks if dn_skipname/dn_expand exist or not
2003-02-24 00:09:18 +00:00
foobar
de54cd0a08
Fix for bug #22353
2003-02-23 08:14:25 +00:00
Marcus Boerger
fbe7e1d977
Dropped optimization
...
# It is impossible to combine skip=-1 searches with firstkey/nextkey results
2003-02-22 23:47:09 +00:00
Marcus Boerger
c0e9bd0830
INI files are case insensitive
2003-02-22 20:49:07 +00:00
Ilia Alshanetsky
8908faa47f
Revent previous patch, adding of file_write_content() was premature.
2003-02-22 20:35:22 +00:00
Ilia Alshanetsky
d2e2fbcc5b
int/long change.
2003-02-22 20:33:11 +00:00
Marcus Boerger
fef5b7c3a1
Remove testcode
2003-02-22 17:37:27 +00:00
Marcus Boerger
8ab1924ca3
@Added dba handler inifiles to support ini files. (Marcus)
2003-02-22 17:20:06 +00:00
Andrey Hristov
8c2dbd5f0f
additional speedup for array_shift(). No need to rehash if the removed element's
...
key is not scalar and elements with scalar keys are already well numbered
(sequentially from 0) for some reason. This is the case if the leading
elements have no scalar indexes.
2003-02-22 13:55:11 +00:00
Andrey Hristov
94040a28ce
rehash only in case something is changed.
...
#lowers the execution time in half on my machine on array with 1000 elements
#with nonscalar keys. Maybe it can be optimized further.
2003-02-22 10:54:26 +00:00
Georg Richter
0133377fba
removed some comments
2003-02-22 07:47:46 +00:00
Georg Richter
b63fbf2763
Fixed bug with stmt_close (libmysql bk version 1.1477 required)
...
Fixed bug with mysql_execute and float values
2003-02-22 07:31:01 +00:00
foobar
7d256c1ae1
MFB
2003-02-21 10:43:32 +00:00
foobar
b420beba61
- Fixed bug: #22339
...
# No NEWS, this was bug introduced by Marcus a while ago..
# Not present in php4.3.x branch
2003-02-21 08:45:58 +00:00
foobar
12ce594f64
MFB
2003-02-21 06:50:25 +00:00
foobar
161d31c8bc
ZTS fixes
2003-02-21 06:46:12 +00:00
Rasmus Lerdorf
d08a0e99c8
An input filter might not simply strip stuff, it might also turn things
...
into entities or use some other mechanism which causes the filtered data
to be longer than the original data. Ergo, pass in the address of the
buffer instead so the filter is free to reallocate it.
2003-02-20 22:21:49 +00:00
Justin Erenkrantz
9d89ef3295
Remove C++-style comment. (Breaks Sun Forte compiler.)
2003-02-20 21:48:58 +00:00
Sara Golemon
2002ca0203
Reduce unnecessary filter applications when stream is (read|write) only
2003-02-20 20:05:31 +00:00
Moriyoshi Koizumi
63291af120
Fixed bug #22330 (overloaded strrpos() gives wrong results)
...
Patch by david at santinoli dot com. Thanks!
2003-02-20 17:52:42 +00:00
Derick Rethans
2bff9cae27
- Fixed testcase... you can never trust on RFCs it seems
2003-02-20 16:15:41 +00:00
Derick Rethans
91766d4b9a
- Fixed copy and paste bug
2003-02-20 10:33:55 +00:00
Derick Rethans
b4b33b11ef
- Also add the optional raw output parameter to md5_file and sha1_file.
2003-02-20 10:32:35 +00:00
foobar
0f593f899f
Fixed bug: #22306 (pg_lo_seek($h, 0, PGSQL_SEEK_SET) succeeds but returns false)
2003-02-20 07:10:07 +00:00
Derick Rethans
ead7521e4d
- No need to add the \0 ourselves, the estrndup in STRINGL takes care of
...
that for us.
2003-02-20 06:56:37 +00:00
Sascha Schumann
6f5b46c118
generally urlencode parameters
2003-02-20 06:18:16 +00:00
foobar
6043ee22e8
- Fixed bug #22299 (gethostbyname() crash with non-existing domain on MacOSX)
2003-02-20 05:34:58 +00:00
Ilia Alshanetsky
69094da0e8
Revert accidental commit.
2003-02-20 00:34:03 +00:00
Ilia Alshanetsky
3bff5c0419
Fixed bug #22308 (optimized passthru, code is now ~40 times faster).
2003-02-20 00:32:51 +00:00
Jon Parise
370c0cbf91
Add folding markers and editor directive blocks.
2003-02-19 21:36:00 +00:00
Rasmus Lerdorf
afb8842cea
Fix mbstring input_filter
2003-02-19 20:56:47 +00:00
Rasmus Lerdorf
7429c2dc3f
Input Filter support. See README.input_filter for details.
...
@- Input Filter support added. See README.input_filter. (Rasmus)
2003-02-19 19:41:09 +00:00
Marc Boeren
85f81c6006
Fix for bug #22221 : pgsql version for dbx_query suppressed a warning that
...
was trappable by using a user-defined error-handler. A different use of
pgsql_getrow removed the warning and thus the need for suppressing it.
2003-02-19 13:32:27 +00:00
Corne' Cornelius
71e6110bc8
- Revert latest commit
2003-02-19 09:52:52 +00:00
Corne' Cornelius
ad56bbe4a4
- Added Input Descriptor Binding to be used by blobs. This fixed a bug
...
where ESQL/C would cause a Segmentation fault if the first blob in a
result is NULL or '' as soon as it gets a result with blob != NULL
- Fixed leaks where blobs resources weren't always freed
2003-02-19 09:29:26 +00:00
foobar
2b90480fa9
scandir -> php_scandir, alphasort -> php_alphasort
2003-02-19 09:27:29 +00:00
foobar
8e3f23e3c0
ws fixes + missing $Id$ tags, headers added
2003-02-19 08:40:19 +00:00
Corne' Cornelius
48e5c1dae7
Updated IFX_VERSION entry to work with new Version output of ESQL/C
...
@- Updated IFX_VERSION entry to work with new Version output of ESQL/C (Corne')
2003-02-19 07:16:01 +00:00
Ilia Alshanetsky
a6ef609a37
Fixed bug #22283 (possible crash when opening relative URLs).
2003-02-19 00:49:31 +00:00
Moriyoshi Koizumi
69113a3099
Added string.strip_tags filter.
2003-02-19 00:12:23 +00:00
Moriyoshi Koizumi
6389a79ea5
Fixed memory leaks on conversion failure.
2003-02-18 23:30:36 +00:00
Moriyoshi Koizumi
8793a78fee
Revived convert filter codes
2003-02-18 23:22:49 +00:00
Jon Parise
40dacff24a
Remove a stray COM reference.
2003-02-18 23:22:15 +00:00
Marcus Boerger
b8f518a451
- wrong use of sizeof(char)
...
- use define for block size
- a bit faster
2003-02-18 22:19:18 +00:00
Marcus Boerger
7b6fb4b7b3
coding style
2003-02-18 20:49:52 +00:00
Marcus Boerger
3db2b2bc7c
avoiding problems
2003-02-18 20:48:05 +00:00
Derick Rethans
d95c41eddb
- Added new parameter to sha1() and md5() which return the digest as
...
binary data. (Original patch by Michael Bretterklieber <mbretter@jawa.at>)
- Added test cases for sha1() and md5() based on the testvectors in RFC 1321
and RFC 3174.
@- Added new parameter to sha1() and md5() which return the digest as
@ binary data. (Michael Bretterklieber <mbretter@jawa.at>, Derick)
2003-02-18 20:31:19 +00:00
Moriyoshi Koizumi
dd0462c78f
Added description for the hand-made finite state machine.
2003-02-18 20:31:04 +00:00
Sascha Schumann
4ec77cfbb5
Refactor new-session-id code
2003-02-18 19:29:38 +00:00
Sascha Schumann
2699c26f42
Remember whether to send a cookie, so that we send out the correct
...
session id. Also improve check for active session
2003-02-18 19:13:49 +00:00
Wez Furlong
4c4d77d23e
Fix incorrect TSRMLS_CC usage.
...
Fix com_create_guid()
2003-02-18 19:03:44 +00:00
Sascha Schumann
32e0c8161c
add session_regenerate_id()
2003-02-18 18:50:44 +00:00
Moriyoshi Koizumi
bcd49d63c3
Fixed mb_send_mail() so that Content-Type and Content-Transfer-Encoding
...
headers are overridable by additional header parameters.
This patch fixes bug #21985 and bug #22064 .
2003-02-18 18:49:47 +00:00
Moriyoshi Koizumi
89caaeb87c
Fixed bug #21708 (ucfirst() trouble again)
...
# this bug is related to bug #21689
2003-02-18 18:11:34 +00:00
Moriyoshi Koizumi
d4e9d48b18
Fixed bug #21689 (fgetcsv suppresses some characters before a separator)
...
The fix is suggested by Masahiro Nakayama <masa@sfc.wide.ad.jp>
# is* functions expect their argument to be an integer in range of 0-255
2003-02-18 15:15:22 +00:00
Wez Furlong
aad491817c
Implement com_create_guid().
...
Add a special case for RETVAL_VARIANT when a variant is of type VT_DISPATCH but has a NULL dispatch pointer.
This kind of variant is returned by the WindowsInstaller automation interface.
2003-02-18 09:46:19 +00:00
Wez Furlong
e52aac940f
Implement simple stream support in the ZE scanners.
2003-02-18 09:37:54 +00:00
Georg Richter
500dfcfd62
added new function mysqli_stmt_store_result
2003-02-18 08:49:00 +00:00
Georg Richter
05d10452ba
test for mysqli_stmt_store_result
2003-02-18 08:41:16 +00:00
Wez Furlong
2003d8eeb6
Implement com_indexed_prop_set() which allows setting of array-like indexed properties on COM objects.
...
It is expected that this function will be transient, waiting for engine-level and then rpc-level support to be implemented so that this can be integrated more completely.
I'm committing this now so that others can help develop the msi installer scripts that require this feature.
2003-02-18 07:36:31 +00:00
Sara Golemon
73c78270b6
Introduce //filter target to php: wrapper to allow inline application of filters during fopen() style opperations
2003-02-18 06:10:14 +00:00
foobar
25a7332e9b
getpriority() and setpriority() are in libc..
2003-02-18 03:25:33 +00:00
foobar
28f4cb18ec
nice() is part of libc, use AC_CHECK_FUNCS instead
2003-02-18 03:22:47 +00:00
Ilia Alshanetsky
5b858c9e94
Fixed compiler warning.
2003-02-18 03:12:38 +00:00
Sara Golemon
6fe4ab41f0
Fix stream_filter_(ap|pre)pend to allow attaching on the read and/or write chains. Automagically decide what to do if noone tells us.
2003-02-18 02:53:24 +00:00
Ilia Alshanetsky
0503336ede
Added pcntl_setpriority & pcntl_getpriority(). These functions can be used
...
to fetch and alter the priority of a process.
2003-02-18 01:41:06 +00:00
Wez Furlong
1e34a6bffc
Add basic test of read filters and read filter chain.
2003-02-18 01:24:41 +00:00
Ilia Alshanetsky
0ad5cac954
By popular demand nice() is renamed to proc_nice().
...
A better error message for proc_nice() failure.
2003-02-18 01:23:51 +00:00
Wez Furlong
32165a5546
Implement new filter API, stage 1.
...
This breaks user-space filters (for the time being), and those
weird convert.* filters in ext/standard/filters.c
The filters stack has been separated into one chain for read and one chain
for write.
The user-space stream_filter_append() type functions currently only operate
on the read chain. They need extending to work with the write chain too.
2003-02-18 01:22:21 +00:00
Ilia Alshanetsky
0fd1009fcc
Added nice() function, which allows changing of priority for the current
...
process.
2003-02-18 01:07:57 +00:00
Georg Richter
19a9b4f310
new test (class which extends mysqli. currently this test fails :( )
2003-02-18 00:42:38 +00:00
Georg Richter
2f604f67e8
removed duplicate code
2003-02-18 00:32:47 +00:00
Georg Richter
bc5eb4b3b4
fixed some leaks when mysql_close will be called before all stmts are freed.
2003-02-18 00:00:51 +00:00
Georg Richter
bf348326bd
additional tests for non freed objects
2003-02-17 23:29:58 +00:00
foobar
5c63fad55c
MFB: Sanity check.
2003-02-17 22:45:50 +00:00
Georg Richter
3686b61548
test for mysql_fetch_row (oo-style)
2003-02-17 16:19:49 +00:00
Zeev Suraski
4934744b93
Win32 build improvements
2003-02-17 13:29:59 +00:00
Georg Richter
1f188f6554
added close method/alias for result object (for compatibility with statement and
...
link objects)
2003-02-17 09:38:32 +00:00
Georg Richter
1076328edb
test for OO-Implementation (bind_result)
2003-02-17 08:54:23 +00:00
Shane Caraveo
216d1d00a5
you know it's time to get away from the keyboard when you do this.
...
fix my last fix
2003-02-17 06:45:37 +00:00
Derick Rethans
738d4f401f
- Style polizei
2003-02-17 06:35:13 +00:00
foobar
7e9fb9f21f
- Cleaned this mess a bit:
...
. Centralized the functions sunrise/sunset to php_sunrise_sunset
to lessen duplicate code.
. Made wrapper function php_do_date_sunrise_sunset() to lessen
duplicate code.
. Coding style fixes.
. renamed sunfuncs.h -> php_sunfuncs.h
2003-02-17 06:28:07 +00:00
foobar
d3e006eafd
- These results were obviously got with TZ=GMT
...
# also prefixed the test results with the tested option
# so it's easier to see which one fails..
2003-02-17 06:23:22 +00:00
foobar
6b7a822cec
Assuming the results were created in system with Asia/Jerusalem as TZ
2003-02-17 05:51:03 +00:00
Shane Caraveo
eb6b7e80be
fix it the right way
2003-02-17 05:47:56 +00:00
foobar
1c89652590
override precision ini setting
2003-02-17 05:02:05 +00:00
Shane Caraveo
354a7d804b
If you pass NULL, you do not get a NULL value, make sure it is.
2003-02-17 03:26:16 +00:00
foobar
4e3d4e4329
- Let's be consistent with these..
2003-02-17 03:07:33 +00:00
Wez Furlong
f871a58783
Fix compile warning
2003-02-17 00:01:31 +00:00
Wez Furlong
63c95db648
Remove unused vars
2003-02-16 22:33:29 +00:00
Moshe Doron
ea8d11cc87
@ new idate() function.
...
@ new date_sunrise() function.
@ new date_sunset() function.
#since i have no premission updating the win32 project file, i'm sending patch on the list.
2003-02-16 22:28:01 +00:00
Georg Richter
fe9a33a002
fixed output
2003-02-16 21:19:32 +00:00
Ilia Alshanetsky
148fdce82d
Reverted lld -> lld patch and added explanation as to why it should not be
...
done.
2003-02-16 17:59:30 +00:00
Ilia Alshanetsky
ad1972fae9
Moved longlong conversion to a macro.
2003-02-16 15:56:57 +00:00
Ilia Alshanetsky
2ac79528c9
better skip condition.
2003-02-16 15:47:22 +00:00
Wez Furlong
32c1eafe85
Remove bogus test.
...
Append mode always causes written data to go to the end of the file,
regardless of the current seek position.
2003-02-16 15:42:14 +00:00
Wez Furlong
7e92f636ef
Integrate Shanes patch that allows specifying the cwd and environment
...
for the child process created by proc_open().
2003-02-16 15:38:54 +00:00
Georg Richter
c40eff35da
test for mysqli_prepare_result
2003-02-16 13:48:00 +00:00
Wez Furlong
ce432004be
Fix bcmath build under win32.
...
# These problems occur because winsock2.h MUST be included before
# windows.h.
2003-02-16 12:46:16 +00:00
Georg Richter
ffe43821d0
test for mysqli_stmt_affected_rows (delete command)
2003-02-16 12:04:21 +00:00
Georg Richter
6997d50ff0
added new function mysqli_stmt_affected_rows
...
added bigint support for mysqli_affected_rows
fixed memleak in mysqli_prepare (stmt->is_null)
fixed return type for mysqli_connect
2003-02-16 12:03:37 +00:00
Wez Furlong
0a18a9d744
A add much more useful select(2) implementation than is provided by
...
windows sockets. The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.
This change required linking against the winsock2 library. In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default. It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.
Also, add a win32 compatible pipe test when opening a stream from a pipe. This test will only work on NT, win2k and XP platforms. Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered. I will be working on a fix for this issue for win9x.
2003-02-16 03:48:49 +00:00
Ilia Alshanetsky
9f7fbaf5c2
Proper lib detection.
2003-02-15 20:09:49 +00:00
Wez Furlong
27e3d6477f
Add optional signal parameter to proc_terminate.
2003-02-15 17:33:11 +00:00
Wez Furlong
c3c24054e8
Add proc_terminate() function to forcibly kill off a process created
...
with proc_open().
2003-02-15 17:18:57 +00:00
Ilia Alshanetsky
8a07cc45cf
Fixed skip condition.
2003-02-15 17:06:35 +00:00
Georg Richter
e671a8c3e4
added skipif section (innodb-support)
2003-02-15 16:21:35 +00:00
Moriyoshi Koizumi
b069f35022
Fixed bug #22227
...
Added test case for bug #22227
2003-02-15 15:57:31 +00:00
Ilia Alshanetsky
f8e0290cd6
Allow mysqli to be built when imap (c-client) is used.
2003-02-14 21:27:13 +00:00
Ilia Alshanetsky
c59240d599
CS fixes.
2003-02-14 20:15:11 +00:00
Ilia Alshanetsky
43eda85d5a
Fixed compile warnings.
2003-02-14 20:14:44 +00:00
Georg Richter
e8fd6662ae
test for bind_result with show
2003-02-14 19:49:35 +00:00
Marcus Boerger
c34fde086b
a little bit slower but somewhat tricky and more flexible and it does not
...
allocate static buffers anymore
2003-02-14 19:43:06 +00:00
Moriyoshi Koizumi
9b49146dc1
Fixed a str_replace() bug similar to bug #22224
2003-02-14 18:59:50 +00:00
Moriyoshi Koizumi
b3a8349191
Fixed bug #22224 (implode changes object references in array)
...
Added test case for the bug
2003-02-14 18:42:36 +00:00
Ilia Alshanetsky
f6e4904759
CS fixes.
2003-02-14 18:35:30 +00:00