From: mark at manngo dot net Operating system: PHP version: Irrelevant Package: Website problem Bug Type: Bug Bug description:Cannot preview or submit new note
Description: ------------ I have tried a few times to add a new user contributed note. If I select Preview or Add Note, I am returned to add-note page, without the form part. The note itself doesnât appear to be added. Currently using Firefox on MacOS. I canât see that that makes any difference. Test script: --------------- For PHP 7.1 on, the documentation states that integer and string keys can be mixed, but that elements with and without keys cannot. Here is an example, using data from getimagesize() with mixed keys: <?php $data=[ 0=> 160, 1 => 120, 2 => 2, 3 => 'width="160" height="120"', 'mime' => 'image/jpeg' ]; list(0=>$width,1=>$height,2=>$type,3=>$dimensions,'mime'=>$mime)=$data; ?> Here, the numeric keys also need to be specified, as if the whole array is treated as an associative array. As noted elsewhere, the list() operator can be written in array format: <?php [0=>$width,1=>$height,2=>$type,3=>$dimensions,'mime'=>$mime]=$data; ?> -- Edit bug report at https://bugs.php.net/bug.php?id=77755&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77755&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77755&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77755&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77755&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77755&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77755&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77755&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77755&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77755&r=support Expected behavior: https://bugs.php.net/fix.php?id=77755&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77755&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77755&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77755&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77755&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77755&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77755&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77755&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77755&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77755&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77755&r=mysqlcfg -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php