Skip to content

Commit d1b48a8

Browse files
committed
Merge branch 'master' of https://git.php.net/repository/php-src
Conflicts: ext/mysqli/mysqli_api.c
2 parents 101c055 + b01b971 commit d1b48a8

File tree

9 files changed

+19
-22
lines changed

9 files changed

+19
-22
lines changed

Zend/tests/bug54013.phpt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #54013 (ReflectionParam for duplicate parameter contains garbage)
2+
Bug #54013 (ReflectionParam for duplicate parameter contains garbage) (PHP7)
33
--FILE--
44
<?php
55

@@ -21,11 +21,4 @@ var_dump($params[0], $params[1]);
2121

2222
?>
2323
--EXPECTF--
24-
object(ReflectionParameter)#%d (1) {
25-
["name"]=>
26-
string(8) "aaaaaaaa"
27-
}
28-
object(ReflectionParameter)#%d (1) {
29-
["name"]=>
30-
string(8) "aaaaaaaa"
31-
}
24+
Fatal error: Redefinition of parameter aaaaaaaa in %sbug54013.php on line 5

Zend/tests/bug64515.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Bug #64515 (Memoryleak when using the same variablename 2times in function declaration)
2+
Bug #64515 (Memoryleak when using the same variablename 2times in function declaration) (PHP7)
33
--FILE--
44
<?php
55
function foo($unused = null, $unused = null, $arg = array()) {
@@ -8,5 +8,5 @@ function foo($unused = null, $unused = null, $arg = array()) {
88
foo();
99
echo "okey";
1010
?>
11-
--EXPECT--
12-
okey
11+
--EXPECTF--
12+
Fatal error: Redefinition of parameter unused in %sbug64515.php on line 2

Zend/zend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#ifndef ZEND_H
2323
#define ZEND_H
2424

25-
#define ZEND_VERSION "2.7.0-dev"
25+
#define ZEND_VERSION "2.8.0-dev"
2626

2727
#define ZEND_ENGINE_2
2828

Zend/zend_extensions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/* The first number is the engine version and the rest is the date.
2929
* This way engine 2/3 API no. is always greater than engine 1 API no..
3030
*/
31-
#define ZEND_EXTENSION_API_NO 220131227
31+
#define ZEND_EXTENSION_API_NO 220140815
3232

3333
typedef struct _zend_extension_version_info {
3434
int zend_extension_api_no;

Zend/zend_modules.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#define ZEND_MODULE_INFO_FUNC_ARGS zend_module_entry *zend_module TSRMLS_DC
3434
#define ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU zend_module TSRMLS_CC
3535

36-
#define ZEND_MODULE_API_NO 20131227
36+
#define ZEND_MODULE_API_NO 20140815
3737
#ifdef ZTS
3838
#define USING_ZTS 1
3939
#else

ext/mysqli/mysqli_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,6 +1688,10 @@ static int mysqli_options_get_option_zval_type(int option)
16881688
{
16891689
switch (option) {
16901690
#ifdef MYSQLI_USE_MYSQLND
1691+
#if PHP_MAJOR_VERSION >= 6
1692+
/* PHP-7 doesn't supprt unicode yet ??? */
1693+
/*case MYSQLND_OPT_NUMERIC_AND_DATETIME_AS_UNICODE:*/
1694+
#endif
16911695
case MYSQLND_OPT_NET_CMD_BUFFER_SIZE:
16921696
case MYSQLND_OPT_NET_READ_BUFFER_SIZE:
16931697
#ifdef MYSQLND_STRING_TO_INT_CONVERSION

main/php_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* automatically generated by configure */
22
/* edit configure.in to change version number */
3-
#define PHP_MAJOR_VERSION 7
3+
#define PHP_MAJOR_VERSION 7
44
#define PHP_MINOR_VERSION 0
55
#define PHP_RELEASE_VERSION 0
66
#define PHP_EXTRA_VERSION "-dev"

tests/lang/func_get_arg.001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
func_get_arg test
2+
func_get_arg test (PHP7)
33
--FILE--
44
<?php
55

@@ -12,4 +12,4 @@ foo(2);
1212
echo "\n";
1313
?>
1414
--EXPECT--
15-
2
15+
5

tests/lang/func_get_args.004.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
Pass same variable by ref and by value.
2+
Pass same variable by ref and by value (PHP7).
33
--FILE--
44
<?php
55
function valRef($x, &$y) {
@@ -42,7 +42,7 @@ array(2) {
4242
}
4343
array(2) {
4444
[0]=>
45-
string(10) "original.a"
45+
string(9) "changed.x"
4646
[1]=>
4747
string(9) "changed.y"
4848
}
@@ -62,6 +62,6 @@ array(2) {
6262
[0]=>
6363
string(9) "changed.x"
6464
[1]=>
65-
string(10) "original.b"
65+
string(9) "changed.y"
6666
}
67-
string(9) "changed.x"
67+
string(9) "changed.x"

0 commit comments

Comments
 (0)