#49661 [Opn->Bgs]: namespace backslash is incorrect in example

From: Date: Fri, 25 Sep 2009 07:39:50 +0000
Subject: #49661 [Opn->Bgs]: namespace backslash is incorrect in example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2816@lists.php.net to get a copy of this message
ID: 49661 Updated by: rquadling@php.net Reported By: kent at marketruler dot com -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: n/a PHP Version: 5.3.0 New Comment: Example works as documented. Previous Comments: ------------------------------------------------------------------------ [2009-09-25 07:39:00] rquadling@php.net Seems not to be the case. I even changed the code so Foo was noo (\noo). Output is as documented. NFF. ------------------------------------------------------------------------ [2009-09-24 19:21:36] kent at marketruler dot com Description: ------------ Need to properly quote backslash in example in call_user_func_array Reproduce code: --------------- --- From manual page: function.call-user-func-array --- // As of PHP 5.3.0 call_user_func_array(__NAMESPACE__ .'\Foo::test', array('Hannes')); // As of PHP 5.3.0 call_user_func_array(array(__NAMESPACE__ .'\Foo', 'test'), array('Philip')); SHOULD BE: // As of PHP 5.3.0 call_user_func_array(__NAMESPACE__ .'\\Foo::test', array('Hannes')); // As of PHP 5.3.0 call_user_func_array(array(__NAMESPACE__ .'\\Foo', 'test'), array('Philip')); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49661&edit=1

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