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.
Make sure core module has number 0 (php#12272)
* Make sure core module has number 0 Some places, possibly also outside PHP, assume the core extension has module number 0. After 8a812c3 this wasn't the case anymore as reported in [1]. Fix it by changing how the next module ID is computed. [1] php#12246 (comment) * Add assertion * Add test
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--TEST-- | ||
CLI php -i extension_dir | ||
--SKIPIF-- | ||
<?php | ||
include "skipif.inc"; | ||
if (substr(PHP_OS, 0, 3) == 'WIN') { | ||
die ("skip not for Windows"); | ||
} | ||
?> | ||
--FILE-- | ||
<?php | ||
|
||
$php = getenv('TEST_PHP_EXECUTABLE_ESCAPED'); | ||
$output = `$php -n -i`; | ||
var_dump(str_contains($output, "extension_dir => ")); | ||
|
||
?> | ||
--EXPECT-- | ||
bool(true) |