]> granicus.if.org Git - php/log
php
17 years agoadd interception of is_dir(), file_exists() and file_get_contents() - will make these...
Greg Beaver [Thu, 10 Jan 2008 15:13:00 +0000 (15:13 +0000)]
add interception of is_dir(), file_exists() and file_get_contents() - will make these optional shortly

17 years agofix #43750 (stristr() modifies string)
Antony Dovgal [Thu, 10 Jan 2008 14:31:11 +0000 (14:31 +0000)]
fix #43750 (stristr() modifies string)
patch by Felipe Pena

17 years ago- Fix bug in example code found by Surf Chen
Marcus Boerger [Thu, 10 Jan 2008 10:11:21 +0000 (10:11 +0000)]
- Fix bug in example code found by Surf Chen

17 years agoAdded missing warning message
Dmitry Stogov [Thu, 10 Jan 2008 09:38:41 +0000 (09:38 +0000)]
Added missing warning message

17 years agofix test
Antony Dovgal [Thu, 10 Jan 2008 08:45:54 +0000 (08:45 +0000)]
fix test

17 years agoChangeLog update
<changelog@php.net> [Thu, 10 Jan 2008 01:31:36 +0000 (01:31 +0000)]
ChangeLog update

17 years agofix crash when using default algorithm
Rob Richards [Wed, 9 Jan 2008 16:46:52 +0000 (16:46 +0000)]
fix crash when using default algorithm

17 years agoFixed broken soap.wsdl_cache_enabled
Dmitry Stogov [Wed, 9 Jan 2008 16:46:06 +0000 (16:46 +0000)]
Fixed broken soap.wsdl_cache_enabled

17 years agoRemplemented support for SplArray using Traversable interface.
Dmitry Stogov [Wed, 9 Jan 2008 13:50:17 +0000 (13:50 +0000)]
Remplemented support for SplArray using Traversable interface.

17 years agofix win32 compile
Rob Richards [Wed, 9 Jan 2008 11:23:25 +0000 (11:23 +0000)]
fix win32 compile

17 years agoupdate package.xml
Greg Beaver [Wed, 9 Jan 2008 08:49:58 +0000 (08:49 +0000)]
update package.xml

17 years agonew tests for bz2-compressed tar or phar-based phars (wow, worked on first try, how...
Greg Beaver [Wed, 9 Jan 2008 08:48:56 +0000 (08:48 +0000)]
new tests for bz2-compressed tar or phar-based phars (wow, worked on first try, how about that)

17 years agofix gzipped phars in phar file format, add test
Greg Beaver [Wed, 9 Jan 2008 08:45:00 +0000 (08:45 +0000)]
fix gzipped phars in phar file format, add test

17 years agoapply proper fix of bug #43793 to zlib.deflate (window+16 = gzip)
Greg Beaver [Wed, 9 Jan 2008 08:12:15 +0000 (08:12 +0000)]
apply proper fix of bug #43793 to zlib.deflate (window+16 = gzip)

17 years agoimplement whole-file compression of phars for phar/tar-based phars
Greg Beaver [Wed, 9 Jan 2008 07:09:04 +0000 (07:09 +0000)]
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]

17 years agoapply same fix of bug #43793 to zlib.deflate
Greg Beaver [Wed, 9 Jan 2008 07:03:48 +0000 (07:03 +0000)]
apply same fix of bug #43793 to zlib.deflate

17 years agofix Bug #43793: zlib filter is unable to auto-detect gzip/zlib file headers
Greg Beaver [Wed, 9 Jan 2008 06:42:56 +0000 (06:42 +0000)]
fix Bug #43793: zlib filter is unable to auto-detect gzip/zlib file headers

17 years agoadd tests to package.xml, note new empty directory feature
Greg Beaver [Wed, 9 Jan 2008 03:53:42 +0000 (03:53 +0000)]
add tests to package.xml, note new empty directory feature

17 years agoadd tests for directory creation and management for tar and zip-based phars, add...
Greg Beaver [Wed, 9 Jan 2008 03:51:38 +0000 (03:51 +0000)]
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

