Edit report at https://bugs.php.net/bug.php?id=77755&edit=1
ID: 77755 Updated by: c...@php.net Reported by: mark at manngo dot net Summary: Cannot preview or submit new note -Status: Open +Status: Feedback Type: Bug Package: Website problem PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Is this still an issue for you? Apparently, other users can add new notes. Previous Comments: ------------------------------------------------------------------------ [2019-03-17 00:07:43] mark at manngo dot net 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 this bug report at https://bugs.php.net/bug.php?id=77755&edit=1 -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php