Commit Graph

39951 Commits

Author SHA1 Message Date
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
Raghubansh Kumar
7deb552a07 Changing the regex for %f so the it will match e-, e+ and e. 2007-12-24 04:20:15 +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
2bbd4be65e ChangeLog update 2007-12-22 01:31:34 +00:00
Johannes Schlüter
e40c4fc243 - Fix #43450 (Memory leak on some functions with implicit object
__toString() call) (Davic C.)
2007-12-21 20:56:10 +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
62c602f17d ChangeLog update 2007-12-21 01:31:31 +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
Dmitry Stogov
20f9a64b54 x86_64 assembler optimization (Brain Shire) 2007-12-20 13:11:35 +00:00
Robert Nicholson
7eecbc021a New test - Indexing - various special cases 2007-12-20 11:42:23 +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
89fce25139 ChangeLog update 2007-12-20 01:31:33 +00:00
Derick Rethans
d43bc74d2f - Fixed rest warnings 2007-12-19 13:13:27 +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
180fc17081 ChangeLog update 2007-12-19 01:31:31 +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
Derick Rethans
b95520c0fd - Fixed typo. 2007-12-18 10:52:59 +00:00
Greg Beaver
d757f6ee5e oops, need to make these things optional, not required 2007-12-18 05:32:11 +00:00
a2f8c2efc9 ChangeLog update 2007-12-18 01:31:33 +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
Hannes Magnusson
02663e3456 MFB5.3: - Allow to specify php executable on commandline
MFB5.3: - Allow to check the out,exp and diff results on console while executing the tests
2007-12-17 11:34:55 +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
57f622dd87 ChangeLog update 2007-12-17 01:31:36 +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
e1b6be2741 ChangeLog update 2007-12-16 01:31:35 +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