Doc #77009 [NEW]: base64_decode different behavior in php 5.6 and 7.2

From: Date: Fri, 12 Oct 2018 14:24:45 +0000
Subject: Doc #77009 [NEW]: base64_decode different behavior in php 5.6 and 7.2
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16071@lists.php.net to get a copy of this message
From: klewi1983 at wp dot pl Operating system: Windows 7 x64 PHP version: Irrelevant Package: *URL Functions Bug Type: Documentation Problem Bug description:base64_decode different behavior in php 5.6 and 7.2 Description: ------------ XAMPP 5.6.31 32bit: PHP 5.6.31 (cli) (built: Jul 5 2017 22:25:43) XAMPP 7.2.10, both 32 bit: PHP 7.2.10 (cli) (built: Sep 13 2018 01:01:10) ( ZTS MSVC15 (Visual C++ 2017) x86 ) My test file (test.bin) size is 123 KB. How can I attach it to the bug? Test script: --------------- var_dump(base64_decode(file_get_contents("test.bin"))); Expected result: ---------------- string(0) "" Actual result: -------------- result in PHP 5.6.31: string(0) "" result in PHP 7.2.10: string(22534) "Yt yeN)O?←┬ÁuAŞČ7L............... -- Edit bug report at https://bugs.php.net/bug.php?id=77009&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77009&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77009&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77009&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77009&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77009&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77009&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77009&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77009&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77009&r=support Expected behavior: https://bugs.php.net/fix.php?id=77009&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77009&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77009&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77009&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77009&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77009&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77009&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77009&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77009&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77009&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77009&r=mysqlcfg

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