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.
zend-test extension to house code that is required for testing intern…
…al APIs, but that we would not want to expose for regular builds
- Loading branch information
Showing
14 changed files
with
1,236 additions
and
224 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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
--TEST-- | ||
Return type for internal functions | ||
|
||
--SKIPIF-- | ||
<?php | ||
if (!function_exists('zend_test_func')) { | ||
print 'skip'; | ||
} | ||
|
||
if (!function_exists('zend_test_array_return')) die('skip'); | ||
// Internal function return types are only checked in debug builds | ||
if (!PHP_DEBUG) die('skip requires debug build'); | ||
?> | ||
--FILE-- | ||
<?php | ||
zend_test_func(); | ||
zend_test_array_return(); | ||
?> | ||
--EXPECTF-- | ||
Fatal error: Return value of zend_test_func() must be of the type array, null returned in %s on line %d | ||
Fatal error: Return value of zend_test_array_return() must be of the type array, null returned in %s 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,12 @@ | ||
--TEST-- | ||
Return type for internal functions 2 | ||
|
||
--SKIPIF-- | ||
<?php | ||
if (!function_exists('zend_test_func2')) { | ||
print 'skip'; | ||
} | ||
|
||
if (!function_exists('zend_test_nullable_array_return')) die('skip'); | ||
--FILE-- | ||
<?php | ||
zend_test_func2(); | ||
echo "==DONE==\n" | ||
zend_test_nullable_array_return(); | ||
?> | ||
--EXPECTF-- | ||
==DONE== | ||
--EXPECT-- | ||
==DONE== |
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
Oops, something went wrong.