Nikita Popov
3ae995f03c
Tweak uncaught exception message display
...
This implements a reduced variant of #1226 with just the following
change:
-Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d
+Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d
The '' wrapper around messages is very weird if the exception
message itself contains ''. Futhermore having the message wrapped
in '' doesn't work for the "and defined" suffix of
TypeExceptions.
2015-05-17 18:47:06 +02:00
Dmitry Stogov
3abde43231
Added experimental (disabled by default) file based opcode cache.
2015-05-06 23:46:49 +03:00
Michael Wallner
e148fff61d
Merge branch 'PHP-5.6'
...
* PHP-5.6:
BFN
fix bug #67761
2015-03-30 14:45:38 +02:00
Michael Wallner
8f7e378b9f
fix bug #67761
...
Phar::mapPhar fails for Phars inside a path containing ".tar".
Strengthen the silly .tar file extension check.
2015-03-30 14:41:30 +02:00
Xinchen Hui
ab4f120c6a
Merge branch 'PHP-5.6'
...
Conflicts:
NEWS
ext/opcache/Optimizer/pass1_5.c
2015-03-30 20:20:55 +08:00
Michael Wallner
ef52e44053
Fixed bug 64343
...
PharData::extractTo fails for tarball created by BSD tar
Phar did not know about PAX style global/file headers.
Skip them, to be able to read the contents of those archives.
2015-03-30 13:20:09 +02:00
Michael Wallner
f4264ebc64
Fixed bug 64343
...
PharData::extractTo fails for tarball created by BSD tar
Phar did not know about PAX style global/file headers.
Skip them, to be able to read the contents of those archives.
2015-03-30 13:11:06 +02:00
Dmitry Stogov
e3de409eac
Fixed PHP6 unicode related tests
2014-08-15 13:08:53 +04:00
Xinchen Hui
41eb63e78f
Fixed tests affect by local ini
2014-07-09 18:34:40 +08:00
Dmitry Stogov
e9641141aa
Made test compatible with O+
2013-03-16 16:11:00 +04:00
Anatoliy Belsky
1702024073
Fixed test for bug #63297
2012-11-22 19:01:09 +01:00
Xinchen Hui
610c7fbe7b
Remove executable permission on phpt
2012-10-10 10:27:49 +08:00
Anatoliy Belsky
ce59121c5f
Fix bug 61903 ext\phar\tests\tar\phar_commitwrite.phpt fails
2012-05-07 15:37:29 +02:00
Anatoliy Belsky
6c12252790
Fix bug #61904 ext\phar\tests\tar\phar_setsignaturealgo2.phpt
2012-05-04 11:29:49 +02:00
Hannes Magnusson
3283b811eb
- Unifiy that message
...
- Mention php.ini
2010-04-27 08:23:25 +00:00
Hannes Magnusson
267b5cea14
mention which setting!
2010-04-25 18:55:06 +00:00
Greg Beaver
d7f50ac2c4
fix PHP Bug #49938 : Phar::isBuffering() returns inverted value
2009-11-13 00:58:11 +00:00
David Coallier
10ca1684cf
- MFH: Added test for bug 49910 for phar
2009-11-12 17:47:17 +00:00
Greg Beaver
01d9f2c9ce
fix PHP Bug #49910 : no support for ././@LongLink for long filenames in phar tar support
2009-11-11 21:02:59 +00:00
Greg Beaver
e29bccaae2
make phar tests pass in php 5.2, prepare for release of pecl/phar 2.0.0, merge Gwynne's TSRM fix to phar_object.c to other branches
2009-07-29 10:14:04 +00:00
Greg Beaver
96dd763df4
fix generation of phar.phar in php 6, fix remaining tests broken by PHP 6 (and not by spl/other stuff in php6)
2009-07-26 02:18:50 +00:00
Greg Beaver
39125fdd47
fix tar front controller tests for php6
2009-07-26 00:35:17 +00:00
Greg Beaver
667c59abd6
Fix Bug #49020 : phar misinterprets ustar long filename standard
2009-07-22 19:51:37 +00:00
Greg Beaver
d967e29541
fix php bug #49018 (phar tar stores long filenames with prefix/name reversed)
2009-07-22 18:13:38 +00:00
Greg Beaver
5dd3306551
fixed bug #48681 (openssl signature verification for tar archives broken)
2009-06-30 14:49:12 +00:00
Greg Beaver
a8e7103bbe
MFPECL: fix security vulnerability in phar's handling of long tar filenames
2009-06-04 19:59:09 +00:00
Greg Beaver
1c30b43e50
MFH: fix potential segfault when converting phars with metadata to other formats, add test
2009-05-24 18:50:58 +00:00
Greg Beaver
475cf4d288
fix Bug #48257 : PharData throws exception with non-phar tar
2009-05-13 20:25:43 +00:00
Jani Taskinen
3d87ef8b21
MFH
2009-04-25 17:57:36 +00:00
Greg Beaver
5bc1122056
fix faulty tests
2008-10-12 23:32:50 +00:00
Greg Beaver
eaf5d4c8b3
add missing --INI-- section
2008-10-12 18:54:00 +00:00
Greg Beaver
a2b4f65a0c
re-add as binary
2008-10-12 18:47:19 +00:00
Greg Beaver
da731473aa
oops, need to add as binary
2008-10-12 18:46:46 +00:00
Greg Beaver
15cac7f22f
add missing file for tests
2008-10-12 18:45:46 +00:00
Greg Beaver
60969b5385
fix links for fseek as well
2008-10-11 22:20:57 +00:00
Greg Beaver
59379244ad
fix reading links from streams (works with PharFileInfo->getContent())
2008-10-11 22:12:07 +00:00
Greg Beaver
fffdf661c9
fix bug #45907 : undefined reference to PHP_SHA512Init
2008-10-09 00:50:47 +00:00
Steph Fox
377ff97abd
- MFH Bring phar tests into line across all branches
2008-08-01 13:38:48 +00:00
Dmitry Stogov
c48c63f5e6
Improved webPhar speed (frontcontroller11.phar.phpt is disabled, should be removed)
2008-07-22 07:03:00 +00:00
Dmitry Stogov
68537af530
Fixed directory reanming/deletion
2008-07-20 14:42:34 +00:00
Dmitry Stogov
d82b5d59b4
Added tests that demonstrate serious PHAR errors
...
They cannot be easly fixed without algorithms modification
2008-07-10 14:27:21 +00:00
Etienne Kneuss
e53a9ca709
Fix filename/pathname/getpathinfo tests according to SPL fix
2008-07-09 08:39:42 +00:00
Steph Fox
5db08e7d1f
Duplicate tests to accommodate parameter parsing fixes in 5_3 core
...
(NB the 5_2 tests will fail currently due to name changes, will fix tomorrow)
2008-07-07 01:09:21 +00:00
Greg Beaver
37c684ab3d
in preparation for a performance optimization that involves
...
eliminating phar's interception of zend_compile in favor of a new to-be-added hook in PHP 5.3+,
allow "include 'phar:///path/to/my.phar';" to work as equivalent to
php /path/to/my.phar
this slight change in scripting still allows inclusion and execution of phar stub, but removes the need to
check and modify path in zend_compile, which allows us to play much nicer with external tools like
debuggers/opcode caches
2008-06-27 01:21:12 +00:00
Greg Beaver
4f9daeed11
[DOC] implement full signature support for tar-based archives. By default, data archives do
...
not have a signature, but can have one set via setSignatureAlgorithm()
2008-06-13 22:07:44 +00:00
Steph Fox
53fd21de33
- Keep 5_3 stub and creation files in sync with what I have in CVS HEAD
...
(MFB will likely be tomorrow now)
2008-05-18 20:52:34 +00:00
Greg Beaver
719beb79d4
add full metadata support for tar-based archives and test
2008-05-15 23:46:29 +00:00
Greg Beaver
de5aaaa74c
fix potentially major security hole: modification/creation of files in .phar directory enabled in many locations
...
which then allows easy creation of tar/zip-based phar archives with a simple rename even when phar.readonly=1. Plug the hole very tightly, allowing read access to
files, and also excluding them from opendir() output
2008-05-15 16:09:01 +00:00
Steph Fox
93183728d2
- Fix test, add a couple of new ones
...
@Greg: it seems we covered it already ;)
2008-05-15 12:37:45 +00:00
Steph Fox
6a0682d986
- MFH
...
- Make internal code forward-compatible. This included a binary cast in the default stub, hence test updates.
2008-05-14 21:29:51 +00:00