Derick Rethans
e58c221204
- Change Warnings to Notices
2003-01-04 23:55:57 +00:00
Ilia Alshanetsky
f99fa7170e
Fixed a bug that would cause flock() to never set the 3rd argument.
...
CS fixes & switched to new parameter parsing API.
2003-01-03 18:33:28 +00:00
Ilia Alshanetsky
71ab7dfccc
Fixed a memory leak that occurs if the location specified by redirect header
...
cannot be opened.
2003-01-03 17:12:35 +00:00
Ilia Alshanetsky
c52cdad25a
Further fixes related to bug #21267 .
2003-01-03 17:05:16 +00:00
Anantha Kesari H Y
2e52c112df
Modified for NetWare.
2003-01-03 16:06:02 +00:00
Anantha Kesari H Y
830298beb8
Modified for NetWare.
2003-01-03 14:37:42 +00:00
Derick Rethans
8f82834a79
- Update this one as well
2003-01-03 10:52:23 +00:00
Derick Rethans
32254e0938
- Remove double "Win32 COM" functions line
2003-01-03 10:48:38 +00:00
Sara Golemon
7b37272381
Added stream_get_wrappers()
2003-01-03 08:02:36 +00:00
Moriyoshi Koizumi
f962ba6abb
Fixed small leaks in array_map() in case the first parameter is NULL like
...
array_map(NULL, array(...));
2003-01-03 05:05:12 +00:00
Ilia Alshanetsky
0ff59a1353
Fixed bug #21338 (crash inside html_entity_decode() when "" is passed).
...
Added test case for the bug.
2003-01-02 19:49:30 +00:00
Frank M. Kromann
4da2e804e0
Allow base64 functions to be called from an extension buils as .so/.dll (iconv)
2003-01-01 18:11:18 +00:00
Zeev Suraski
70446a6416
build fixes
2003-01-01 13:26:17 +00:00
Sebastian Bergmann
0ab3a13612
Fix warnings.
2003-01-01 12:36:06 +00:00
Wez Furlong
97a0102b81
Tidy up
2003-01-01 11:21:40 +00:00
Wez Furlong
f58628ca4d
Move rot13 filter into a new filters.c source file.
...
Tidy up some other filter related code.
# win32 -> someone please add user_filters.c and filters.c to the .dsp
2003-01-01 11:04:44 +00:00
Wez Furlong
350b0bbeac
Implement user-space filters.
...
See ext/standard/tests/file/userfilters.phpt for an example of their use.
2002-12-31 18:39:36 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Rasmus Lerdorf
f88e29bc0d
Fix for bug #21311
2002-12-31 15:18:52 +00:00
Ilia Alshanetsky
bd19dabefe
Fixed bug #21226 (parse_url handling of urls without a path).
2002-12-30 16:42:49 +00:00
Derick Rethans
d454becda8
- Whitespace
2002-12-30 15:03:50 +00:00
Marcus Boerger
426cf8eb57
fix state-machine in cases T_AAAA is not available
2002-12-30 11:59:22 +00:00
Ilia Alshanetsky
88d26985b8
Fixed bug #21267 (opening URLs that result in redirection to a relative
...
path was failing).
2002-12-29 20:01:33 +00:00
Derick Rethans
f3d3dd5bc8
- MFB
2002-12-26 23:45:05 +00:00
Wez Furlong
bb640840c3
Remove cruft that opened a stream that was never closed in get_meta_tags().
...
(probably my fault).
Noticed by Philip Olson
2002-12-26 22:35:00 +00:00
Sterling Hughes
457f22c198
if needle is empty free allocated memory
2002-12-26 20:52:42 +00:00
Sterling Hughes
ca67d27fb2
remove memleak
2002-12-26 19:56:44 +00:00
Derick Rethans
b996b32031
- Add test for bug #21182
2002-12-25 20:08:36 +00:00
Ilia Alshanetsky
fbcee73c8c
Make range operate on the copies of the parameters rather then modify the
...
actual parameters.
2002-12-25 20:02:03 +00:00
Melvyn Sopacua
0764c3101b
Verify if gl_pathv is not NULL, which it is, when GLOB_NOMATCH isn't
...
supported and there are no matches.
# BSDi/Mac OSX are affected.
2002-12-23 18:33:46 +00:00
Wez Furlong
c5091eedf1
Forgot to include this in my previous commit for #21131 fix.
2002-12-22 18:06:27 +00:00
Wez Furlong
efea12fec5
Fix for Bug #21131 : fopen($file, 'a+') would incorrectly assume that
...
the stream position was at offset 0.
This corrects that assumption by querying the stream for it's position
when it detects the 'a' "flag" in the mode parameter to fopen.
Also added a test for plain files and amended the userstreams test to
take this into account.
2002-12-22 18:05:36 +00:00
Sara Golemon
13308b5a94
Minor clarification in meaning of bitmask constants
...
/* PHP_DNS_xx = 1<<(T_xx-1) */
T_CNAME = 5 ergo PHP_DNS_CNAME should be 0x00000010.
T_SOA = 6 ergo PHP_DNS_CNAME should be 0x00000020.
2002-12-20 18:34:56 +00:00
Ilia Alshanetsky
3a4bf3f904
When low & high are the same return an array containing the low value.
...
Added support for float values and handling of numeric values being passed
as strings.
Added a test case for range().
2002-12-20 17:16:31 +00:00
Marcus Boerger
d795243db3
@Make uniqid() parameters optional and allow any prefix length. (Marcus)
2002-12-20 17:06:25 +00:00
Marcus Boerger
8652e8ac27
MFB
2002-12-20 17:04:33 +00:00
Marcus Boerger
26038795f8
-disable uniqid() when required lib functions not available
...
-emit an error when uniqid() will fail
-make more_entropy parameter default to true for CYGWIN
2002-12-20 16:34:42 +00:00
Wez Furlong
602734c7d9
Correct mistake introduced by my last commit on these files;
...
*_from_pipe() is for process-pipes created by fopen, not generic pipes
created from proc_open().
Correctly implemented the fifo/pipe check for *_from_file() and it seems
to be working correctly now.
2002-12-19 20:23:50 +00:00
Ilia Alshanetsky
594c3808d4
Fixed bug #21098 .
2002-12-19 17:06:36 +00:00
Moriyoshi Koizumi
d2fa4670dc
Prevented test failure caused by LF code variety
2002-12-18 23:06:27 +00:00
Moriyoshi Koizumi
92d5faca60
MFB
2002-12-12 21:44:53 +00:00
Moriyoshi Koizumi
d679e5d2aa
Added a test case for bug #20934
2002-12-12 21:42:17 +00:00
Melvyn Sopacua
44b7c16b03
Fix for BSD's (possibly others):
...
Accept system default, for the index. Don't initialize it.
2002-12-12 18:50:26 +00:00
Wez Furlong
c5d4e4b321
MFB: popen/pclose and proc_open/proc_close fixes.
2002-12-12 17:51:25 +00:00
Ilia Alshanetsky
53b333d153
Fixed misspelling of the Greek letter lambda,
...
noticed by jmartin-php@notamusica.com .
2002-12-12 14:50:58 +00:00
Ilia Alshanetsky
75c180f242
Fixed bug #20927 and updated the test case for the bug.
2002-12-12 13:38:19 +00:00
Moriyoshi Koizumi
3bbcb0d0dd
Fixed bug #20934 (htmlspecialchars returns latin1 from UTF-8)
2002-12-12 13:25:51 +00:00
Melvyn Sopacua
4b3b409b48
Add testcase for reported wordwrap bug
2002-12-11 20:22:42 +00:00
Ilia Alshanetsky
c194d9333d
Added getopt() test.
2002-12-11 17:38:28 +00:00
Moriyoshi Koizumi
4974f268a6
@- Let array_search() accept objects as a needle under ZendEngine2. (Moriyoshi)
2002-12-09 15:54:38 +00:00
foobar
085f362ae3
T_AAAA is not always available.
2002-12-09 11:50:15 +00:00
Moriyoshi Koizumi
8d1b2bf8a5
Prevented return_value from being freed() twice
2002-12-08 09:54:30 +00:00
Sara Golemon
a4d6863ee5
Bug #17174 Added IPv6 (AAAA record) support to dns_check_record() also added support to dns_get_record
2002-12-08 08:14:43 +00:00
Ilia Alshanetsky
3bc8512cf0
Added test case for bug #20865 .
2002-12-06 17:46:26 +00:00
Ilia Alshanetsky
ed7c3bfe0e
Fixed bug #20865 , array_key_exists() could not locate NULL keys.
2002-12-06 17:35:52 +00:00
Ilia Alshanetsky
c668055159
Remove pointless checks for array_init() return values.
2002-12-05 22:28:02 +00:00
Sara Golemon
ad65d01cbe
Bug #20746 . Renamed aggregation_info() to aggregate_info() per naming conventions and created alias for BC.
2002-12-05 21:20:47 +00:00
Marcus Boerger
49a99a98f4
-php_error -> php_error_docref
...
-removed some cases where emalloc result was tested
2002-12-05 20:59:49 +00:00
Ilia Alshanetsky
7364e3b771
Fixed bug #12556 , updated the test for this bug.
2002-12-05 20:01:19 +00:00
Melvyn Sopacua
bd06d48e56
Test data
2002-12-05 19:30:28 +00:00
Melvyn Sopacua
76436b8820
Add a testcase for this bug
2002-12-05 19:29:45 +00:00
Marcus Boerger
19d5e535c0
Remove unnecessary code here
2002-12-05 15:52:20 +00:00
Marcus Boerger
373361d9c4
Return FALSE on error as mentioned by John Coggeshall.
...
See Bug #20822
2002-12-05 12:39:00 +00:00
Moriyoshi Koizumi
cf0a0f0967
Added a test for bug #12776
2002-12-04 17:01:07 +00:00
Moriyoshi Koizumi
7bf4090efb
Fixed segfaults of array_walk() when keys are passed to cb by reference.
...
Fixed bug #12776 .
2002-12-04 16:41:28 +00:00
Moriyoshi Koizumi
242ddba326
Fixed leaks in array_walk()
2002-12-03 15:02:06 +00:00
Ilia Alshanetsky
057e87e6e5
Repositioned CoInitialize and CoUninitialize that apparetly makes it more
...
correct according to MS docs. Patch (+5) by Michael Sisolak
<msisolak@yahoo.com>.
2002-12-02 06:43:54 +00:00
Moriyoshi Koizumi
aeb6a6c458
Fixed possible buffer overflow in php_base64_decode();
...
# This bug doesn't appear to be harmful for now,
# so I won't merge it into branches...
2002-12-01 02:44:50 +00:00
Ilia Alshanetsky
cc13af6a07
Fixed bug #20716 .
2002-11-30 19:12:48 +00:00
Marcus Boerger
0d7957bc15
Bug #20433
2002-11-30 18:36:17 +00:00
Martin Kraemer
c5a7a522a1
Portability: Use 0 if the platform does not define EX_OK
2002-11-28 08:23:36 +00:00
Sterling Hughes
52a451ccd2
no more need for this either
2002-11-27 20:06:01 +00:00
Sterling Hughes
5c96f91123
don't use stupid constants, be smart, just read the line
2002-11-27 20:05:20 +00:00
Ilia Alshanetsky
e195b10ede
Fixed bug #20664 .
2002-11-27 06:20:19 +00:00
Moriyoshi Koizumi
98dace883e
Improved the error reporting portion of array_walk() as suggested by Markus
2002-11-26 22:12:40 +00:00
Moriyoshi Koizumi
3fd513f32a
Prevent too many error reports from being displayed
2002-11-26 21:51:37 +00:00
Moriyoshi Koizumi
61b3d5ccb5
Fixed incorrect error messages of array_walk() in case the callback is
...
specified in an array form
2002-11-26 21:21:32 +00:00
Stefan Esser
ababfedb66
tmp_line was possible uninitialised, resulting in crap error messages.
2002-11-25 22:53:57 +00:00
Ilia Alshanetsky
693fd4a36b
Added a check to determine if the file can be retrieved or sent.
...
This check also prevents incorrect error reporting in the event the retrieval
or the sending of the file cannot be accomplished.
2002-11-25 22:00:52 +00:00
Hartmut Holzgraefe
8bd550825f
email address change
2002-11-25 12:30:28 +00:00
Derick Rethans
36e82c84ae
- Make it compile on IRIX again
...
#- Tested with Linux/FreeBSD and IRIX
2002-11-23 19:03:21 +00:00
Moriyoshi Koizumi
44c98c7e3f
Fixed some odd behaviours of range()
2002-11-23 11:27:56 +00:00
Sara Golemon
e9047df607
New function dns_get_record(): close resolver socket after use.
...
fix to internal func php_parserr(): correct bug in return state.
2002-11-23 01:09:07 +00:00
Hartmut Holzgraefe
fb5ac5d286
the apache 1.x sapi read_posts tests for SG(read_post_bytes) being
...
counted up, so lets make it happy although this value is not really
needed in these cases ...
2002-11-21 10:29:11 +00:00
Sander Roobol
e532b24d82
One Apache 1.3 line is enough
2002-11-20 12:53:40 +00:00
Stefan Esser
63a50e500d
Adding SHA1 tests.
2002-11-19 23:25:57 +00:00
Ilia Alshanetsky
7751c4f549
Do not register IMAGETYPE_SWC if zlib, which is needed for parsing of swc
...
files is not available.
2002-11-19 21:24:47 +00:00
Edin Kadribasic
543c383302
Update Credits
2002-11-19 15:11:27 +00:00
Marcus Boerger
3ca6344e57
-rename checkdnsrr to dns_check_record, keep old name as alias
...
-rename getmxrr to dns_get_mx, keep old name as alias
-added dns_get_record
@Added dns_get_record() which allows to retrieve DNS information about
@a host. (Marcus, Pollita)
2002-11-19 02:34:13 +00:00
Marcus Boerger
301330ff88
-Added colordepth for png
...
-Added tests for width/heidth for unsigned/signed problems
2002-11-18 16:51:02 +00:00
Marcus Boerger
a3d821c695
Added colordepth for png
2002-11-18 16:50:10 +00:00
Marcus Boerger
25456939b3
Fixing unsigned/signed problems (and i thought about it before...)
2002-11-18 15:49:06 +00:00
Derick Rethans
e93f1c00c6
- Remove outdated GPL clause; the file was totally rewritten
2002-11-18 15:45:27 +00:00
foobar
43584058e9
Added error message if browscap location is not set in php.ini
2002-11-18 03:23:51 +00:00
Ilia Alshanetsky
c7fa1fa99f
Fixed bug #20462 .
2002-11-18 03:16:13 +00:00
Marcus Boerger
24726b0c64
Conversion fix by Michael Mauch
2002-11-17 09:27:48 +00:00
Marcus Boerger
2442adabe5
Force float for the float test
2002-11-16 23:45:58 +00:00
Marcus Boerger
015c117e37
-Do not rely on a side effect of 32bit platforms (patch by Michael Mauch)
...
-remove unused sections
2002-11-16 17:28:04 +00:00
Marcus Boerger
31e1cd13e2
removed unused sections
2002-11-16 17:26:52 +00:00
Ilia Alshanetsky
47596de32f
Fixed the test so it works properly on both 32 and 64 bit platforms.
2002-11-16 17:26:26 +00:00
Marcus Boerger
a3157908a8
Make getimagesize more robust against corrupt files
2002-11-16 17:02:07 +00:00
Sebastian Bergmann
47388f2121
Fix Win32 build.
2002-11-16 08:30:31 +00:00
Ilia Alshanetsky
8193641d2d
With ZTS on, we need to resolve the full paths before making symlinks.
...
If a chdir() call occurs before the symlink operation, the symlink is
created in the current directory rather then directory we've chdired to
because in ZTS we don't actually chdir but store the new path internally.
For an example of this problem consider the ext/standard/tests/file/001.phpt
test under ZTS.
2002-11-15 16:34:16 +00:00
Moriyoshi Koizumi
7222abda70
Include php_config.h for HAVE_MBSTRING
2002-11-15 16:13:36 +00:00
Marcus Boerger
8c598f8bff
Only show the first results
2002-11-15 14:46:52 +00:00
foobar
dadfd6e94a
ws fix
2002-11-15 07:21:33 +00:00
Moriyoshi Koizumi
fb20eae7fc
Fixed bug #20381
2002-11-15 02:16:41 +00:00
Moriyoshi Koizumi
ac209557dd
Added a test case for bug #20381
2002-11-15 02:11:23 +00:00
Stig Bakken
bdeb45b335
Added PATH_SEPARATOR constant
2002-11-14 22:50:01 +00:00
Andrei Zmievski
26bd73fec6
Sort the modules for info output as well.
2002-11-14 21:15:42 +00:00
Moriyoshi Koizumi
db6efcf7e5
Prevent warnings under safe mode
2002-11-14 18:38:38 +00:00
Ilia Alshanetsky
5f7de8bf5b
Fixed bug #20423 .
2002-11-14 16:20:23 +00:00
Wez Furlong
f921ea9f7d
Add a test case for this "bug" # 20134.
...
I'm not sure that this test is actually useful, so I'm not adding
it to the branch.
2002-11-14 14:56:35 +00:00
Wez Furlong
4e85935386
MFB
2002-11-14 14:26:15 +00:00
Ilia Alshanetsky
6b7d77a7a0
Fixed bug #20420 and added partial urls to the test of the function.
2002-11-14 13:40:14 +00:00
Wez Furlong
b01add793c
Add this test to make sure that fopencookie is detected and working
...
correctly (or that the less efficient tmpfile casting is working).
More details in the test itself.
2002-11-14 12:20:36 +00:00
Derick Rethans
bab4957d1c
- MFB: Fixed bug #20484 (stream_get_meta_data crashes on a normal file
...
stream). (Derick, Wez)
2002-11-14 10:56:35 +00:00
Jon Parise
92df58dab6
@- Added an optional "step" parameter to range(). (Jon)
2002-11-14 05:46:10 +00:00
James Cox
ad9788d853
changing..
...
#also, i think the qa and web team needs updating -- i'd like to see web change to a more general infrastructure category... anyone care to volunteer? :)
2002-11-14 02:05:53 +00:00
John Coggeshall
253cecd43a
Added GLOB_ONLYDIR and GLOB_BRACE for compatiable systems for the glob()
...
function.
Modified the layout and some minor logic in the experimental webHarness()
test class
Added Whitespace accidently to array.c :)
2002-11-13 13:31:33 +00:00
Moriyoshi Koizumi
c65cbd2409
Fixed the tests so that they won't be affected by the ini setting of
...
default_charset
2002-11-12 21:37:54 +00:00
Hartmut Holzgraefe
be5e379ec6
HTTP_RAW_POST_DATA BC fixes
...
# hopefully all done, commiting anyway to continue work on my home box
php://input stream fixes (POST data handerl mangles data, CLI crashbug)
2002-11-12 18:29:11 +00:00
Ilia Alshanetsky
ef7bd02688
Added test for swc files (compressed swf files), this must be done in a
...
separate test, since this test has a dependency on the zlib extension.
2002-11-12 17:47:20 +00:00
Ilia Alshanetsky
619fc2c3c0
Data manipulation (for big endian transformation) should occur after the
...
data has been read from file.
2002-11-12 16:14:18 +00:00
Marcus Boerger
3ba7df4c6a
fix warnings
...
#highest bit cannot be set so this must work
2002-11-12 11:46:21 +00:00
Marcus Boerger
f2de217740
correct the last patch: make flock() a function again when it is missing
...
#function name should be flock and not php_flock of cause
2002-11-12 09:09:55 +00:00
Marcus Boerger
b8696890ca
make flock() a function again when it is missing
2002-11-11 23:40:33 +00:00
Marcus Boerger
1554bb6db6
-make the flock() emulation a separate function named php_flock()
...
-use a define to make php_flock() available as flock() when necessary
# The emulated php_flock even works on NFS this will be used elsewhere.
2002-11-11 20:52:09 +00:00
Marcus Boerger
2f06a4fa77
make flock PHPAPI
2002-11-11 16:43:19 +00:00
Jason Greene
f8aae8702c
Switch to using error_docref
...
# Satisfy all those named Mar[ck]us
2002-11-11 16:34:39 +00:00
Moriyoshi Koizumi
f300bdce82
Added support for windows code pages.
2002-11-11 13:31:08 +00:00
Moriyoshi Koizumi
488255ce54
WS
2002-11-11 13:28:34 +00:00
Jason Greene
5e2c75c576
Report function name when log() triggers a base warning
2002-11-11 05:35:04 +00:00
Jason Greene
84bd2901c4
Add the ability to take the logarithm of any base by adding a base parameter
...
to log()
Added regression tests for the new form
2002-11-11 05:21:35 +00:00
Jason Greene
9e2a312f2e
add test function for log()
...
# It is difficult to test an approximation of an approximation, but I
# believe this test should be close enough to verify the function is working
# correctly.
2002-11-11 03:45:04 +00:00
James Cox
85e9468b1d
give Wez streams credits he deserves.
2002-11-10 23:49:04 +00:00
Derick Rethans
a88e5c6e8d
- Remove \n from error messages
2002-11-10 21:24:54 +00:00
Marcus Boerger
bf303c2ab7
hide possible warnings
...
#Why should one initialize $php_errormsg to NULL
#It would be easier to have it initialised by the system, wouldn't it?
2002-11-08 17:03:06 +00:00
Sterling Hughes
80f88a9851
use consistent constants
2002-11-08 15:49:32 +00:00
Ilia Alshanetsky
d28e3d9dc5
Fixed prototype of image_type_to_mime_type(), bug #20094 .
2002-11-08 03:04:23 +00:00
Ilia Alshanetsky
9cc24bad1e
Fixed compile warning when compiling without openssl support.
2002-11-08 03:02:51 +00:00
Ilia Alshanetsky
b6e3ae97c4
Move SWC (compressed swf) check into a separate test because this check
...
requires zlib. This separation allows us to skip the test if zlib is
not available and not fail.
2002-11-08 02:50:28 +00:00
Ilia Alshanetsky
0bdefe4d1e
Added skip conditions in the event the required charset is not avaliabled.
...
Removed old (commented out) module loading code.
2002-11-08 01:12:03 +00:00
Ilia Alshanetsky
7db2ebd8ea
This makes the output of the tests consistent on 32bit and 64 bit platforms.
...
The old test relied on the 32 bit behaviour, which caused them to always fail
on 64 bit platforms.
2002-11-07 17:49:11 +00:00
Ilia Alshanetsky
ada01d75e0
Added swf info.
2002-11-07 16:42:32 +00:00
Ilia Alshanetsky
bd41e0503d
Added swf and swc (compressed swf) test cases and added 'bits' portion to
...
the expected bmp test results.
2002-11-07 16:38:57 +00:00
Ilia Alshanetsky
15fb290edc
Fixed a crash in image_type_to_mime_type(), when a non integer value is
...
passed to the function.
Fixed Width/Height detection of bmp files on big endian systems.
Added bit depth detection for bmp files.
2002-11-07 16:37:46 +00:00
Ilia Alshanetsky
c2337fd851
Added additional tests to parse_url() test suit, corrected the output of 2
...
existing tests, which were affected by a bug fixed in latest update to
parse_url() source code.
2002-11-07 15:46:34 +00:00
Ilia Alshanetsky
8645f5c200
parse_url can now correctly parse mailto:, zlib: (old zlib wrapper) and
...
simular. Thanks to Wez Furlong for noticing the problem.
2002-11-07 15:41:32 +00:00
Ilia Alshanetsky
b801568bbb
Fixed a crash in headers_sent(), that occures if
...
php_get_output_start_filename() returns NULL.
2002-11-07 00:23:58 +00:00
Ilia Alshanetsky
78e2e69b23
Instead of checking whether realpath exists based on OS. Use the
...
HAVE_REALPATH define, which is set if realpath() is avaliable. This patch
also resolves bug #18868 .
2002-11-06 18:07:23 +00:00
Moriyoshi Koizumi
6789057697
Oops, preg_match() returns integer value, not boolean.
2002-11-06 15:14:58 +00:00
Moriyoshi Koizumi
e4460fa5a3
Made skip conditions stricter.
2002-11-06 15:06:35 +00:00
Moriyoshi Koizumi
307024dc68
Fixed typo
2002-11-05 17:46:36 +00:00
Moriyoshi Koizumi
e2112f174a
Added a test for bug #20261
2002-11-05 17:25:59 +00:00
Ilia Alshanetsky
6d57337cda
Fixed a memory leak in array_fill().
...
The refcount hack is now done for ZE1 only and is slightly faster then the
original.
After this patch array_fill() can consistently create arrays with >65k elements.
2002-11-05 16:19:19 +00:00
Moriyoshi Koizumi
bef514afda
style fix
2002-11-05 13:52:11 +00:00
Marcus Boerger
3bfb7162a8
silence
...
#when i get this code right tmp_line is not initialised, too.
#Therefore php_stream_wrapper_log_error() will be called with
#undefined value, will it?
2002-11-05 11:17:45 +00:00
Marcus Boerger
210c6e75f2
Use EXPECT again
2002-11-05 09:52:30 +00:00
Stig Bakken
efeaa5917c
Added separate functions for setting include_path, for environments
...
where ini_set has been disabled. New functions: get_include_path(),
set_include_path(), restore_include_path()
2002-11-05 06:05:48 +00:00
Ilia Alshanetsky
ecb5c7e08e
Revert virtual_link() patch.
2002-11-04 23:24:15 +00:00
David Reid
e66a760f6b
Not all systems have sys/ipc.h so let's check and only include it if we
...
have it.
2002-11-04 20:08:09 +00:00
Ilia Alshanetsky
a8d4bb9d28
Silence compiler warning.
2002-11-04 17:38:30 +00:00
Moriyoshi Koizumi
90792bca29
Fixed bug #20243
2002-11-04 12:53:24 +00:00
Marcus Boerger
81ef4fd958
add tests for functions in image.c (not requiring gd,zlib or exif)
2002-11-03 13:52:45 +00:00
Moriyoshi Koizumi
408e019b25
Disabled output_handler in INI section
2002-11-03 08:37:59 +00:00
Ilia Alshanetsky
ec3b50b8bb
Revert previous dirname() patch.
2002-11-02 18:54:31 +00:00
Marcus Boerger
7ea6e4431e
fix a warning
2002-11-02 10:34:51 +00:00
Marcus Boerger
20d7a682ab
update test
...
#This test fails for me. I expanded the test output and checked the function.
#The only way to fix this behaviour would be to store the last result in a
#global value and fetch the time again in case the newer value is less the
#the older value.
2002-11-01 12:12:40 +00:00
Ilia Alshanetsky
500df32e0c
Fixed bug #18710 . dirname() now returns consistent output when dealing with
...
\ directory separators on Windows.
2002-11-01 00:53:27 +00:00
Moriyoshi Koizumi
f94e45aaf3
Moved the test into the suitable place
2002-10-31 15:28:21 +00:00
Derick Rethans
fb41198f05
- Fix test, in some cases the first significant number in the time
...
was a 3
2002-10-31 06:37:18 +00:00
Hartmut Holzgraefe
d8837750de
getopt with long options reverted to configure problems
...
(may find the wrong getopt.h so needed structures are not defined :( )
2002-10-30 15:11:11 +00:00
Moriyoshi Koizumi
939a5870cf
Fixed typo
2002-10-30 11:57:29 +00:00
Moriyoshi Koizumi
a4edf018cb
Added a test case for bug #20169
2002-10-30 11:48:51 +00:00
Moriyoshi Koizumi
8ff7d5ff54
Fixed bug #20169
2002-10-30 11:42:51 +00:00
Marcus Boerger
6f8bfd148a
make microtime and gettimeofday unavailable instead of return false return
...
false in case needed library function is unavailable.
2002-10-29 23:35:49 +00:00
Melvyn Sopacua
066e8aeef6
Add locale for BSDi
...
# Allthough these characters are used in germany, that doesn't mean, that
# they're not part of the latin-1 character set.
2002-10-29 17:43:08 +00:00
Moriyoshi Koizumi
630a4ff924
Removed dl() stuff
2002-10-29 16:28:12 +00:00
Ilia Alshanetsky
19820c0e83
Added a skip condition for situations where the TZ variable could not be
...
set (safe_mode).
2002-10-29 15:36:47 +00:00
Moriyoshi Koizumi
f498b68c05
WS fix
2002-10-29 15:05:07 +00:00
Wez Furlong
a4a517015e
I like my C comments, thanks very much.
2002-10-29 14:36:49 +00:00
Wez Furlong
2d2a375fa6
length of lyrics is not part of the test.
2002-10-29 14:31:54 +00:00
Marcus Boerger
82317945e5
-WS
...
-Use "//" instead of "/* ... */" comments
#this test fails for me. Very weired...
2002-10-29 14:05:55 +00:00
Marcus Boerger
c4e3bbb5d7
no C++ comments
...
#args sorry on that & thx jani
2002-10-29 13:26:44 +00:00
Marcus Boerger
083fc401fe
fix overrun
2002-10-29 12:53:58 +00:00
Melvyn Sopacua
50dced2eea
Add FreeBSD locale
2002-10-27 17:07:26 +00:00
Melvyn Sopacua
4d8518e83f
Add FreeBSD locale
2002-10-27 17:01:48 +00:00
Ilia Alshanetsky
d88775c5ae
Better fix for bug #20108 .
2002-10-26 22:18:40 +00:00
Ilia Alshanetsky
e12826bc34
Added expected output.
2002-10-26 20:55:48 +00:00
Ilia Alshanetsky
2c480b0f6f
Fixed bug #20108 .
2002-10-26 20:45:17 +00:00
Derick Rethans
758d074822
- Fix typoes
2002-10-26 20:09:15 +00:00
Derick Rethans
77d10050e1
- fix type
2002-10-26 20:07:49 +00:00
Melvyn Sopacua
93fcd7ea5d
Test for bug in sprintf
...
# Doesn't segfault for me, but gives a lot of garbage, so I really don't
# know what the output should be. Results posted to QA
2002-10-26 20:07:26 +00:00
Marcus Boerger
92b63c4be5
remove original version
2002-10-26 16:58:38 +00:00
Marcus Boerger
24fe2a0f2d
change to use EXPECTREGEX and rename
2002-10-26 16:56:26 +00:00
Marcus Boerger
0679a9139f
split tests
2002-10-26 16:48:03 +00:00
Marcus Boerger
0d68286a95
fine tune
2002-10-26 16:09:50 +00:00
Moriyoshi Koizumi
5a6c529f43
Renamed test cases
2002-10-25 21:39:02 +00:00
Ilia Alshanetsky
9526ca998d
This is needed for BSD (FreeBSD, BSDi and possibly others), problem
...
was indentified by Melvyn Sopacua.
2002-10-25 20:09:53 +00:00
Ilia Alshanetsky
fdd2cb6024
Cleanup (make sterling happy).
2002-10-25 19:33:09 +00:00
Moriyoshi Koizumi
e7cc9d0274
Updated the test cases for htmlentities()
2002-10-25 13:12:31 +00:00
Moriyoshi Koizumi
16fc9f6539
Fix build if mbstring is enabled as shared extension.
2002-10-25 13:12:05 +00:00
Marcus Boerger
0433e71a76
README.TESTING examples
2002-10-25 10:46:19 +00:00
Marcus Boerger
d5911a2cbb
remove unnecessary sections
...
#becomes an example
2002-10-25 10:28:37 +00:00
Ilia Alshanetsky
b109f8e3bd
Added a mechanism allowing the disabling of the ability to change
...
certain INI options when safe_mode is enabled.
ATM three options are limited:
max_execution_time
memory_limit
child_terminate
This patch also fixes bug #17287 .
2002-10-25 01:06:46 +00:00
Moriyoshi Koizumi
75db2913f1
Added some cases which test if charset determination with
...
SG(default_charset) works.
2002-10-24 22:21:03 +00:00
Moriyoshi Koizumi
d347143fe1
Improved determine_charset() to look up SG(default_charset) value
2002-10-24 22:04:28 +00:00
Moriyoshi Koizumi
c7c418c25a
Added new test cases for htmlentities
2002-10-24 21:11:41 +00:00
Moriyoshi Koizumi
429f8fa6d7
Fixed ISO-8859-1 handling.
2002-10-24 21:10:45 +00:00
Hartmut Holzgraefe
0e28eaf550
trying to fix #20063
2002-10-24 20:04:16 +00:00
Moriyoshi Koizumi
f2269ef4a3
Added € support to cp1252 table
2002-10-24 19:52:30 +00:00
Melvyn Sopacua
6695544db2
- Add locale string for FreeBSD
...
ATTN: Test nog longer skips, but fails. So whatever has changed since 4.2.3
affects BSD systems.
2002-10-24 19:17:11 +00:00
Marcus Boerger
e1508efb45
fix compiler warning?: implement default mentioned by manual
2002-10-24 19:17:08 +00:00
Marcus Boerger
15b2e277a4
fix compiler warning
2002-10-24 19:15:40 +00:00
Derick Rethans
67670560e4
- Protect function definitions with #ifdef's too
2002-10-24 18:49:57 +00:00
foobar
0bac55b4e7
- If functions are not available on OS, they're not available in PHP.
2002-10-24 18:31:11 +00:00
Moriyoshi Koizumi
e95fa639d6
Reverted because my patch doesn't make sense: it was just my problem.
2002-10-24 14:12:06 +00:00
Moriyoshi Koizumi
06012c3f42
Fix build
2002-10-24 14:01:45 +00:00
Sascha Schumann
2909e5c9c9
centralize #include "build-defs.h" and drop (sometimes inconsistent) other
...
instances
2002-10-24 13:15:49 +00:00
Sascha Schumann
6bf422d62e
Make PHP compile out-of-the-box with uClibc
2002-10-24 12:21:07 +00:00
Jan Lehnardt
cf4d435a12
- fix segfault in proc_open
...
#no bugreports found
2002-10-24 08:46:21 +00:00
Marcus Boerger
1ff1e6496b
use german characters for a test with german locale
2002-10-24 00:49:38 +00:00
Marcus Boerger
37d2a1dd08
fix warning
2002-10-23 23:09:08 +00:00
Ilia Alshanetsky
2f3cd572fb
Added 'skip logic' to the test on platforms where the locale required by
...
this test is not avaliable.
2002-10-23 23:04:43 +00:00
Andrey Hristov
d9c067ecc7
Test case regarding randomization of shuffle() and str_shuffle().
...
The code was provided by Adam Trachtenberg : adam trachtenberg com
2002-10-23 19:33:12 +00:00
Marcus Boerger
fa95a4a269
Shorten
...
# will be used as an example in README.TESTING
2002-10-23 12:47:31 +00:00
Moriyoshi Koizumi
68a5d1bca3
Improved determine_charset() to use mbstring.internal_encoding when the last
...
param is a null string. (If the param is omitted, it takes iso-8859-1 as
the default charset in favour of backwards compatibility.)
2002-10-22 20:11:48 +00:00
Melvyn Sopacua
d6e639a02f
test for locale support in strtoupper
2002-10-22 19:39:17 +00:00
Marcus Boerger
e2a62e21c2
Fix for cases when new_length is NULL
2002-10-22 18:27:56 +00:00
Ilia Alshanetsky
30abd18322
Fixed a possible segmentation fault in file() function.
2002-10-22 18:07:11 +00:00
Ilia Alshanetsky
6b67dc8dd5
Fixed implode test
2002-10-22 17:17:56 +00:00
Frank M. Kromann
938a78a85b
Fixing check to enable dl() for both cgi and cgi-fcgi
2002-10-22 07:00:51 +00:00
foobar
f93096ecb6
Removed tabs and combined those multiple AC_CHECK_FUNCS calls to one.
2002-10-21 23:41:38 +00:00
Ilia Alshanetsky
d8480c8088
Fixed symlink/link functions on ZTS builds.
...
Made URL detection in symlink code use php_stream_locate_url_wrapper().
2002-10-21 23:35:29 +00:00
Wez Furlong
dabf1053cd
Refine stream_select() to work with streams that have data in their read
...
buffers.
When selecting for read, the streams are examined; if any of them have
pending read data, no actual select(2) call is performed; instead the
streams with buffered data are returned; just like a regular select
call.
Prevent erroneous warning in stream_select when obtaining the fd.
2002-10-21 22:54:37 +00:00
Hartmut Holzgraefe
f768d343f5
fixed build for getopt_long-less platforms,
...
removed left-over todo comments
2002-10-21 19:24:48 +00:00
Jon Parise
20e6ed36ec
Convert C++ style comments to C style comments.
2002-10-21 19:12:13 +00:00
Hartmut Holzgraefe
30ed5a5483
killed some warnings identified by sebastian
2002-10-21 19:08:18 +00:00
Hartmut Holzgraefe
8b7e9d7774
some changes to how request input data (Content-Lenght >0) is handled
...
- webdav-specific stuff removed (should be handled using httpd.conf
LIMIT or equivalents)
- always_populate_raw_post_data now working on any method, not just
POST (and webdav methods with allow_webdav_methods), when
Content-Length is greater zero
- raw input data is also available using php://input stream,
this way one doesn't have to care about memory_limit
- input data is now always consumed (although maybe ignored,
this fixes we had withproblems with keep-alive connections
@ raw POST data is now available as php://input stream (hartmut)
2002-10-21 16:41:06 +00:00
Hartmut Holzgraefe
b67b00efcd
getopt() now supports long options on platforms that have getopt_long()
...
getopt() now working independant of register_argc_argv settings
2002-10-21 16:07:21 +00:00
foobar
e232b212ba
There is no point doing this test. Some systems think root can always execute so this is always true.
2002-10-21 00:30:05 +00:00
Derick Rethans
3322581c04
- Only include ftok() if it is available
2002-10-20 13:35:56 +00:00
Derick Rethans
c5a73b31f6
- Remove #ifdefs around ftok function so that it is also available when
...
none of the IPC extensions are enabled.
2002-10-20 10:18:20 +00:00
Derick Rethans
11961b1311
- Hopefully fix test file problems
2002-10-19 19:17:13 +00:00
Wez Furlong
829f1855fd
made fgets() binary safe.
...
php_stream_gets is now a macro which calls php_stream_get_line. The latter
has an option argument to return the number of bytes in the line.
Functions like fgetcsv(), fgetss() can be made binary safe by calling
php_stream_get_line directly.
# HEADS UP: You will need to make clean after updating your CVS, as the
# binary signature has changed.
2002-10-19 13:11:48 +00:00
Ilia Alshanetsky
c3270448ac
Added handling for file:/ schema, which does not contain a host.
2002-10-18 23:54:58 +00:00
foobar
4821b2f301
ws fixes
2002-10-18 22:08:23 +00:00
Ilia Alshanetsky
4b83b189fe
Fixed bug #19971 (optimized the file() function).
...
The file() function is now also binary safe.
2002-10-18 20:39:49 +00:00
Wez Furlong
9b87199e2a
Improve file().
...
Patch by Tal Peer <tal@php.net>
2002-10-18 16:55:47 +00:00
Andrei Zmievski
92d61459c0
@- Fixed an infinite loop in setlocale() when only invalid locale names
...
@ were passed in the array. (patch by Pal Loberg, pallo@initio.no ).
2002-10-18 13:07:50 +00:00
Ilia Alshanetsky
30c16baac2
Renamed word_count to str_word_count to comply with naming conventions.
...
Thanks Andi, for catching this oversight.
2002-10-17 22:44:44 +00:00
Ilia Alshanetsky
cdf39db369
Added support for file:/. Thanks to Thies for noticing the problem.
2002-10-17 13:59:55 +00:00
Ilia Alshanetsky
47b57f2569
Added word_count() function that allows counting of words inside a string.
...
The function also allows the user to retrieve all the words from a string.
2002-10-17 03:27:19 +00:00
Wez Furlong
2f6952c936
Nope, that last one wasn't a leak in main/streams.c, it was
...
file_get_contents misinterpreting the result...
2002-10-15 16:45:26 +00:00
Sterling Hughes
57440cc984
hopefully silence compile warnings on Solaris related to HUGEVAL being
...
undefined.. HUGEVAL is defined (well the manual would indicate so) in
stdlib.h, not math.h.
Bug #: 19807
2002-10-15 14:51:01 +00:00
Ilia Alshanetsky
04db537d97
Added tests for %e & %E
2002-10-15 12:08:02 +00:00
Ilia Alshanetsky
95312e994e
Fixed bug #4232 . (Added support for %e and %E to printf/sprintf)
2002-10-15 12:07:36 +00:00
Ilia Alshanetsky
aba1996d95
Fixed bug #19649 .
2002-10-14 18:13:18 +00:00
Ilia Alshanetsky
fed3b964ea
Added float printing tests.
2002-10-14 16:31:56 +00:00
Ilia Alshanetsky
99f2fc81f3
Fixed a bug (introduced in previous patch) that caused non-double values to
...
be converted to 0 by printf/sprint functions when %f format is specified.
2002-10-14 16:03:16 +00:00
Wez Furlong
86e60a2d7a
@- fgets($fp) (with no length parameter) now uses a buffer as long as the
...
@ the next line available from the $fp. Previously, there was a 1KB limit.
@ (Wez)
2002-10-14 02:28:35 +00:00
Wez Furlong
39f8d4c971
Add a sanity check and more verbose output in the case of an error.
2002-10-14 02:25:51 +00:00
Wez Furlong
70b796b143
(php_socket_errno) win32 errno compatible macro.
...
(php_socket_strerror) win32 compatible strerror replacement.
Add an E_NOTICE when a socket write fails.
2002-10-13 22:01:40 +00:00
Derick Rethans
f9fdd74a03
- Fixed bug #19885 , dl() no longer gives a fatal error when a module
...
could not be loaded. (Derick)
2002-10-13 14:14:34 +00:00
Wez Furlong
3a8c49afc1
Make PHP follow 301 correctly.
...
# There may be other cases that need handling properly; I'll have to spend
# some time investigating why we even need special cases now; it's got
# something to do with Ilia's patch to fix memory leaks.
2002-10-13 01:03:43 +00:00
Derick Rethans
8f7f6045b0
- Make the test do what it says
2002-10-12 16:53:13 +00:00
Ilia Alshanetsky
bcf1d4ff80
Fixed a bug introduced by previous patch.
2002-10-12 16:09:01 +00:00
Stefan Esser
89f4f7b8f5
I already said that this construct was wrong...
...
most probably fixes bug #19876
2002-10-12 08:16:20 +00:00
Ilia Alshanetsky
a0489ac950
Fixed memory leaks.
2002-10-12 03:11:28 +00:00
Markus Fischer
f43e4cc93d
- Document were the first test came from.
2002-10-11 18:06:15 +00:00
Ilia Alshanetsky
8c6088839b
Added test for explode() function.
2002-10-11 15:19:57 +00:00
Ilia Alshanetsky
b7917def13
Fixed bug #19865
2002-10-11 14:48:25 +00:00
Derick Rethans
e06550f853
- Fix problem with var_export when objects with numeric indexes were
...
exported. We now skip those, as there is no way to export valid code for
it.
2002-10-11 13:49:20 +00:00
Sander Roobol
524c9ef26a
Fixed problems with the new nl2br() and beautified the code a little.
...
Closes #19858 .
2002-10-11 12:42:01 +00:00
Derick Rethans
4da5ec8965
- Add case for bug 19858
2002-10-11 11:03:36 +00:00
Sebastian Bergmann
fcf35e7b4c
Fix ZTS build.
2002-10-11 04:44:14 +00:00
Ilia Alshanetsky
287b7f9bcb
Switched from localeconv to localeconv_r, which is apparently thread-safe.
2002-10-11 03:19:38 +00:00
Sterling Hughes
f61889e72d
revert patch
2002-10-10 19:24:45 +00:00
Andrey Hristov
cd282dad98
ws fixes
2002-10-10 18:41:24 +00:00
Ilia Alshanetsky
bc14a6f133
This patch fixes handling of floats on locales where decimal point is not a
...
'.'. Problem is best demonstrated by bug #17079 .
2002-10-10 16:29:35 +00:00
foobar
1b5ee53dd7
- Fix the text alignment to be about same in any browser.
...
# Please test this, it's now same in NS 4.78 (linux), IE 5.5 and
# Mozilla 1.2a (win32). (I don't have any other browsers installed now)
2002-10-10 04:28:15 +00:00
foobar
1345c76162
Revert previous change, it did not fix anything.
2002-10-09 23:18:47 +00:00
James Cox
fbd4b1733d
overrule <center>
2002-10-09 22:32:01 +00:00
Sterling Hughes
2c4aa71d32
clean these functions up using zend_parse_parameters and nuke the use of
...
HASH_OF() which is inappropriate in these cases...
2002-10-09 18:29:45 +00:00
Sterling Hughes
521a9bdadc
small cleanups...
2002-10-09 17:15:56 +00:00
Colin Viebrock
46a96d9363
no charsets, only basic entity escaping
2002-10-09 14:39:39 +00:00
Andrey Hristov
868ae8b6e0
ws fixes.
2002-10-09 13:50:06 +00:00
Ilia Alshanetsky
a75eb9c4dd
Optimizations to various php string functions substr_count(), strrev(),
...
nl2br(), php_addslashes() and php_memnstr().
2002-10-09 13:37:02 +00:00
Andrey Hristov
0e5ff737f4
Test case for str_shuffle().
2002-10-09 10:53:27 +00:00
Andrey Hristov
16a82f2b47
Returning to the old behavior of str_shuffle() a bit. Now the passed string is
...
left unmodified and the shuffled string is returned.
2002-10-09 10:33:22 +00:00
Ilia Alshanetsky
7d19c1b9e5
Added nl2br() test
2002-10-08 23:46:02 +00:00
Ilia Alshanetsky
8c77e13e92
Added test for strrev() function.
2002-10-08 21:51:59 +00:00
Colin Viebrock
080c7a789e
don't define fonts ... use the browser defaults
2002-10-08 19:42:23 +00:00
Andrey Hristov
0ad8b4aa10
Now str_shuffle() has the randomization characteristics of shuffle().
...
str_shuffle() won't return anymore the randomized string and thus will be
consistent with shuffle(). Since this function is new to 4.3.0 no BC
problems.
#Thanks to Adam Trachtenberg for providing good example to check the
#permuations distribution.
2002-10-08 09:52:59 +00:00
Derick Rethans
2005705272
- Skip if the function is not available (in case pcre was not compiled in).
2002-10-08 09:46:31 +00:00
Derick Rethans
5a84ae6489
- Use error_reporting E_ALL
2002-10-08 07:55:02 +00:00
Dan Kalowsky
164188d122
Fix for bug #19798 (submitted by mclap@simpage.mv.ru)
2002-10-07 21:58:56 +00:00
Ilia Alshanetsky
d6775c5c3f
Added tests for strstr(), strpos() and substr_count() functions.
2002-10-07 21:07:42 +00:00
Rasmus Lerdorf
ef9b51bcb0
readdir() was returning NULL instead of FALSE when used on an invalid
...
directory handle. If someone forgot to check (as someone here did) that
the opendir() succeeded, and then followed the documented usage by checking
readdir()!==FALSE things would go awry. The ZEND_FETCH_RESOURCE macro
explicitly does a RETURN_NULL on failure which is not what we want in this
case, so work around it. No need to change it for the OO case since the
object is not created if the opendir fails.
2002-10-07 16:46:38 +00:00