17 years agoadd rmdir() support, add rmdir to dir test
Greg Beaver [Wed, 9 Jan 2008 03:47:22 +0000 (03:47 +0000)]
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

17 years ago- MFB: #43790, fix crash when no family name has been found
Pierre Joye [Wed, 9 Jan 2008 01:52:03 +0000 (01:52 +0000)]
- MFB: #43790, fix crash when no family name has been found

17 years agoChangeLog update
<changelog@php.net> [Wed, 9 Jan 2008 01:31:43 +0000 (01:31 +0000)]
ChangeLog update

17 years agofix empty directories in phar, add test
Greg Beaver [Wed, 9 Jan 2008 00:58:37 +0000 (00:58 +0000)]
fix empty directories in phar, add test

17 years agoimplement mkdir (compiles, not yet tested), support for empty directories in phar...
Greg Beaver [Tue, 8 Jan 2008 22:14:16 +0000 (22:14 +0000)]
implement mkdir (compiles, not yet tested), support for empty directories in phar (not yet tested)
revert last commit of efree(), it's necessary.

17 years agoremove invalid free if opening a phar file in plain_map fails
Greg Beaver [Tue, 8 Jan 2008 21:40:48 +0000 (21:40 +0000)]
remove invalid free if opening a phar file in plain_map fails

17 years agoupdate package.xml so this can be installed
Greg Beaver [Tue, 8 Jan 2008 20:36:32 +0000 (20:36 +0000)]
update package.xml so this can be installed

17 years agosplit stream file handlers into stream.c and directory handlers into dirstream.c
Greg Beaver [Tue, 8 Jan 2008 20:31:54 +0000 (20:31 +0000)]
split stream file handlers into stream.c and directory handlers into dirstream.c

17 years agosplit out zip functions
Greg Beaver [Tue, 8 Jan 2008 19:40:23 +0000 (19:40 +0000)]
split out zip functions

17 years agoMFB: Fixed bug #43498 (file_exists() on a proftpd server got SIZE not
Ilia Alshanetsky [Tue, 8 Jan 2008 19:09:12 +0000 (19:09 +0000)]
MFB: Fixed bug #43498 (file_exists() on a proftpd server got SIZE not
allowed in ASCII mode).

17 years agoThose functions have been deprecated and removed. We'll test them only internally
Ulf Wendel [Tue, 8 Jan 2008 13:18:46 +0000 (13:18 +0000)]
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...

17 years agostrncpy->strlcpy
Andrey Hristov [Tue, 8 Jan 2008 13:13:39 +0000 (13:13 +0000)]
strncpy->strlcpy

17 years agoLooks more than it is. Its whitespace, adding error handling in a few places,
Ulf Wendel [Tue, 8 Jan 2008 12:43:08 +0000 (12:43 +0000)]
Looks more than it is. Its whitespace, adding error handling in a few places,
changing SQL statement formatting etc. No "real" changes.

