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

From: Date: Fri, 25 Sep 2009 16:40:13 +0000
Subject: #49661 [Bgs]: namespace backslash is incorrect in example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2822@lists.php.net to get a copy of this message
ID: 49661 Updated by: bjori@php.net Reported By: kent at marketruler dot com Status: Bogus Bug Type: Documentation problem Operating System: n/a PHP Version: 5.3.0 New Comment: in single quotes you only have to escape ', no other characater. Previous Comments: ------------------------------------------------------------------------ [2009-09-25 07:39:50] rquadling@php.net Example works as documented. ------------------------------------------------------------------------ [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 (#2822) next »