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
Raghubansh Kumar
9e3069cea5
New testcases for array_diff() function
2008-01-04 13:59:18 +00:00
Ulf Wendel
6b0e5b66fb
Fix for Bug #43036
2008-01-04 09:00:35 +00:00
Greg Beaver
7babdcfe59
fix windows build (hopefully :)
2008-01-04 04:59:12 +00:00
Greg Beaver
e8a5b20514
replace crappy $_SERVER munging with explicit munging via
...
Phar::mungServer(). This static method takes an array with one of these 4 indices (case-sensitive):
'PHP_SELF', 'SCRIPT_NAME', 'SCRIPT_FILENAME', 'REQUEST_URI'
and removes any reference to the actual path on the server. This allows older apps to function unmodified inside a phar.
the variables are re-registered as PHAR_PHP_SELF and company to allow access from clever script files
[DOC]
2008-01-04 04:57:11 +00:00
Greg Beaver
8e18f1cae1
Phar::webPhar() and various problems relating to shutdown in an apache process fixed
2008-01-04 01:45:37 +00:00
Greg Beaver
f589855093
fix tar-based phars creation and loading
2008-01-03 18:13:27 +00:00
Ulf Wendel
ba1f8fba1d
Remove test for deprecated (and removed) function
2008-01-03 17:20:19 +00:00
Ilia Alshanetsky
e86494394d
MFB: Skip test for PostgreSQL driver since error is too dissimilar to other
...
drivers
2008-01-03 16:47:01 +00:00
Nuno Lopes
1dc0e94e0f
MFB: remove unused PHP_EXTNAME_API macros.
...
#in preparation for the gcc 4 visibility patch
2008-01-03 16:18:29 +00:00
Johannes Schlüter
584a7c7be8
- Remove more replication stuff
2008-01-03 14:32:52 +00:00
Andrey Hristov
6445c6c1fe
Header protection
2008-01-03 12:50:05 +00:00
Andrey Hristov
648afb2ef5
Remove unneeded field
2008-01-03 11:38:03 +00:00
Ulf Wendel
60be62b781
Make it work for MySQL 6.x as well.
2008-01-03 10:19:02 +00:00
Raghubansh Kumar
aa337c4bfc
this testcase has been split into many smaller testcases and committed.
2008-01-03 09:38:43 +00:00
Raghubansh Kumar
7a038912b0
New smaller testcases for array_map() function
2008-01-03 09:35:11 +00:00
Steve Seear
261a88fc3a
Adding PHPT tests for the ReflectionMethod class.
2008-01-03 09:07:56 +00:00
Greg Beaver
c83b566218
commit missing files (helps if you cvs add, don't it?) for tar implementation
2008-01-03 05:35:19 +00:00
Greg Beaver
8ee4266b3f
initial tar support - a few kinks to work on in phar creation, but read works
2008-01-03 04:45:00 +00:00
Andrey Hristov
69f7eaa749
- Fix problems with double definitions
...
- Clean up a bit a type mess - 4 types less. No need to have aliases
for the same thing (unification is the name).
- New macro for Johannes mysqlnd_stmt_ro_result_metadata
----------------------------------------------------------------------
2008-01-02 21:16:46 +00:00
Ilia Alshanetsky
66b9bc29dc
MFB: Fixed bug #43647 (Make FindFile use PATH_SEPARATOR instead of ";")
2008-01-02 19:19:45 +00:00
Derick Rethans
6973393112
- Updated to version 2007.11
2008-01-01 15:31:43 +00:00
Hannes Magnusson
d3cb66967f
Fix test
2008-01-01 14:35:26 +00:00
Greg Beaver
652d39c330
add zip-based phar support. not quite working is webPhar(), not sure why yet
2007-12-31 22:42:40 +00:00
Sebastian Bergmann
9b620d50b4
Bump copyright year, 2 of 2.
2007-12-31 07:12:20 +00:00
Sebastian Bergmann
e54c79141b
Bump copyright year, 1 of 2.
2007-12-31 07:09:33 +00:00
David Soria Parra
3178b2f2c7
Test for bug 43663
2007-12-30 17:48:24 +00:00
David Soria Parra
e33ce44214
- Fixed bug #43663 (Extending PDO class with a __call() function doesn't work).
2007-12-30 17:43:08 +00:00
Jani Taskinen
060d95bb9e
- This makes no sense with non-ipv6 builds. (and fixes lot of issues with misconfigured servers)
2007-12-29 18:46:10 +00:00
Hannes Magnusson
cdaaa15ddf
MFB5.2: Fix test
2007-12-29 11:39:06 +00:00
Antony Dovgal
6b31eb58c7
fix test
2007-12-29 10:32:39 +00:00
Greg Beaver
b8592e228d
make blah.phar/ access indexfile just like blah.phar
2007-12-29 02:40:49 +00:00
Greg Beaver
f56865ad4d
fix redirects and s/redirects/rewrites/
2007-12-29 02:38:29 +00:00
Greg Beaver
9320ac9893
remove FIXME - it's been fixed
2007-12-29 02:04:09 +00:00
Greg Beaver
3dcee1c8c7
fix index/custom 404 page
2007-12-29 02:01:12 +00:00
Greg Beaver
06a98d96c7
update proto, arginfo for webPhar
2007-12-29 01:37:12 +00:00
Greg Beaver
acc44900de
add vastly improved 404 handling
2007-12-29 01:35:46 +00:00
Greg Beaver
60dc8e5ff4
fix redirect to index file
2007-12-28 23:33:15 +00:00
Ulf Wendel
b9963f50d9
Merge from 5_3. Fixing 32 vs. 64bit issue.
2007-12-28 18:28:21 +00:00
Ulf Wendel
4ba70f548c
Merge from 5_3 - MySQL 6.0 SQL fixes
2007-12-28 18:19:17 +00:00
Andrey Hristov
d265efd570
Remove RPL functions. They were always experimental and lead to crashes.
...
The underlying functions will be removed from libmysql as of MySQL 6.0, so
it's right time to remove them.
2007-12-28 15:38:23 +00:00
Ulf Wendel
5e64d2273e
Sync from 5_3. Cutting off a few edges:
...
- use connection parameter from environment variables
- check if MySQL supports procedures
- whitespace
2007-12-28 14:51:26 +00:00
Dmitry Stogov
9f4a22f1a8
Fixed test related to bug #38469
2007-12-28 13:23:13 +00:00
Nuno Lopes
bda5e59329
MFB: fix tests
2007-12-27 16:05:58 +00:00
Dmitry Stogov
eb572d0093
Added ability to use SplArrays instead of plain arrays in ext/soap. (Joshua Reese, Dmitry)
2007-12-27 13:10:32 +00:00
Dmitry Stogov
171c52087e
Fixed 32/64-bit tests (Serg)
2007-12-27 11:23:30 +00:00
Hannes Magnusson
bc3e6d743c
Fix typo (TAKAGI Masahiro)
2007-12-26 21:01:15 +00:00
Greg Beaver
e1a41da652
fix on windows
...
# it works! it works!
2007-12-26 16:59:01 +00:00
Hartmut Holzgraefe
229919cb55
Fix for bug #42548 "PROCEDURE xxx can't return a result set"
2007-12-25 18:23:07 +00:00
Raghubansh Kumar
74584f8521
fix test : do not run when run as root
2007-12-25 16:14:32 +00:00
Greg Beaver
e861913e39
fix windows build
...
# there HAS to be a better way to do this...
2007-12-24 21:40:54 +00:00
Greg Beaver
4ae47c1df9
remove unused variable
2007-12-24 20:48:12 +00:00
Greg Beaver
5200481aaf
fix mem leak
2007-12-24 20:30:44 +00:00
Dmitry Stogov
0c75772f68
Additional fix for bug #42868
2007-12-24 18:10:20 +00:00
Raghubansh Kumar
11178281fc
new testcases for dir() function
2007-12-24 05:07:47 +00:00
Raghubansh Kumar
b90cab7ec7
fix tests
2007-12-24 04:29:26 +00:00
Greg Beaver
02c7ff1343
complete re-factoring of front controller. Now it is done with
...
Phar->webPhar():
<?php
Phar::webPhar();
__HALT_COMPILER();
With the above stub, the default front controller will kick in. An array of mime type overrides, and another
array mapping phar file entry -> redirected entry can be used to further customize
[DOC]
2007-12-23 21:12:42 +00:00
Greg Beaver
d443c76bed
new test for front controller
2007-12-22 07:47:15 +00:00
Greg Beaver
8e4cc4b3dd
first attempt at major new feature: default front controller for web
...
Currently, an entire phar entry is leaked for no obvious reason, otherwise it works. Sample code:
The phar has to be created using Phar->useFrontController(); and the stub performs actual resolution of which file to load:
<?php
Phar::mapPhar();
include 'phar://' . __FILE__ . '/' . substr($_SERVER['REQUEST_URI'], strlen(basename(__FILE__)));
__HALT_COMPILER();
?>
Phar automatically determines mime type from the file extension and either parses or displays the file. Modification of REQUEST_URI
and other variables should happen in the stub
[DOC]
2007-12-22 07:46:53 +00:00
Greg Beaver
245ca069c8
same fix we used in linux to make all extension deps optional
2007-12-21 19:02:20 +00:00
Dmitry Stogov
306a73677e
Fixed test
2007-12-21 09:42:07 +00:00
Greg Beaver
185a4a8309
on second thought, hooking into getcwd() is a bad idea, who uses this for code loading, anyways?
2007-12-21 04:49:25 +00:00
Greg Beaver
0d830a27ea
implement cleaning of crap paths - major functionality boost
2007-12-20 23:12:40 +00:00
Raghubansh Kumar
1444624663
fix tests
2007-12-20 17:25:06 +00:00
Robert Nicholson
c142564b00
new tests for array_map usage variations - string keys and references
2007-12-20 11:18:08 +00:00
Greg Beaver
0bfc046eac
remove minor (and unnecessary I might add) windows compile warnings
2007-12-20 04:12:23 +00:00
Raghubansh Kumar
c4061cce23
fix test
2007-12-19 10:37:42 +00:00
Greg Beaver
d4eccb4471
holy cow - include/fopen/cwd magic fully working on unix now for windows testing
2007-12-19 04:37:25 +00:00
Greg Beaver
2222da9493
making progress (include magic works)
2007-12-19 03:17:05 +00:00
Steve Seear
8a76a81e47
Adding PHPT tests for the ReflectionProperty class. reflectionProperty_getValue_error.phpt and reflectionProperty_setValue_error.phpt are failing with behaviour that is inconsistent with PHP5_3.
2007-12-18 17:25:40 +00:00
Greg Beaver
0c51d58138
[unfinished] magically handle getcwd() and fopen() with include_path inside phar
...
this work is incomplete, but compiles and existing tests pass
2007-12-18 17:01:24 +00:00
Ilia Alshanetsky
f8b7f4bed6
MFB: Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can
...
result in a crash)
2007-12-18 13:48:19 +00:00
Derick Rethans
b5629cb468
- Fixed var_export() for array keys
...
- Fixed broken explode() test
2007-12-18 10:53:25 +00:00
Greg Beaver
d757f6ee5e
oops, need to make these things optional, not required
2007-12-18 05:32:11 +00:00
Marcus Boerger
2501e574b9
- Fix folding (again)
...
- Fix clone mask
2007-12-17 13:47:09 +00:00
Raghubansh Kumar
73c041ee8c
fix tests
2007-12-17 13:00:52 +00:00
Dmitry Stogov
9c024a30a5
Fixed bug #42868 (Floats cast to integer droduce unpredicatable results). (Zoe Slattery)
2007-12-17 11:06:43 +00:00
Jani Taskinen
432ed37817
- Fix indent of macros
2007-12-17 08:51:58 +00:00
Sara Golemon
18e9c88c10
Add support for encoding options
2007-12-17 07:48:21 +00:00
Sara Golemon
74adb81f42
Add scoping braces for variable declaration
2007-12-17 05:16:40 +00:00
Johannes Schlüter
0e480791cb
- Fix #43611 SplObjectStorage is available since 5.1.2
2007-12-16 22:19:35 +00:00
Hannes Magnusson
12729f9420
MFB5.3: Fix test
2007-12-16 19:19:14 +00:00
Ilia Alshanetsky
b5ccc0ad91
Fixed bug #43589 (a possible infinite loop in bz2_filter.c)
...
# Patch by Greg Beaver
2007-12-16 17:21:44 +00:00
Ilia Alshanetsky
6711417e88
MFB: Fixed bug #43606 (define missing depencies of the exif extension)
2007-12-16 17:15:05 +00:00
Greg Beaver
7fa0b43518
fully implement Phar->copy(), fix test
2007-12-16 06:31:00 +00:00
Greg Beaver
427e54dcd9
add failing test
2007-12-16 01:11:50 +00:00
Greg Beaver
f11103a9a1
Phar::copy() [not yet working]
2007-12-16 00:57:39 +00:00
Hannes Magnusson
6eee7dfce1
MFB: Fix protos
2007-12-15 12:57:05 +00:00
David Coallier
4c7266904d
- MFB: Bug #41528
...
- Added possibility to serialize and unserialize classes that extend to ArrayObject
- See ext/spl/tests/array_023.phpt and ext/spl/tests/bug41528.php for references
- Put a folding for all SPL_ARRAY_METHOD() def
2007-12-15 01:18:28 +00:00
Etienne Kneuss
d6259bc207
Fix folding
2007-12-14 22:52:53 +00:00
Greg Beaver
bb4096ff29
Phar->buildFromIterator now can also accept a stream handle as a value in addition
...
to a file path (string) or SplFileInfo object
[DOC]
2007-12-14 19:45:22 +00:00
Greg Beaver
f01adb0048
fix test
2007-12-14 18:54:54 +00:00
Greg Beaver
47cef85c22
fix alias overloading detection on windows
2007-12-14 18:42:57 +00:00
Greg Beaver
052dcfcbae
fix test
2007-12-14 18:37:49 +00:00
Greg Beaver
4fb3122b16
fix terrible logic discovered in windows testing (not sure how it ever worked on unix)
2007-12-14 18:34:12 +00:00
Raghubansh Kumar
c9ff678d1c
New testcases for token_get_all() function
2007-12-14 16:19:29 +00:00
Scott MacVicar
b03ba567d8
MFB: Change createFromTimestamp to setTimestamp
2007-12-14 14:52:38 +00:00
Scott MacVicar
feaa1ba014
- Add Datetime::createFromTimestamp to allow setting of a unix timestamp without invoking the date parser.
2007-12-14 14:27:18 +00:00
Greg Beaver
708569029c
windows fixes #2 (thanks Steph you rule)
2007-12-14 05:45:48 +00:00
Greg Beaver
c6fe26af37
windows fixes (thanks Steph you rule)
2007-12-14 05:39:20 +00:00
Greg Beaver
16c8adf0c1
fix test
2007-12-14 05:22:53 +00:00