17 years agocomplete set of new tests for zip-based phars (need to test compression for zip-based...
Greg Beaver [Tue, 8 Jan 2008 07:08:46 +0000 (07:08 +0000)]
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

17 years agoChangeLog update
<changelog@php.net> [Tue, 8 Jan 2008 01:31:39 +0000 (01:31 +0000)]
ChangeLog update

17 years agoadd tar-based to 2 tests
Greg Beaver [Mon, 7 Jan 2008 22:22:27 +0000 (22:22 +0000)]
add tar-based to 2 tests

17 years agoeliminate potential double-free of alias
Greg Beaver [Mon, 7 Jan 2008 22:21:10 +0000 (22:21 +0000)]
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__

17 years agonew tests
Greg Beaver [Mon, 7 Jan 2008 18:07:10 +0000 (18:07 +0000)]
new tests

17 years agomake test OS-agnostic
Greg Beaver [Mon, 7 Jan 2008 18:05:23 +0000 (18:05 +0000)]
make test OS-agnostic

17 years agofp must be nulled on every write also when == phar->fp or we get stale fp and problem...
Greg Beaver [Mon, 7 Jan 2008 17:58:31 +0000 (17:58 +0000)]
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

17 years agoadd tar-based to test names
Greg Beaver [Mon, 7 Jan 2008 17:41:30 +0000 (17:41 +0000)]
add tar-based to test names

17 years agonew tests
Greg Beaver [Mon, 7 Jan 2008 17:40:43 +0000 (17:40 +0000)]
new tests

17 years agofix segfault (now all existing tests pass
Greg Beaver [Mon, 7 Jan 2008 17:31:53 +0000 (17:31 +0000)]
fix segfault (now all existing tests pass

17 years agofix segfault (duh, can't free something that was not initialized)
Greg Beaver [Mon, 7 Jan 2008 17:28:45 +0000 (17:28 +0000)]
fix segfault (duh, can't free something that was not initialized)

17 years agofix extension detection for aliases with no extension
Greg Beaver [Mon, 7 Jan 2008 17:18:41 +0000 (17:18 +0000)]
fix extension detection for aliases with no extension

17 years agofix test
Greg Beaver [Mon, 7 Jan 2008 05:46:12 +0000 (05:46 +0000)]
fix test

17 years agofix stat of directory in tar/zip
Greg Beaver [Mon, 7 Jan 2008 05:41:09 +0000 (05:41 +0000)]
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

17 years agonew tests for tar format
Greg Beaver [Mon, 7 Jan 2008 05:35:18 +0000 (05:35 +0000)]
new tests for tar format

17 years agoChangeLog update
<changelog@php.net> [Mon, 7 Jan 2008 01:31:37 +0000 (01:31 +0000)]
ChangeLog update

17 years ago- Add .cvsignore
Marcus Boerger [Sun, 6 Jan 2008 16:49:57 +0000 (16:49 +0000)]
- Add .cvsignore

17 years ago- Show info for CL and CGI if both are going to be used
Marcus Boerger [Sun, 6 Jan 2008 16:47:50 +0000 (16:47 +0000)]
- Show info for CL and CGI if both are going to be used

17 years agoeliminated memleak, now to make it recognize "dir" as a directory
Greg Beaver [Sun, 6 Jan 2008 05:28:27 +0000 (05:28 +0000)]
eliminated memleak, now to make it recognize "dir" as a directory

17 years agofix typo in phar.c if bz2 is disabled
Greg Beaver [Sun, 6 Jan 2008 05:16:20 +0000 (05:16 +0000)]
fix typo in phar.c if bz2 is disabled

17 years agoChangeLog update
<changelog@php.net> [Sun, 6 Jan 2008 01:31:30 +0000 (01:31 +0000)]
ChangeLog update

17 years agonew test, exposes some memleaks, but not yet sure where they are (done for today)
Greg Beaver [Sat, 5 Jan 2008 23:26:24 +0000 (23:26 +0000)]
new test, exposes some memleaks, but not yet sure where they are (done for today)

17 years agofix segfault, add separate tar test for readonly=0 on corrupted tar
Greg Beaver [Sat, 5 Jan 2008 23:02:23 +0000 (23:02 +0000)]
fix segfault, add separate tar test for readonly=0 on corrupted tar

17 years agoremove mung server list hash destroy, this is done in shutdown
Greg Beaver [Sat, 5 Jan 2008 22:48:06 +0000 (22:48 +0000)]
remove mung server list hash destroy, this is done in shutdown

17 years agodo not attempt to create a new phar if a file exists and is corrupted or is not a...
Greg Beaver [Sat, 5 Jan 2008 22:46:54 +0000 (22:46 +0000)]
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

17 years agomodify test to ensure that query string is preserved when munging server vars
Greg Beaver [Sat, 5 Jan 2008 22:04:58 +0000 (22:04 +0000)]
modify test to ensure that query string is preserved when munging server vars

17 years agocomplete tests for Phar::mungServer
Greg Beaver [Sat, 5 Jan 2008 22:02:33 +0000 (22:02 +0000)]
complete tests for Phar::mungServer

17 years agoremove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF--...
Greg Beaver [Sat, 5 Jan 2008 21:39:39 +0000 (21:39 +0000)]
remove potential preg warnings if --EXPECTHEADERS-- is combined with --EXPECTF-- or --EXPECTRE--

17 years agoimplement --FILE_EXTERNAL-- section for using an external file as --FILE--, use CGI...
Greg Beaver [Sat, 5 Jan 2008 21:04:55 +0000 (21:04 +0000)]
implement --FILE_EXTERNAL-- section for using an external file as --FILE--, use CGI for --EXPECTHEADERS--, fix --POST_RAW--

17 years agonew tests, fix mime type overrides (all web front controller primary features are...
Greg Beaver [Sat, 5 Jan 2008 06:14:43 +0000 (06:14 +0000)]
new tests, fix mime type overrides (all web front controller primary features are now tested and working for regular phar files)

17 years agonew test, free resources on error in webPhar() (thanks new test\!)
Greg Beaver [Sat, 5 Jan 2008 05:47:47 +0000 (05:47 +0000)]
new test, free resources on error in webPhar() (thanks new test\!)

17 years agonew test
Greg Beaver [Sat, 5 Jan 2008 05:12:44 +0000 (05:12 +0000)]
new test

17 years agonew test
Greg Beaver [Sat, 5 Jan 2008 04:30:30 +0000 (04:30 +0000)]
new test

17 years agonew test
Greg Beaver [Sat, 5 Jan 2008 04:27:01 +0000 (04:27 +0000)]
new test

17 years agonew test
Greg Beaver [Sat, 5 Jan 2008 04:12:24 +0000 (04:12 +0000)]
new test

17 years agobeautify 404 error handler, and note missing file.
Greg Beaver [Sat, 5 Jan 2008 04:03:33 +0000 (04:03 +0000)]
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

17 years agoclarify test names
Greg Beaver [Sat, 5 Jan 2008 03:50:13 +0000 (03:50 +0000)]
clarify test names

17 years agofix Location header for index if request has a /, 2 new tests, add index.php to front...
Greg Beaver [Sat, 5 Jan 2008 03:49:01 +0000 (03:49 +0000)]
fix Location header for index if request has a /, 2 new tests, add index.php to frontcontroller phar

17 years agoclarify test name
Greg Beaver [Sat, 5 Jan 2008 03:42:05 +0000 (03:42 +0000)]
clarify test name

17 years agofix front controller tests (requires patch to run-tests.php posted to internals a...
Greg Beaver [Sat, 5 Jan 2008 03:41:43 +0000 (03:41 +0000)]
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

17 years agoChangeLog update
<changelog@php.net> [Sat, 5 Jan 2008 01:31:28 +0000 (01:31 +0000)]
ChangeLog update

17 years agoAdded:
Ulf Wendel [Fri, 4 Jan 2008 18:17:13 +0000 (18:17 +0000)]
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

17 years agouse zip_free() instead of zip_close(), and don't add a stub if it already exists...
Greg Beaver [Fri, 4 Jan 2008 17:04:41 +0000 (17:04 +0000)]
use zip_free() instead of zip_close(), and don't add a stub if it already exists in phar_zip_flush(), update TODO

17 years ago- Change 'print' to 'die' for skip notices
Marcus Boerger [Fri, 4 Jan 2008 16:26:44 +0000 (16:26 +0000)]
- Change 'print' to 'die' for skip notices

17 years ago- Fix module info for bz2
Marcus Boerger [Fri, 4 Jan 2008 16:10:49 +0000 (16:10 +0000)]
- Fix module info for bz2
- Differentiate enabled, disabled and unavailable

17 years ago- Pendantic changes
Marcus Boerger [Fri, 4 Jan 2008 14:06:50 +0000 (14:06 +0000)]
- Pendantic changes

17 years agoNew testcases for array_diff_assoc() function
Raghubansh Kumar [Fri, 4 Jan 2008 13:59:44 +0000 (13:59 +0000)]
New testcases for array_diff_assoc() function

17 years agoNew testcases for array_diff() function
Raghubansh Kumar [Fri, 4 Jan 2008 13:59:18 +0000 (13:59 +0000)]
New testcases for array_diff() function

17 years agoFix for Bug #43036
Ulf Wendel [Fri, 4 Jan 2008 09:00:35 +0000 (09:00 +0000)]
Fix for Bug #43036

17 years agofix windows build (hopefully :)
Greg Beaver [Fri, 4 Jan 2008 04:59:12 +0000 (04:59 +0000)]
fix windows build (hopefully :)

17 years agoreplace crappy $_SERVER munging with explicit munging via
Greg Beaver [Fri, 4 Jan 2008 04:57:11 +0000 (04:57 +0000)]
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]

17 years agoPhar::webPhar() and various problems relating to shutdown in an apache process fixed
Greg Beaver [Fri, 4 Jan 2008 01:45:37 +0000 (01:45 +0000)]
Phar::webPhar() and various problems relating to shutdown in an apache process fixed

17 years agoChangeLog update
<changelog@php.net> [Fri, 4 Jan 2008 01:31:36 +0000 (01:31 +0000)]
ChangeLog update

17 years agofix tar-based phars creation and loading
Greg Beaver [Thu, 3 Jan 2008 18:13:27 +0000 (18:13 +0000)]
fix tar-based phars creation and loading

17 years agoRemove test for deprecated (and removed) function
Ulf Wendel [Thu, 3 Jan 2008 17:20:19 +0000 (17:20 +0000)]
Remove test for deprecated (and removed) function

17 years agoMFB: Skip test for PostgreSQL driver since error is too dissimilar to other
Ilia Alshanetsky [Thu, 3 Jan 2008 16:47:01 +0000 (16:47 +0000)]
MFB: Skip test for PostgreSQL driver since error is too dissimilar to other
drivers

17 years agoMFB: remove unused PHP_EXTNAME_API macros.
Nuno Lopes [Thu, 3 Jan 2008 16:18:29 +0000 (16:18 +0000)]
MFB: remove unused PHP_EXTNAME_API macros.
#in preparation for the gcc 4 visibility patch

17 years ago- Remove more replication stuff
Johannes Schlüter [Thu, 3 Jan 2008 14:32:52 +0000 (14:32 +0000)]
- Remove more replication stuff

17 years agoHeader protection
Andrey Hristov [Thu, 3 Jan 2008 12:50:05 +0000 (12:50 +0000)]
Header protection

17 years agoRemove unneeded field
Andrey Hristov [Thu, 3 Jan 2008 11:38:03 +0000 (11:38 +0000)]
Remove unneeded field

17 years agoMake it work for MySQL 6.x as well.
Ulf Wendel [Thu, 3 Jan 2008 10:19:02 +0000 (10:19 +0000)]
Make it work for MySQL 6.x as well.

17 years agothis testcase has been split into many smaller testcases and committed.
Raghubansh Kumar [Thu, 3 Jan 2008 09:38:43 +0000 (09:38 +0000)]
this testcase has been split into many smaller testcases and committed.

17 years agoNew smaller testcases for array_map() function
Raghubansh Kumar [Thu, 3 Jan 2008 09:35:11 +0000 (09:35 +0000)]
New smaller testcases for array_map() function

17 years agoAdding PHPT tests for the ReflectionMethod class.
Steve Seear [Thu, 3 Jan 2008 09:07:56 +0000 (09:07 +0000)]
Adding PHPT tests for the ReflectionMethod class.

17 years agocommit missing files (helps if you cvs add, don't it?) for tar implementation
Greg Beaver [Thu, 3 Jan 2008 05:35:19 +0000 (05:35 +0000)]
commit missing files (helps if you cvs add, don't it?) for tar implementation

17 years agoinitial tar support - a few kinks to work on in phar creation, but read works
Greg Beaver [Thu, 3 Jan 2008 04:45:00 +0000 (04:45 +0000)]
initial tar support - a few kinks to work on in phar creation, but read works

17 years agoChangeLog update
<changelog@php.net> [Thu, 3 Jan 2008 01:31:31 +0000 (01:31 +0000)]
ChangeLog update

17 years ago- Fix problems with double definitions
Andrey Hristov [Wed, 2 Jan 2008 21:16:46 +0000 (21:16 +0000)]
- 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
----------------------------------------------------------------------