forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of ssh://git.php.net/php-src
- Loading branch information
Showing
28 changed files
with
1,453 additions
and
615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--TEST-- | ||
Bug #63305 (zend_mm_heap corrupted with traits) | ||
--FILE-- | ||
<?php | ||
new Attachment(""); | ||
|
||
function __autoload($class) { | ||
switch ($class) { | ||
case "Attachment": | ||
eval(<<<'PHP' | ||
class Attachment extends File { | ||
} | ||
PHP | ||
); | ||
break; | ||
case "File": | ||
eval(<<<'PHP' | ||
class File { | ||
use TDatabaseObject { | ||
TDatabaseObject::__construct as private databaseObjectConstruct; | ||
} | ||
public function __construct() { | ||
} | ||
} | ||
PHP | ||
); | ||
break; | ||
case "TDatabaseObject": | ||
eval(<<<'PHP' | ||
trait TDatabaseObject { | ||
public function __construct() { | ||
} | ||
} | ||
PHP | ||
); | ||
break; | ||
} | ||
return TRUE; | ||
} | ||
echo "okey"; | ||
?> | ||
--EXPECT-- | ||
okey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--TEST-- | ||
Bug #63336 (invalid E_NOTICE error occur) | ||
--XFAIL-- | ||
Bug is not fixed yet | ||
--FILE-- | ||
<?php | ||
error_reporting(E_ALL | E_NOTICE ); | ||
define("TEST", "123"); | ||
class Base { | ||
const DUMMY = "XXX"; | ||
public function foo($var=TEST, $more=null) { return true; } | ||
public function bar($more=self::DUMMY) { return true; } | ||
} | ||
|
||
class Child extends Base { | ||
const DUMMY = "DDD"; | ||
public function foo($var=TEST, array $more = array()) { return true; } | ||
public function bar($var, $more=self::DUMMY) { return true; } | ||
} | ||
?> | ||
--EXPECT-- | ||
Strict Standards: Declaration of Child::foo() should be compatible with Base::foo($var = '123', $more = NULL) in %sbug63336.php on line %d | ||
|
||
Strict Standards: Declaration of Child::bar() should be compatible with Base::bar($var, $more = 'XXX') in %sbug63336.php on line %d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--TEST-- | ||
Bug #63363 (CURL silently accepts boolean value for SSL_VERIFYHOST) | ||
--SKIPIF-- | ||
<?php | ||
if (!extension_loaded("curl")) { | ||
exit("skip curl extension not loaded"); | ||
} | ||
|
||
?> | ||
--FILE-- | ||
<?php | ||
$ch = curl_init(); | ||
var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false)); | ||
/* Case that should throw an error */ | ||
var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true)); | ||
var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0)); | ||
var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1)); | ||
var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2)); | ||
|
||
curl_close($ch); | ||
?> | ||
--EXPECTF-- | ||
bool(true) | ||
|
||
Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST set to true which disables common name validation (setting CURLOPT_SSL_VERIFYHOST to 2 enables common name validation) in %s on line %d | ||
bool(true) | ||
bool(true) | ||
bool(true) | ||
bool(true) |
Oops, something went wrong.