-
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 pull request #3 from runkit7/add-spl_object_id-alias
Update CI environment, and implement spl_object_id alias for runkit_object_id
- Loading branch information
Showing
10 changed files
with
126 additions
and
24 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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
exec g++-4.6 -m32 "$@" | ||
exec g++-4.8 -m32 "$@" |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
exec gcc-4.6 -m32 "$@" | ||
exec gcc-4.8 -m32 "$@" |
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
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,49 @@ | ||
--TEST-- | ||
spl_object_id should fetch the object handle. | ||
--SKIPIF-- | ||
<?php | ||
if (PHP_VERSION_ID >= 70200) exit("skip redundant test in php 7.2"); | ||
if (!extension_loaded("runkit_object_id")) exit("skip"); | ||
?> | ||
--INI-- | ||
error_reporting=E_ALL | ||
--FILE-- | ||
<?php | ||
var_dump(spl_object_id(array())); | ||
var_dump(spl_object_id(null)); | ||
var_dump(spl_object_id(false)); | ||
var_dump(spl_object_id(true)); | ||
var_dump(spl_object_id(42)); | ||
var_dump(spl_object_id(1.5)); | ||
var_dump(spl_object_id('x')); | ||
$x = new stdClass(); | ||
$y = new stdClass(); | ||
var_dump(spl_object_id($x)); | ||
var_dump(spl_object_id($y)); | ||
var_dump(spl_object_id($x)); | ||
|
||
?> | ||
--EXPECTF-- | ||
Warning: spl_object_id() expects parameter 1 to be object, array given in %s on line %d | ||
NULL | ||
|
||
Warning: spl_object_id() expects parameter 1 to be object, null given in %s on line %d | ||
NULL | ||
|
||
Warning: spl_object_id() expects parameter 1 to be object, boolean given in %s on line %d | ||
NULL | ||
|
||
Warning: spl_object_id() expects parameter 1 to be object, boolean given in %s on line %d | ||
NULL | ||
|
||
Warning: spl_object_id() expects parameter 1 to be object, integer given in %s on line %d | ||
NULL | ||
|
||
Warning: spl_object_id() expects parameter 1 to be object, %s given in %s on line %d | ||
NULL | ||
|
||
Warning: spl_object_id() expects parameter 1 to be object, string given in %s on line %d | ||
NULL | ||
int(1) | ||
int(2) | ||
int(1) |