Commit Graph

22716 Commits

Author SHA1 Message Date
Greg Beaver
e69ea0731d more test coverage and fixes from increased coverage to opendir(). dir.phpt fails, but for wrong reasons (bug uncovered that needs fix) 2008-04-14 04:44:04 +00:00
Greg Beaver
aee1be851e add fstat to 027 test. Remove phar_dir_stat, stat should not be possible on a dir handle 2008-04-13 23:57:44 +00:00
Greg Beaver
61f439c1ad add to 027 test (for code coverage) of fwrite on dir handle 2008-04-13 23:48:46 +00:00
Greg Beaver
653b67b34f minor optimization 2008-04-13 23:47:15 +00:00
Greg Beaver
6f6a6dcb0e 100% code coverage for dir handle seeking, remove error log (not used in dir seeking, causes leak), update 027 test to have seeking test 2008-04-13 23:46:15 +00:00
Greg Beaver
c22b6a76ed add test for stat interception, fix stat interception 2008-04-13 23:33:31 +00:00
Hannes Magnusson
1972f83385 MFB5.3: Fixed bug#44712 (stream_context_set_params segfaults on invalid arguments) 2008-04-13 22:40:35 +00:00
Greg Beaver
abb227db46 sync fixed test properly with 5.3 branch 2008-04-13 21:41:46 +00:00
Greg Beaver
d90aa1a587 fix test 2008-04-13 21:41:45 +00:00
Greg Beaver
dc4da5e2f9 make tests php version-agnostic with regards to stream errors 2008-04-13 21:31:46 +00:00
Greg Beaver
02bbb72f6d add test for fopen interception, fix fopen interception 2008-04-13 20:46:45 +00:00
Greg Beaver
24d5595a8f add test for file_get_contents interception, fix file_get_contents interception 2008-04-13 19:36:33 +00:00
Greg Beaver
72daaf1d44 add test for opendir, fix bugs found 2008-04-12 22:21:29 +00:00
Greg Beaver
0814b2df09 fix build if SPL is disabled 2008-04-12 21:43:39 +00:00
Felipe Pena
f6639abf7d MFB: Fixed bug #44703 (htmlspecialchars() does not detect bad character set argument) 2008-04-11 19:08:05 +00:00
Robin Fernandes
30fd5ba517 Fix test parse_url_variation_002.phpt for 64bit platforms. 2008-04-11 14:35:07 +00:00
Greg Beaver
b0f281b159 restore Phar->compress/decompress() to simplify $phar->convertToExecutable(NULL, Phar::GZ) to $phar->compress(Phar::GZ)
[DOC]
2008-04-11 13:41:59 +00:00
Greg Beaver
8f28d19d4e cosmetics, extra space 2008-04-11 13:26:36 +00:00
Greg Beaver
3493fb6561 combine PharFileInfo->setCompressedGZ/setCompressedBZIP2 into compress() with parameter Phar::GZ or Phar::BZ2
use ZEND_ACC_PUBLIC in PharFileInfo definitions, to be consistent
[DOC]
2008-04-11 13:26:03 +00:00
Greg Beaver
ab34fcac05 merge PharFileInfo->isCompressed/isCompressedGZ/isCompressedBZIP2 by adding an
optional parameter to isCompressed for testing specific compression algorithm
[DOC]
2008-04-11 13:07:14 +00:00
Greg Beaver
c07a07ea68 change PharFileInfo->setUncompressed to decompress
[DOC]
2008-04-11 12:56:53 +00:00
Antony Dovgal
3c48de1912 fix tests 2008-04-11 11:05:33 +00:00
Antony Dovgal
0e7655209a fix 2 segfaults in ZTS mode 2008-04-11 10:59:50 +00:00
Steve Seear
20b755c30e POSIX extension error tests 2008-04-11 09:33:59 +00:00
Steve Seear
bd6292a700 POSIX extension variation tests (failing due to spurious array to string conversion notices). 2008-04-11 09:29:08 +00:00
Robin Fernandes
91df70bdaa Adding some tests for ereg and url functions. 2008-04-11 08:57:06 +00:00
Greg Beaver
c0d82e966f refactor compress/convertToTar/convertToPhar/convertToZip/convertToExecutable/convertToData
into 2 methods:
convertToExecutable/convertToData.  Both methods accept 3 optional parameters
1 archive type, Phar::PHAR, Phar::TAR, or Phar::ZIP
2 compression Phar::NONE, Phar::GZ, or Phar::BZ2
3 file extension.  Default is <format>.<compression> where .phar.tar is executable .tar
convertToExecutable always returns a Phar object
convertToData always returns a PharData object
also added Phar::PHAR, Phar::TAR, and Phar::ZIP class constants
[DOC]
2008-04-11 04:20:15 +00:00
Marcus Boerger
3bfa3d163d - No longer allow to disable pcre 2008-04-10 19:41:24 +00:00
Nuno Lopes
5d183af5f4 MFB 2008-04-10 19:14:23 +00:00
Nuno Lopes
c7e53aa963 MFB 2008-04-10 18:51:54 +00:00
Greg Beaver
f0ff6fb109 s/getContents/getContent/ 2008-04-10 13:41:29 +00:00
Greg Beaver
61b5fc48e3 re-factor all-file compression. Remove compressAllFilesGZ/compressAllFilesBZ2 in favor of
unifying compressFiles which accepts Phar::GZ or Phar::BZ2 as argument.  rename uncompressAllFiles to decompressFiles
2008-04-10 13:40:26 +00:00
Philip Olson
9de8833bea Updated the documentation credits 2008-04-10 05:30:34 +00:00
Greg Beaver
06df9bff83 add Phar->isWritable() for detecting whether a phar archive can be written to based on phar.readonly combined with actual file permissions
[DOC]
2008-04-10 03:32:10 +00:00
Greg Beaver
1c3097fcbe make built-in SplFileInfo->isWriteable() work for PharFileInfo as well, by ensuring phar->is_writeable is set/reset when phar.readonly is changed 2008-04-10 03:12:08 +00:00
Marcus Boerger
54502e978c - SPL can no longer be disabld as discussed some time ago (checked back with RM) 2008-04-09 21:47:29 +00:00
Greg Beaver
abfc228f36 add addFile/addFromString/addEmptyDir. API is identical to ext/zip
[DOC]
2008-04-09 19:23:31 +00:00
Etienne Kneuss
f6df935264 Fix #44511 (Ensure no exception was already thrown by php_stream_opendir) 2008-04-09 19:00:48 +00:00
Greg Beaver
e56beeeefd add PharFileInfo->getContents() to retrieve file contents
[DOC]
2008-04-09 18:12:41 +00:00
Felipe Pena
bb8b904eec MFB: Fixed bug #44678 (spliti error message includes wrong function name) 2008-04-09 13:52:53 +00:00
Jani Taskinen
defea67cf5 - Add missing basic test (see also bug #44574) 2008-04-08 12:32:51 +00:00
Jani Taskinen
6fa8f52e7d - fix test 2008-04-08 11:58:03 +00:00
Jani Taskinen
30d057d32c - Fixed bug #44667 (proc_open does not handle pipes with the mode "wb" correctly) 2008-04-08 08:42:05 +00:00
Andrey Hristov
212c00cd1a Fix snapshot build 2008-04-08 07:46:05 +00:00
Ilia Alshanetsky
01ef65015b MFB: Fixed bug #44663 (Crash in imap_mail_compose if "body" parameter
invalid)
2008-04-08 00:02:01 +00:00
Christopher Jones
bb4c6a7267 MFB: PECL #13523 (x86_64 build) and versioning sync 2008-04-07 22:34:03 +00:00
Christopher Jones
ca31d5bc68 MFB: Fix OCIPing 10.2 macro 2008-04-07 22:33:31 +00:00
Christopher Jones
135476bdb8 MFB: Test updates 2008-04-07 22:33:08 +00:00
Pierre Joye
66f7ed7240 - #13181, fix resource destruction during context change 2008-04-07 21:45:17 +00:00
Derick Rethans
3954343162 - Fixing returned offset.
- Algorithm optimization.
2008-04-07 17:43:49 +00:00
Derick Rethans
d3a0dbf991 - Fixed testcases. 2008-04-07 17:41:48 +00:00
Etienne Kneuss
b5cdc9ffee Implement forward_static_call(_array) to complete LSB. Patch by Mike Lively 2008-04-07 10:39:43 +00:00
Ilia Alshanetsky
c8d256ed2f MFB: Fixed bug #44603 (Order issues with Content-Type/Length headers on
POST)
2008-04-06 15:21:45 +00:00
Joe Orton
e15c6ca077 Fix another case of a broken stream->fd cast in 64-bit builds. 2008-04-04 12:58:32 +00:00
Joe Orton
8176b6e8f4 Fixed bug #32979 (OpenSSL stream->fd casts broken in 64-bit build)
(stotty at tvnet dot hu)
2008-04-04 12:49:57 +00:00
Antony Dovgal
5b6995730d fix folding 2008-04-04 07:47:18 +00:00
Ilia Alshanetsky
5fe2de0d2a MFB: Fixed bug #44613 (Crash inside imap_headerinfo()) 2008-04-02 16:29:08 +00:00
Antony Dovgal
3fbf99a283 decrement parent's refcount only when destroying the child, not when decrementing child's refcount 2008-04-02 14:56:03 +00:00
Antony Dovgal
9dea5a0747 initialize variable 2008-04-02 14:35:16 +00:00
Felipe Pena
9b30b7398a Typo 2008-04-01 18:48:41 +00:00
Christopher Jones
7e9a08adb8 Use new version macro 2008-04-01 18:38:17 +00:00
Ilia Alshanetsky
306eb4fad2 MFB: Fixed bug #44594 (imap_open() does not validate # of retries parameter) 2008-04-01 18:29:09 +00:00
Steph Fox
c2a8b95137 Bump dev version ready for any new changes 2008-04-01 17:59:00 +00:00
Ilia Alshanetsky
e831c158c8 Revert unintended bits from "Added a warning message" commit 2008-03-31 22:44:38 +00:00
Steph Fox
d834c32dea - Bring the majority of PECL extensions into line with macro/x.x.x versioning.
- Please use the -dev tag during the development cycle so that snapshots can easily be distinguished from releases.
2008-03-31 09:37:51 +00:00
Derick Rethans
08534e1bee - Fixed a bug in formatting timestamps when DST is active in the default
timezone.
2008-03-31 09:10:54 +00:00
Felipe Pena
2fba4f5e61 - Fix build 2008-03-30 15:31:33 +00:00
Ilia Alshanetsky
c22a23ccd5 MFB: Added a warning message 2008-03-30 15:06:07 +00:00
Felipe Pena
223b7349a0 MFB: Fixed bug #44564 (escapeshellarg removes UTF-8 multi-byte characters) 2008-03-30 12:27:37 +00:00
Felipe Pena
4a5536a033 - Fixed bug #44533 (floatval() issues E_NOTICE "non well formed numeric value")
(Keep the old behavior, as other related functions)
2008-03-29 22:02:20 +00:00
Greg Beaver
54cfa7437c correct last commit (comparison of "nu" in wrong order) 2008-03-28 21:03:29 +00:00
Felipe Pena
a9bdd4d456 MFB: Fixed bug #44557 (Crash in imap_setacl when supplied integer as username) 2008-03-28 16:45:59 +00:00
Greg Beaver
6ff19e08f4 fix Bug #13518: comparision of a char* pointer with a string literal 2008-03-27 21:31:27 +00:00
Jani Taskinen
366581789f MFB: fix test 2008-03-27 15:06:16 +00:00
Marcus Boerger
5b3560f069 - Ifdef out code that has if(0) and doesn't compile anyway 2008-03-27 12:54:23 +00:00
Dmitry Stogov
977cc79398 Added ability to use stream wrappers in include_path 2008-03-27 10:33:52 +00:00
Antony Dovgal
8f7910f92e add missing EOL and fix build 2008-03-27 08:32:48 +00:00
Greg Beaver
a090d45251 fix build on PHP 5.2, prepare release of 2.0.0a2 2008-03-27 06:38:53 +00:00
Steve Seear
d08d2d7ee4 Adding tests for gethostbyaddr() and gethostbynamel() 2008-03-26 18:16:55 +00:00
Scott MacVicar
56352d1a2f MFB 5.3: Rest of the changes for re2c merge 2008-03-26 14:46:17 +00:00
Greg Beaver
0084937b10 turns out it is now tomorrow, so update package.xml 2008-03-26 05:20:43 +00:00
Greg Beaver
085bb5cdd6 prepare release of 2.0.0a1 2008-03-26 03:55:37 +00:00
Andrey Hristov
1bf96fdf5c MFB : Fix for Bug #43832 mysqi_get_charset() doesn't expose charset comment 2008-03-25 18:28:13 +00:00
Christopher Jones
7060c9574c oci8: Sync with 5.3 - version macro updates and DRCP tweaks 2008-03-25 02:25:03 +00:00
Ilia Alshanetsky
1ad9e6e1d0 MFB: Fixed test on systems where . and .. order not guaranteed 2008-03-24 18:34:44 +00:00
Derick Rethans
38ffd11722 - Updated to version 2008.2 (2008b) 2008-03-24 13:00:24 +00:00
Marcus Boerger
7202434956 - Add documentation 2008-03-24 12:53:28 +00:00
Dmitry Stogov
824fa7ad54 Fixed tests (file order is undefined, so we need to sort() them) 2008-03-24 09:00:41 +00:00
Greg Beaver
1bda8cf708 a subtle plea for help to Marcus... 2008-03-24 03:05:24 +00:00
Greg Beaver
2e9fca4f0b fix read/write for PharData object, update tests to current API 2008-03-24 03:01:31 +00:00
Greg Beaver
b4b890cb8f check for invalid aliases, add tests for this and direct setting of stub/alias 2008-03-24 01:33:30 +00:00
Greg Beaver
cea3169ca6 prevent direct setting of stub or alias in tar/zip 2008-03-24 01:18:50 +00:00
Greg Beaver
7493b9dfb6 update TODO 2008-03-23 22:51:00 +00:00
Greg Beaver
95eeee9156 not all tests have been converted over to the new API, but it works
conversion is now split into 3 separate methods
1\) convertToZip\(\) convertToTar\(\) and convertToPhar\(\) exclusively change file format
2\) compress\(\) sets compression, accepting Phar::GZ, Phar::BZ2, or Phar::NONE
3\) convertToExecutable\(\) allows stub creation in tar/zip, convertToData\(\) prevents it

