Greg Beaver
ab99c77a5e
add a whole slew of missing returns after throwing an exception, and remove 1 spurious return after RETURN_TRUE
2008-01-14 05:12:46 +00:00
Greg Beaver
611da7a5c1
fix test (make OS-agnostic)
2008-01-14 05:03:02 +00:00
Greg Beaver
5c8c279a55
MFPECL: fix windows build for all cases, and always export symbols (Steph Fox)
2008-01-14 03:15:50 +00:00
Greg Beaver
3fd137c88f
fix build on windows (Steph Fox)
2008-01-14 02:47:55 +00:00
Greg Beaver
a98e3d1192
add missing define for statically-built zip ext
2008-01-13 23:37:27 +00:00
Derick Rethans
c52fda6aae
- Fixed TSRM builds.
...
#- Thanks for the hint Steph.
2008-01-13 18:42:51 +00:00
Derick Rethans
6be4825777
- MF53: Added new date/time functionality:
...
* date_parse_from_format(): Parse date/time strings according to a format.
* date_create_from_format()/DateTime::createFromFormat(): Create a date/time
object by parsing a date/time string according to a given format.
* date_get_last_errors()/DateTime::getLastErrors(): Return a list of warnings
and errors that were found while parsing a date/time string through:
- strtotime() / new DateTime
- date_create_from_format() / DateTime::createFromFormat()
- date_parse_from_format()
2008-01-13 15:16:48 +00:00
Nuno Lopes
fe197abf66
MFB: fix bug #42945
2008-01-13 14:57:54 +00:00
Nuno Lopes
5da2171f41
upgrade to PCRE 7.5
2008-01-13 12:48:00 +00:00
Greg Beaver
f9066b0e49
MFB: a few fixes: overwrote all my careful work in zipint_alias.h with zipint.h, so had to restore that.
...
PHP_RAW_NAMED_FE() won't work, have to use ZEND_RAW_FENTRY
2008-01-13 06:24:27 +00:00
Greg Beaver
f6c466a749
MFPECL: alias all zip identifiers to avoid potential name conflicts with other apache libs that may export zip symbols
2008-01-13 06:01:59 +00:00
Greg Beaver
51603d0a48
wrong file version merged in fix for Bug #40189 , here is the correct fix
2008-01-12 22:28:04 +00:00
Greg Beaver
9131f152ba
new test for inclusion within phar that takes CWD into account
2008-01-12 22:25:40 +00:00
Greg Beaver
f5e4ff21dd
fix segfault in Phar::mungServer() found in frontcontroller20.phpt
2008-01-12 22:21:50 +00:00
Greg Beaver
56e84a390c
fix segfault in Phar::webPhar() if file is in root directory, found in frontcontroller16.phpt
2008-01-12 22:16:00 +00:00
Greg Beaver
27fa0688cc
MFB: far better fix for bug #40189
2008-01-12 22:03:44 +00:00
Greg Beaver
368ba87ead
fix faulty fix for Bug #40189 , and provide real fix for the bug
2008-01-12 21:25:43 +00:00
Greg Beaver
64cb8c8111
fix conflict on win32 if phar compiled statically
2008-01-12 16:18:26 +00:00
Greg Beaver
9bcbbce5bf
add definitions for MAX_WBITS in case it isn't defined
2008-01-12 16:15:17 +00:00
Greg Beaver
e54eb5513e
clarify error message on why opening a stream wrapper failed for allow_url_include/allow_url_fopen, add test for allow_url_fopen
2008-01-12 15:50:17 +00:00
Greg Beaver
4df43510b9
make zip optional
2008-01-12 05:17:12 +00:00
Greg Beaver
e9ee7dbfc5
fix compile on windows
...
remove internal libzip
add required dep on zip (will make optional in a few minutes)
2008-01-12 04:32:19 +00:00
Greg Beaver
673e955d98
export symbols for use by other extensions like phar
2008-01-12 03:42:41 +00:00
Greg Beaver
67a15e332f
add missing defines, s/filename_len/filename_length/ (thanks steph) - now over to the windows box and debug this properly
2008-01-12 02:13:52 +00:00
Greg Beaver
36f3d80779
stupid windows doesn't allow varargs macros, so remove it. remove unused variable
2008-01-11 07:39:02 +00:00
Greg Beaver
aae1442ee3
update package.xml
2008-01-11 07:33:32 +00:00
Greg Beaver
8fb4205a8d
add Phar::interceptFileFuncs()
...
To intercept fopen(), file_get_contents(), opendir(), and all the stat-based functions so that
code like "if (is_readable('./config.inc.php'))" actually works inside of a phar
[DOC]
2008-01-11 07:30:03 +00:00
Greg Beaver
a38e4ff9a7
always mung PATH_INFO and PATH_TRANSLATED, fix segfault if tar-based phar has no stub
2008-01-11 02:52:13 +00:00
Ilia Alshanetsky
f4078bfc73
MFB: Fixed a bug with PDO::FETCH_COLUMN|PDO::FETCH_GROUP mode when a column
...
# by which to group by data is specified.
2008-01-11 01:48:19 +00:00
Greg Beaver
7e65f56264
MAPPHAR_ALLOC_FILE slipped in there somehow
2008-01-10 22:05:30 +00:00
Greg Beaver
74df58d255
fix tsrm build, fix various problems with initialization and zlib/bz2-compressed phars
2008-01-10 21:21:38 +00:00
Brian Shire
4ebc0325d8
- fix truncation of large values on 64-bit systems in http_build_query
2008-01-10 20:28:08 +00:00
Greg Beaver
ab4c2caf4b
add interception of is_dir(), file_exists() and file_get_contents() - will make these optional shortly
2008-01-10 15:13:00 +00:00
Antony Dovgal
335728651f
fix #43750 (stristr() modifies string)
...
patch by Felipe Pena
2008-01-10 14:31:11 +00:00
Marcus Boerger
507ed4a13d
- Fix bug in example code found by Surf Chen
2008-01-10 10:11:21 +00:00
Dmitry Stogov
1d9894a0c5
Added missing warning message
2008-01-10 09:38:41 +00:00
Rob Richards
2e656bee3b
fix crash when using default algorithm
2008-01-09 16:46:52 +00:00
Dmitry Stogov
b4573d5531
Fixed broken soap.wsdl_cache_enabled
2008-01-09 16:46:06 +00:00
Dmitry Stogov
54ab73bf2e
Remplemented support for SplArray using Traversable interface.
2008-01-09 13:50:17 +00:00
Rob Richards
685a7c9a3a
fix win32 compile
2008-01-09 11:23:25 +00:00
Greg Beaver
aeda51223c
update package.xml
2008-01-09 08:49:58 +00:00
Greg Beaver
7def324a80
new tests for bz2-compressed tar or phar-based phars (wow, worked on first try, how about that)
2008-01-09 08:48:56 +00:00
Greg Beaver
21ab2ca8e9
fix gzipped phars in phar file format, add test
2008-01-09 08:45:00 +00:00
Greg Beaver
38a9da1071
apply proper fix of bug #43793 to zlib.deflate (window+16 = gzip)
2008-01-09 08:12:15 +00:00
Greg Beaver
f6b16061d1
implement whole-file compression of phars for phar/tar-based phars
...
still not 100% working, add failing test
add Phar::isCompressed(), which returns either 0, Phar::GZ, or Phar::BZ2
[DOC]
2008-01-09 07:09:04 +00:00
Greg Beaver
2345d26989
apply same fix of bug #43793 to zlib.deflate
2008-01-09 07:03:48 +00:00
Greg Beaver
7cda2c40a6
fix Bug #43793 : zlib filter is unable to auto-detect gzip/zlib file headers
2008-01-09 06:42:56 +00:00
Greg Beaver
59da946283
add tests to package.xml, note new empty directory feature
2008-01-09 03:53:42 +00:00
Greg Beaver
6961da0811
add tests for directory creation and management for tar and zip-based phars, add isPhar() to phar-based test
...
to confirm it is indeed a phar-based archive
2008-01-09 03:51:38 +00:00
Greg Beaver
abde85c420
add rmdir() support, add rmdir to dir test
...
fix *extremely* ancient problem where phar_wrapper_stat always returned success indicating the file existed
rename phar_destroy_manifest to phar_destroy_manifest_entry
2008-01-09 03:47:22 +00:00
Pierre Joye
fa3f2f7ead
- MFB: #43790 , fix crash when no family name has been found
2008-01-09 01:52:03 +00:00
Greg Beaver
9f5b3a229f
fix empty directories in phar, add test
2008-01-09 00:58:37 +00:00
Greg Beaver
1a3624494e
implement mkdir (compiles, not yet tested), support for empty directories in phar (not yet tested)
...
revert last commit of efree(), it's necessary.
2008-01-08 22:14:16 +00:00
Greg Beaver
70ce6b77d0
remove invalid free if opening a phar file in plain_map fails
2008-01-08 21:40:48 +00:00
Greg Beaver
88bdd12803
update package.xml so this can be installed
2008-01-08 20:36:32 +00:00
Greg Beaver
4bce48417b
split stream file handlers into stream.c and directory handlers into dirstream.c
2008-01-08 20:31:54 +00:00
Greg Beaver
63adb98f78
split out zip functions
2008-01-08 19:40:23 +00:00
Ilia Alshanetsky
55a14f57eb
MFB: Fixed bug #43498 (file_exists() on a proftpd server got SIZE not
...
allowed in ASCII mode).
2008-01-08 19:09:12 +00:00
Ulf Wendel
dd8bda11f8
Those functions have been deprecated and removed. We'll test them only internally
...
but not bother php.net with it. Unless you really want to have tests for deprecated
and removed functionality...
2008-01-08 13:18:46 +00:00
Andrey Hristov
5a4f6015bb
strncpy->strlcpy
2008-01-08 13:13:39 +00:00
Ulf Wendel
96c63a378e
Looks more than it is. Its whitespace, adding error handling in a few places,
...
changing SQL statement formatting etc. No "real" changes.
2008-01-08 12:43:08 +00:00
Greg Beaver
b93b48663d
complete set of new tests for zip-based phars (need to test compression for zip-based phars)
...
fix a whole bunch of zip-related bugs
tar tests need some naming
add phar information to error messages, fix existing tests to reflect this
2008-01-08 07:08:46 +00:00
Greg Beaver
0c346d9aec
add tar-based to 2 tests
2008-01-07 22:22:27 +00:00
Greg Beaver
36efc2a907
eliminate potential double-free of alias
...
major improvement of zip/tar-based phar stub execution, now __FILE__ says it is the phar, and not phar/.phar/stub.php,
so that the same stub can be used for phar or tar/zip-based phars
ridiculous speedup of rename() within a phar (something like 1000%)
last of the tar-based phar fixes
new tests for tar-based phars, fix existing tests to use new format of __FILE__
2008-01-07 22:21:10 +00:00
Greg Beaver
e78819fc01
new tests
2008-01-07 18:07:10 +00:00
Greg Beaver
5767e570b4
make test OS-agnostic
2008-01-07 18:05:23 +00:00
Greg Beaver
d9d91f424b
fp must be nulled on every write also when == phar->fp or we get stale fp and problems. add new test that unearthed this problem
2008-01-07 17:58:31 +00:00
Greg Beaver
4a59f700f1
add tar-based to test names
2008-01-07 17:41:30 +00:00
Greg Beaver
b18b960e17
new tests
2008-01-07 17:40:43 +00:00
Greg Beaver
71f6ae0be5
fix segfault (now all existing tests pass
2008-01-07 17:31:53 +00:00
Greg Beaver
ed312a7a05
fix segfault (duh, can't free something that was not initialized)
2008-01-07 17:28:45 +00:00
Greg Beaver
3dca799fbb
fix extension detection for aliases with no extension
2008-01-07 17:18:41 +00:00
Greg Beaver
9e179e4b93
fix test
2008-01-07 05:46:12 +00:00
Greg Beaver
8a46146f37
fix stat of directory in tar/zip
...
improve phar recognition of tar/zip-based phars in phar_compile_file
fix segfault in Phar::webPhar() with invalid redirect
add Phar->isTar()/isZip()/isPhar() to determine internal file format
fix creation of tar-based phars from filename in some circumstances
fix read of corrupted file contents from a tar if the tar had been opened readonly and then modified
ensure directories are marked with is_dir in tar file format entries
copy fp_refcount logic into phar_tar_flush() from phar_flush()
fix segfault when flushing a tar with a new stub/alias
2008-01-07 05:41:09 +00:00
Greg Beaver
ff1c8b2beb
new tests for tar format
2008-01-07 05:35:18 +00:00
Greg Beaver
826e98be83
eliminated memleak, now to make it recognize "dir" as a directory
2008-01-06 05:28:27 +00:00
Greg Beaver
99922cb729
fix typo in phar.c if bz2 is disabled
2008-01-06 05:16:20 +00:00
Greg Beaver
0f94226b71
new test, exposes some memleaks, but not yet sure where they are (done for today)
2008-01-05 23:26:24 +00:00
Greg Beaver
632a633154
fix segfault, add separate tar test for readonly=0 on corrupted tar
2008-01-05 23:02:23 +00:00
Greg Beaver
bd0d9e8de3
remove mung server list hash destroy, this is done in shutdown
2008-01-05 22:48:06 +00:00
Greg Beaver
2fa568b7b0
do not attempt to create a new phar if a file exists and is corrupted or is not a phar archive,
...
i.e. require a clean slate - a non-existent file or a valid phar archive - to muck around with phar contents
add the first tar-based phar test
2008-01-05 22:46:54 +00:00
Greg Beaver
ec0cd27f0d
modify test to ensure that query string is preserved when munging server vars
2008-01-05 22:04:58 +00:00
Greg Beaver
2410cc96b6
complete tests for Phar::mungServer
2008-01-05 22:02:33 +00:00
Greg Beaver
efc22a3726
new tests, fix mime type overrides (all web front controller primary features are now tested and working for regular phar files)
2008-01-05 06:14:43 +00:00
Greg Beaver
e864f512bb
new test, free resources on error in webPhar() (thanks new test\!)
2008-01-05 05:47:47 +00:00
Greg Beaver
dd11d4f64e
new test
2008-01-05 05:12:44 +00:00
Greg Beaver
41762671c8
new test
2008-01-05 04:30:30 +00:00
Greg Beaver
8f79663143
new test
2008-01-05 04:27:01 +00:00
Greg Beaver
3a27729fd8
new test
2008-01-05 04:12:24 +00:00
Greg Beaver
b859c9dd4b
beautify 404 error handler, and note missing file.
...
throw exception if webPhar() is attempted with an extracted file, as webPhar() makes no sense on-disk
2008-01-05 04:03:33 +00:00
Greg Beaver
2fd9f17353
clarify test names
2008-01-05 03:50:13 +00:00
Greg Beaver
08b7b76418
fix Location header for index if request has a /, 2 new tests, add index.php to frontcontroller phar
2008-01-05 03:49:01 +00:00
Greg Beaver
1549f54264
clarify test name
2008-01-05 03:42:05 +00:00
Greg Beaver
653dc9e8ce
fix front controller tests (requires patch to run-tests.php posted to internals a little while ago)
...
allow phars to have extension .php as last resort
fix phar-based phars for MIME_OTHER type
2008-01-05 03:41:43 +00:00
Ulf Wendel
d435cd76df
Added:
...
mysqli_fetch_assoc_zerofill.phpt
checks for UNSIGNED ZEROFILL
mysqli_stmt_bind_result_zerofill.phpt
checks for UNSIGNED ZEROFILL
mysqli_stmt_bing_call_user_func.phpt
Needs to be refined once http://bugs.php.net/bug.php?id=43568
has been closed and a decision has been made on call_user_func_array().
There seems to be a BC break between 5_2 -> 5_3 .
Johannes has an eye on it
Modified:
mysqli_change_user_insert_id.phpt
skip test for buggy MySQL Server versions
mysqli_insert_id.phpt
added additional checks
2008-01-04 18:17:13 +00:00
Greg Beaver
67688371f7
use zip_free() instead of zip_close(), and don't add a stub if it already exists in phar_zip_flush(), update TODO
2008-01-04 17:04:41 +00:00
Marcus Boerger
2eecfbf94e
- Change 'print' to 'die' for skip notices
2008-01-04 16:26:44 +00:00
Marcus Boerger
95a9f1faf6
- Fix module info for bz2
...
- Differentiate enabled, disabled and unavailable
2008-01-04 16:10:49 +00:00
Marcus Boerger
4aec466e95
- Pendantic changes
2008-01-04 14:06:50 +00:00
Raghubansh Kumar
acf19e9265
New testcases for array_diff_assoc() function
2008-01-04 13:59:44 +00:00