#49953 [Com]: stream_context_create() expects at most 1 parameter
| From: | zlobnygrif at gmail dot com | Date: | Thu, 22 Oct 2009 10:17:05 +0000 |
| Subject: | #49953 [Com]: stream_context_create() expects at most 1 parameter | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2988@lists.php.net to get a copy of this message | ||
ID: 49953
Comment by: zlobnygrif at gmail dot com
Reported By: zlobnygrif at gmail dot com
Status: Open
Bug Type: Documentation problem
Operating System: FreeBSD
PHP Version: 5.2.11
New Comment:
Fix:
$ctx = stream_context_create();
stream_context_set_params($ctx, array("notification" =>
"stream_notification_callback"));
Previous Comments:
------------------------------------------------------------------------
[2009-10-22 10:10:20] zlobnygrif at gmail dot com
Description:
------------
Incorrect description
Reproduce code:
---------------
---
From manual page: function.stream-context-create#Description
From manual page: function.stream-notification-callback.php#Examples
---
$ctx = stream_context_create(null, array("notification" =>
"stream_notification_callback"));
Expected result:
----------------
Warning: stream_context_create() expects at most 1 parameter, 2 given
in ...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49953&edit=1