mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Fix bug #66660: use str_efree instead of efree to handle interned empty strings correctly
This commit is contained in:
parent
7fd9898a2d
commit
20036525e2
1
NEWS
1
NEWS
@ -8,6 +8,7 @@ PHP NEWS
|
||||
to complete the set; now possible thanks to bug #66015 being fixed. (Bob)
|
||||
. Fixed bug #66568 (Update reflection information for unserialize() function).
|
||||
(Ferenc)
|
||||
. Fixed bug #66660 (Composer.phar install/update fails). (Ferenc)
|
||||
|
||||
- mysqlnd:
|
||||
. Added a new fetching mode to mysqlnd. (Andrey)
|
||||
|
13
Zend/tests/bug66660.phpt
Normal file
13
Zend/tests/bug66660.phpt
Normal file
@ -0,0 +1,13 @@
|
||||
--TEST--
|
||||
Bug #66660 (Composer.phar install/update fails)
|
||||
--STDIN--
|
||||
<?php __CLASS__ ?>
|
||||
--FILE--
|
||||
<?php
|
||||
file_put_contents(__DIR__."/bug66660.tmp.php", "<?php __CLASS__ ?>");
|
||||
echo php_strip_whitespace(__DIR__."/bug66660.tmp.php");
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php unlink(__DIR__."/bug66660.tmp.php"); ?>
|
||||
--EXPECT--
|
||||
<?php __CLASS__ ?>
|
@ -211,7 +211,7 @@ ZEND_API void zend_strip(TSRMLS_D)
|
||||
break;
|
||||
|
||||
default:
|
||||
efree(token.value.str.val);
|
||||
STR_FREE(token.value.str.val);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user