php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77755 Cannot preview or submit new note
Submitted: 2019-03-17 00:07 UTC Modified: 2021-08-15 04:22 UTC
From: mark at manngo dot net Assigned: cmb (profile)
Status: No Feedback Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
37 - 15 = ?
Subscribe to this entry?

 
 [2019-03-17 00:07 UTC] 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;
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-08-04 12:36 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-08-04 12:36 UTC] cmb@php.net
Is this still an issue for you?  Apparently, other users can add
new notes.
 [2021-08-15 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Sep 28 12:03:37 2021 UTC