all methods return either Phar or PharData objects, allowing fluent interface.

only 1 test has been converted to the new format, but the API works
2008-03-23 22:42:45 +00:00
Greg Beaver
cac70206f2 add Phar->getPath() for retrieving the full path to the phar archive.
this is useful for renaming and also always returns the realpath()
2008-03-23 19:03:15 +00:00
Greg Beaver
ca92928b48 fix param parsing for Phar::running() to be optional
# this is the last bug for ZF app - it now works!
2008-03-23 17:36:57 +00:00
Marcus Boerger
69c71f703e - Add .cvsignore 2008-03-23 16:51:52 +00:00
Ilia Alshanetsky
4743186f27 MFB: removed unused var 2008-03-23 15:49:51 +00:00
Greg Beaver
27ca45f898 don't disallow opening .tar/.zip files as Phar object if readonly is disabled, the whole idea is to be able to
add crap including an automatic stub or explicit stub
2008-03-23 06:59:59 +00:00
Greg Beaver
39c4f38c27 rename Phar::getRunningPhar\(\) to Phar::running\(\) and by default return the full
phar url, if optional parameter is false, return the path to the phar on disk.  Fix a double free on failed mount
2008-03-23 06:00:31 +00:00
Greg Beaver
eea82226c1 fix potential segfault by misuse of phar_find_in_include_path 2008-03-23 05:39:58 +00:00
Greg Beaver
62ed0adcca fix memleak found by valgrind 2008-03-23 00:05:53 +00:00
Greg Beaver
15f8facded fix Bug #13110: using rewrite parameter to webPhar causes memory error 2008-03-22 22:56:04 +00:00
Greg Beaver
bf081ec2a5 add failing test for bug #13110 2008-03-22 22:44:21 +00:00
Greg Beaver
6cef8da201 move all blah++ to ++blah where possible for those with crapass compilers 2008-03-22 22:11:49 +00:00
Greg Beaver
1b05ce68d7 fix all frontcontroller tests - cgi sapi was not being detected, only fastcgi 2008-03-22 22:04:21 +00:00
Greg Beaver
01e5bbbaf5 fix memleak in php 5.2, simplify code slightly 2008-03-22 21:54:55 +00:00
Steph Fox
1feb9b581a Satisfy Greg's inertia 2008-03-22 21:54:15 +00:00
Greg Beaver
6be582b537 fix test 2008-03-22 21:53:11 +00:00
Felipe Pena
b859ca7770 - Fixed compilation warnings 2008-03-22 20:37:08 +00:00
Felipe Pena
26f3bd40ef Fixed compilation warnings 2008-03-22 19:29:43 +00:00
Steph Fox
c0619c6523 Make versioning more standard 2008-03-22 17:09:24 +00:00
Marcus Boerger
f022bca16b - Fix build for PHP < 5.3 2008-03-22 16:33:33 +00:00
Felipe Pena
3ed829f10e - Added some UEXPECTs
- Fixed some tests
2008-03-22 14:58:29 +00:00
Marcus Boerger
cc3ee90dc5 - Update and include 'channel://pear.php.net/PHP_Archive-0.11.3' 2008-03-22 01:52:12 +00:00
Marcus Boerger
eb0f0e36e1 - Still missed one debug output 2008-03-22 01:48:45 +00:00
Marcus Boerger
1b286e1475 - If multiple possible exts are found use the first one.
This fixes an issue with: phar.phar info -f install-pear-nozlib.phar
  because that archive contains a .tar file
