|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-02-17 09:54 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2015-02-17 09:54 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 11:00:02 2026 UTC |
Description: ------------ If the array key has null value it isn't extracted to variable. Is it correct behaviour? Test script: --------------- <?php $arr = [ 'username' => 'mruz', 'email' => null, 'age' => 0, 'website' => false ]; extract($arr); var_dump(isset($username), isset($email), isset($age), isset($website)); Expected result: ---------------- bool(true) bool(true) bool(true) bool(true) Actual result: -------------- bool(true) bool(false) bool(true) bool(true)