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