2008-03-22 00:15:45 +00:00
Marcus Boerger
e08556eb2e - Constify 2008-03-22 00:11:43 +00:00
Marcus Boerger
4d8073056c - Don't throw exception for uninitialized instance 2008-03-21 23:56:52 +00:00
Marcus Boerger
efc1c1ea99 - Damn forgot to remove the debug code 2008-03-21 23:31:31 +00:00
Marcus Boerger
6d3bb76302 - Fix stub/hashbang generation 2008-03-21 23:22:18 +00:00
Marcus Boerger
9bfa3909bf - Fix error message 2008-03-21 23:07:44 +00:00
Greg Beaver
891067c975 fix the memleak - but this breaks the \*compressAllFiles\*() methods because of fatal flaw
in renaming implementation - see pecl-dev email for details
2008-03-21 19:54:07 +00:00
Greg Beaver
3fcc6565b7 with stream wrappers in include_path, and after marcus's last fix, only 1 failing test (tar/tar_makegz.phpt)
add mounted file/dir to url stat
2008-03-21 18:50:22 +00:00
Marcus Boerger
34898339b5 - Add new test 2008-03-21 15:18:18 +00:00
Antony Dovgal
e128a1d885 fix ZTS build 2008-03-21 08:28:09 +00:00
Steph Fox
c11bcd5414 Deliberate test breakage (no idea how many) in an attempt to see where the valgrind 'bad news' is coming from on gcov.php.net. 2008-03-21 05:22:10 +00:00
Steph Fox
f0fdef1b64 Cosmetics (RC data) 2008-03-21 05:05:23 +00:00
Greg Beaver
d02dff1363 save work - sandbox is completely f**ed up, have to rm -rf and start again
This *SHOULD* fix issues, but I can't get run-tests to work reliably to be absolutely sure
2008-03-20 23:59:07 +00:00
Ilia Alshanetsky
b986dfaaae MFB: Refine fix for multibyte char hanling inside command names and args 2008-03-20 23:26:01 +00:00
Derick Rethans
993eb05f5b - Fix the DateTimeZone::getTransitions() algorithm. 2008-03-20 19:43:02 +00:00
Rob Richards
cfb250b84f fix bug #44478 (Inconsistent behaviour when assigning new nodes)
add test
2008-03-20 16:46:55 +00:00
Andrey Hristov
9732763eca Small fix and a test case to prove it 2008-03-20 15:34:09 +00:00
Andrey Hristov
46df4529be Missing lines from the param-bind-non-changing fix 2008-03-20 13:58:46 +00:00
Andrey Hristov
0e884df573 - Don't modify the variables which are passed for parameter binding.
We need to clone them, if there will be a transformation (convert_to_xxx)
  which will change the origin.
