Req #77469 [NEW]: Support for multiple empty() arguments - like isset()

From: Date: Wed, 16 Jan 2019 14:37:11 +0000
Subject: Req #77469 [NEW]: Support for multiple empty() arguments - like isset()
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16334@lists.php.net to get a copy of this message
From: rich at milns dot com Operating system: All PHP version: 7.2.14 Package: Documentation problem Bug Type: Feature/Change Request Bug description:Support for multiple empty() arguments - like isset() Description: ------------ It would be useful if the empty() function also supported multiple function arguments, like isset() does. So basically "are all of these variables empty()". Similar to: Bug #12978: Multiple isset Test script: --------------- e.g. <?php // multiple variables supported by empty() var_dump(empty($var1, $var2, $var3)); // true ?> instead of: <?php // repeatedly calling empty() to check multiple variables $result = (empty($var1) and empty($var2) and empty($var3)); var_dump($result); // true ?> -- Edit bug report at https://bugs.php.net/bug.php?id=77469&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77469&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77469&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77469&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77469&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77469&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77469&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77469&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77469&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77469&r=support Expected behavior: https://bugs.php.net/fix.php?id=77469&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77469&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77469&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77469&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77469&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77469&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77469&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77469&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77469&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77469&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77469&r=mysqlcfg

« previous php.doc.bugs (#16334) next »