mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-11 19:20:50 +00:00
Compare commits
7
Commits
php-7.0.10
...
php-5.6.14
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f0d051bfd | ||
|
|
a8dfa57571 | ||
|
|
752e4c6c07 | ||
|
|
791a49ac7a | ||
|
|
fd9da7ac09 | ||
|
|
350cc55492 | ||
|
|
6dcb85e9e1 |
No files matched your search
@@ -1,6 +1,6 @@
|
||||
PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? 2015, PHP 5.6.14
|
||||
01 Oct 2015, PHP 5.6.14
|
||||
|
||||
- Core:
|
||||
. Fixed bug #70370 (Bundled libtool.m4 doesn't handle FreeBSD 10 when
|
||||
@@ -22,10 +22,16 @@ PHP NEWS
|
||||
DH key resource). (Jakub Zelenka)
|
||||
. Fixed bug #70395 (Missing ARG_INFO for openssl_seal()). (cmb)
|
||||
. Fixed bug #60632 (openssl_seal fails with AES). (Jakub Zelenka)
|
||||
. Fixed bug #68312 (Lookup for openssl.cnf causes a message box). (Anatol)
|
||||
|
||||
- PDO:
|
||||
. Fixed bug #70389 (PDO constructor changes unrelated variables). (Laruence)
|
||||
|
||||
- Phar:
|
||||
. Fixed bug #69720 (Null pointer dereference in phar_get_fp_offset()). (Stas)
|
||||
. FIxed bug #70433 (Uninitialized pointer in phar_make_dirstream when zip
|
||||
entry filename is "/"). (Stas)
|
||||
|
||||
- Phpdbg:
|
||||
. Fix phpdbg_break_next() sometimes not breaking. (Bob)
|
||||
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ int zend_sprintf(char *buffer, const char *format, ...);
|
||||
PHP_MAJOR_VERSION=5
|
||||
PHP_MINOR_VERSION=6
|
||||
PHP_RELEASE_VERSION=14
|
||||
PHP_EXTRA_VERSION="-dev"
|
||||
PHP_EXTRA_VERSION=""
|
||||
PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
|
||||
PHP_VERSION_ID=`expr [$]PHP_MAJOR_VERSION \* 10000 + [$]PHP_MINOR_VERSION \* 100 + [$]PHP_RELEASE_VERSION`
|
||||
|
||||
|
||||
@@ -1265,6 +1265,7 @@ PHP_MINFO_FUNCTION(openssl)
|
||||
php_info_print_table_row(2, "OpenSSL support", "enabled");
|
||||
php_info_print_table_row(2, "OpenSSL Library Version", SSLeay_version(SSLEAY_VERSION));
|
||||
php_info_print_table_row(2, "OpenSSL Header Version", OPENSSL_VERSION_TEXT);
|
||||
php_info_print_table_row(2, "Openssl default config", default_ssl_conf_filename);
|
||||
php_info_print_table_end();
|
||||
DISPLAY_INI_ENTRIES();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
--TEST--
|
||||
Check for default OpenSSL config path on Windows
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (substr(PHP_OS, 0, 3) != 'WIN') {
|
||||
die('skip windows only test');
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
ob_start();
|
||||
phpinfo();
|
||||
$info = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
preg_match(",Openssl default config .* (.*),", $info, $m);
|
||||
|
||||
if (isset($m[1])) {
|
||||
var_dump(str_replace('/', '\\', strtolower($m[1])));
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
string(28) "c:\usr\local\ssl\openssl.cnf"
|
||||
Binary file not shown.
@@ -0,0 +1,40 @@
|
||||
--TEST--
|
||||
Phar - bug #69720 - Null pointer dereference in phar_get_fp_offset()
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
try {
|
||||
// open an existing phar
|
||||
$p = new Phar(__DIR__."/bug69720.phar",0);
|
||||
// Phar extends SPL's DirectoryIterator class
|
||||
echo $p->getMetadata();
|
||||
foreach (new RecursiveIteratorIterator($p) as $file) {
|
||||
// $file is a PharFileInfo class, and inherits from SplFileInfo
|
||||
$temp="";
|
||||
$temp= $file->getFileName() . "\n";
|
||||
$temp.=file_get_contents($file->getPathName()) . "\n"; // display contents
|
||||
var_dump($file->getMetadata());
|
||||
}
|
||||
}
|
||||
catch (Exception $e) {
|
||||
echo 'Could not open Phar: ', $e;
|
||||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
|
||||
MY_METADATA_NULL
|
||||
|
||||
Warning: file_get_contents(phar:///%s): failed to open stream: phar error: "test.php" is not a file in phar "%s.phar" in %s.php on line %d
|
||||
array(1) {
|
||||
["whatever"]=>
|
||||
int(123)
|
||||
}
|
||||
object(DateTime)#2 (3) {
|
||||
["date"]=>
|
||||
string(26) "2000-01-01 00:00:00.000000"
|
||||
["timezone_type"]=>
|
||||
int(3)
|
||||
["timezone"]=>
|
||||
string(3) "UTC"
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
--TEST--
|
||||
Phar - bug #70433 - Uninitialized pointer in phar_make_dirstream when zip entry filename is "/"
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$phar = new PharData(__DIR__."/bug70433.zip");
|
||||
var_dump($phar);
|
||||
$meta = $phar->getMetadata();
|
||||
var_dump($meta);
|
||||
?>
|
||||
DONE
|
||||
--EXPECTF--
|
||||
object(PharData)#1 (3) {
|
||||
["pathName":"SplFileInfo":private]=>
|
||||
string(0) ""
|
||||
["glob":"DirectoryIterator":private]=>
|
||||
bool(false)
|
||||
["subPathName":"RecursiveDirectoryIterator":private]=>
|
||||
string(0) ""
|
||||
}
|
||||
NULL
|
||||
DONE
|
||||
Executable
BIN
Binary file not shown.
+7
-2
@@ -494,7 +494,12 @@ really_get_entry:
|
||||
(*ret)->is_tar = entry->is_tar;
|
||||
(*ret)->fp = phar_get_efp(entry, 1 TSRMLS_CC);
|
||||
if (entry->link) {
|
||||
(*ret)->zero = phar_get_fp_offset(phar_get_link_source(entry TSRMLS_CC) TSRMLS_CC);
|
||||
phar_entry_info *link = phar_get_link_source(entry TSRMLS_CC);
|
||||
if(!link) {
|
||||
efree(*ret);
|
||||
return FAILURE;
|
||||
}
|
||||
(*ret)->zero = phar_get_fp_offset(link TSRMLS_CC);
|
||||
} else {
|
||||
(*ret)->zero = phar_get_fp_offset(entry TSRMLS_CC);
|
||||
}
|
||||
@@ -1965,7 +1970,7 @@ void phar_add_virtual_dirs(phar_archive_data *phar, char *filename, int filename
|
||||
|
||||
while ((s = zend_memrchr(filename, '/', filename_len))) {
|
||||
filename_len = s - filename;
|
||||
if (FAILURE == zend_hash_add_empty_element(&phar->virtual_dirs, filename, filename_len)) {
|
||||
if (!filename_len || FAILURE == zend_hash_add_empty_element(&phar->virtual_dirs, filename, filename_len)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -396,7 +396,9 @@ foundit:
|
||||
|
||||
if (entry.filename[entry.filename_len - 1] == '/') {
|
||||
entry.is_dir = 1;
|
||||
entry.filename_len--;
|
||||
if(entry.filename_len > 1) {
|
||||
entry.filename_len--;
|
||||
}
|
||||
entry.flags |= PHAR_ENT_PERM_DEF_DIR;
|
||||
} else {
|
||||
entry.is_dir = 0;
|
||||
|
||||
+2
-2
@@ -3,6 +3,6 @@
|
||||
#define PHP_MAJOR_VERSION 5
|
||||
#define PHP_MINOR_VERSION 6
|
||||
#define PHP_RELEASE_VERSION 14
|
||||
#define PHP_EXTRA_VERSION "-dev"
|
||||
#define PHP_VERSION "5.6.14-dev"
|
||||
#define PHP_EXTRA_VERSION ""
|
||||
#define PHP_VERSION "5.6.14"
|
||||
#define PHP_VERSION_ID 50614
|
||||
Reference in new issue
Block a user