mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
Merge branch 'PHP-5.5' of https://git.php.net/repository/php-src into PHP-5.5
This commit is contained in:
commit
3645a80b38
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
Bug #43201 (Crash on using unitialized vals and __get/__set)
|
||||
Bug #43201 (Crash on using uninitialized vals and __get/__set)
|
||||
--FILE--
|
||||
<?php
|
||||
class Foo {
|
||||
|
@ -199,7 +199,6 @@ mysqli_close($link);
|
||||
if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) {
|
||||
printf("[008] %s [%d] %s\n", $column_def,
|
||||
mysqli_errno($link), mysqli_error($link));
|
||||
continue;
|
||||
}
|
||||
|
||||
$column_def = array('col1 CHAR(1)', 'col2 CHAR(2)','INDEX idx_col1_col2(col1, col2)');
|
||||
@ -220,7 +219,6 @@ mysqli_close($link);
|
||||
while ($field = mysqli_fetch_field($res)) {
|
||||
if (!isset($expected_flags[$field->name])) {
|
||||
printf("[010] Found unexpected field '%s'\n", $field->name);
|
||||
continue;
|
||||
}
|
||||
list($missing_flags, $unexpected_flags, $flags_found) = checkFlags($field->flags, $expected_flags[$field->name], $flags);
|
||||
if ($unexpected_flags)
|
||||
|
@ -85,10 +85,12 @@ MySQLPDOTest::skip();
|
||||
|
||||
|
||||
} catch (PDOException $e) {
|
||||
printf("[001] %s, [%s] %s\n",
|
||||
printf("[001] %s, [%s] %s [%s] %s\n",
|
||||
$e->getMessage(),
|
||||
(is_object($db)) ? $db->errorCode() : 'n/a',
|
||||
(is_object($db)) ? implode(' ', $db->errorInfo()) : 'n/a');
|
||||
(is_object($db1)) ? $db1->errorCode() : 'n/a',
|
||||
(is_object($db1)) ? implode(' ', $db1->errorInfo()) : 'n/a',
|
||||
(is_object($db2)) ? $db2->errorCode() : 'n/a',
|
||||
(is_object($db2)) ? implode(' ', $db2->errorInfo()) : 'n/a');
|
||||
}
|
||||
|
||||
print "done!";
|
||||
|
Loading…
Reference in New Issue
Block a user