php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69478 PHP.net Website User Contribution Problem
Submitted: 2015-04-17 22:38 UTC Modified: 2016-11-24 05:43 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: Karim dot Khaled dot Wahby at outlook dot com Assigned: sobak (profile)
Status: Closed Package: Website problem
PHP Version: 5.4.40 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Karim dot Khaled dot Wahby at outlook dot com
New email:
PHP Version: OS:

 

 [2015-04-17 22:38 UTC] Karim dot Khaled dot Wahby at outlook dot com
Description:
------------
It's about this User Contribution
I'm the owner of this contribution and the problem with it is :
1- this line of code is not accurate :
   echo gettype($func) . '<br />'; // Object
     I should have used is_callable instead 
2- In The comment
     // use is to inheret the variable $num1 from the calling function
   the word 'calling function' should be replace with 'parent function'
   also the word inherit is misspelled

finally this is the Contribution link :
http://php.net/manual/en/language.references.return.php#117124

I'm sorry for that but I edited the post locally in my PC and then submitted the old version :( and I couldn't Edit My Contribution

thanks for your concern and effort to read this
Regards,
Karim Wahby


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-18 00:58 UTC] cmb@php.net
-Type: Documentation Problem +Type: Bug -Package: Documentation problem +Package: Website problem
 [2015-04-18 00:58 UTC] cmb@php.net
Thanks for your contribution and the reporting the desired
correction, Karim. I would suggest to move the corrected
contribution to either the "Anonymous functions"[1] or the
"Returning values"[2] man page, as it doesn't seem to be related to
references at all.

Changing to "PHP.net Website problem" to better reach the admins.

[1] <http://php.net/manual/en/functions.anonymous.php>
[2] <http://php.net/manual/en/functions.returning-values.php>
 [2016-11-24 05:43 UTC] sobak@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: sobak
 [2016-11-24 05:43 UTC] sobak@php.net
Hi Karim,

I have removed your note because of wrong manual section and code sample, but feel free to add it again, as soon as you fix those issues. Here is the note content before the removal, for your reference: http://news.php.net/php.notes/207543
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC