Compare commits

...
Author SHA1 Message Date
Stanislav Malyshev ee66edb17a Revert "Update test to fix breakage caused by the previous commit."
This reverts commit 05c8d4766c.
Connected to revert 7bbd5521d2.
2012-05-15 23:28:00 -07:00
Stanislav Malyshev a624992809 fix test 2012-05-15 23:27:54 -07:00
Stanislav Malyshev 5bc82d4305 update NEWS 2012-05-15 22:43:06 -07:00
Stanislav Malyshev de26b5561f fd fix 2012-05-15 22:42:11 -07:00
Stanislav Malyshev 1fdece54d9 fix bug #61065 2012-05-15 22:42:03 -07:00
Stanislav Malyshev e6dc487a2b prepare for 5.4.4 2012-05-15 22:13:24 -07:00
8 changed files with 39 additions and 13 deletions

No files matched your search

+5 -1
View File
@@ -1,6 +1,6 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2012, PHP 5.4.4
17 May 2012, PHP 5.4.4 RC1
- CLI Server:
. Implemented FR #61977 (Need CLI web-server support for files with .htm &
@@ -40,6 +40,10 @@ PHP NEWS
. Fixed bug #54547 (wrong equality of string numbers). (Gustavo)
. Fixed bug #54197 ([PATH=] sections incompatibility with user_ini.filename
set to null). (Anatoliy)
. Changed php://fd to be available only for CLI.
- Phar:
. Fix bug #61065 (Secunia SA44335). (Rasmus)
- Reflection:
. Implemented FR #61602 (Allow access to the name of constant
+2
View File
@@ -339,6 +339,8 @@ PHP 5.4 UPGRADE NOTES
- ob_start() no longer starts multiple output buffers when passed
array("callback1", "callback2", "callback3", ...).
- Since 5.4.4, "php://fd" stream syntax is available only in CLI build.
==============================
5. Changes to existing classes
==============================
+1 -1
View File
@@ -120,7 +120,7 @@ int zend_sprintf(char *buffer, const char *format, ...);
PHP_MAJOR_VERSION=5
PHP_MINOR_VERSION=4
PHP_RELEASE_VERSION=4
PHP_EXTRA_VERSION="-dev"
PHP_EXTRA_VERSION="-RC1"
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`
+3 -7
View File
@@ -9,12 +9,8 @@ var_dump(json_encode("latin 1234 -/ russian мама мыла раму speci
var_dump(json_encode("ab\xE0"));
var_dump(json_encode("ab\xE0", JSON_UNESCAPED_UNICODE));
?>
--EXPECTF--
--EXPECT--
string(156) ""latin 1234 -\/ russian \u043c\u0430\u043c\u0430 \u043c\u044b\u043b\u0430 \u0440\u0430\u043c\u0443 specialchars \u0002 \b \n U+1D11E >\ud834\udd1e<""
string(100) ""latin 1234 -\/ russian мама мыла раму specialchars \u0002 \b \n U+1D11E >𝄞<""
Warning: json_encode(): Invalid UTF-8 sequence in argument in %s on line %d
bool(false)
Warning: json_encode(): Invalid UTF-8 sequence in argument in %s on line %d
bool(false)
string(4) "null"
string(4) "null"
+10
View File
@@ -337,6 +337,16 @@ bail:
last_was_longlink = 1;
/* support the ././@LongLink system for storing long filenames */
entry.filename_len = entry.uncompressed_filesize;
/* Check for overflow - bug 61065 */
if (entry.filename_len == UINT_MAX) {
if (error) {
spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname);
}
php_stream_close(fp);
phar_destroy_phar_data(myphar TSRMLS_CC);
return FAILURE;
}
entry.filename = pemalloc(entry.filename_len+1, myphar->is_persistent);
read = php_stream_read(fp, entry.filename, entry.filename_len);
+14
View File
@@ -263,6 +263,20 @@ php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, ch
long fildes_ori;
int dtablesize;
if (strcmp(sapi_module.name, "cli")) {
if (options & REPORT_ERRORS) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Direct access to file descriptors is only available from command-line PHP");
}
return NULL;
}
if ((options & STREAM_OPEN_FOR_INCLUDE) && !PG(allow_url_include) ) {
if (options & REPORT_ERRORS) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "URL file-access is disabled in the server configuration");
}
return NULL;
}
start = &path[3];
fildes_ori = strtol(start, &end, 10);
if (end == start || *end != '\0') {
+2 -2
View File
@@ -3,6 +3,6 @@
#define PHP_MAJOR_VERSION 5
#define PHP_MINOR_VERSION 4
#define PHP_RELEASE_VERSION 4
#define PHP_EXTRA_VERSION "-dev"
#define PHP_VERSION "5.4.4-dev"
#define PHP_EXTRA_VERSION "-RC1"
#define PHP_VERSION "5.4.4-RC1"
#define PHP_VERSION_ID 50404
+2 -2
View File
@@ -39,7 +39,7 @@ Array
(
[name] => d
[type] => 1
[flags] => 4209
[flags] => 20593
[level] => 4
[chunk_size] => %d
[buffer_size] => 16384
@@ -95,7 +95,7 @@ Array
(
[name] => d
[type] => 1
[flags] => 4209
[flags] => 20593
[level] => 4
[chunk_size] => %d
[buffer_size] => 16384