- Make mysqlnd more compatible to libmysql, in this case if the execute of
  a statement fails set the state of the statement back to PREPARED
- A test case to check the case of a failing statement.
2008-03-20 13:25:49 +00:00
Antony Dovgal
a81de7c7a1 expect->expectf 2008-03-20 12:13:57 +00:00
Antony Dovgal
9b1c720c3d fix tests (tcp_socket is tcp_socket/ssl when/if openssl is enabled) 2008-03-20 08:35:11 +00:00
David Soria Parra
a19e28ece9 Fix bug #44487 (call_user_method_array issues a warning when throwing an exception). 2008-03-20 00:50:47 +00:00
Steve Seear
7533d77bb0 Adding tokenizer test 2008-03-19 17:43:49 +00:00
Steve Seear
77f4934103 Adding streams tests 2008-03-19 17:38:20 +00:00
Steve Seear
b4f5622904 Adding filesystem tests 2008-03-19 17:26:36 +00:00
Felipe Pena
c604a1933c Cosmetic 2008-03-19 15:34:38 +00:00
Felipe Pena
d321bfba65 Fixed test 2008-03-19 15:22:59 +00:00
Felipe Pena
0e27741364 Fixed tests 2008-03-19 15:13:12 +00:00
Felipe Pena
b02063cf05 Fixed test 2008-03-19 14:55:58 +00:00
Felipe Pena
5056e34018 Fixed test 2008-03-19 14:45:24 +00:00
Felipe Pena
e7ecc9003e Added UEXPECT 2008-03-19 14:19:54 +00:00
Felipe Pena
2f777042a0 Fixed error message (%s -> %v) 2008-03-19 14:00:46 +00:00
Antony Dovgal
da036996be make use of zend_atol() 2008-03-19 12:40:48 +00:00
Antony Dovgal
4ce259fc1a fix test 2008-03-19 12:36:00 +00:00