Bug #64576 [Opn->Nab]: stream_notification_callback doesn't seem to work
| From: | felipe@php.net | Date: | Sat, 06 Apr 2013 15:36:15 +0000 |
| Subject: | Bug #64576 [Opn->Nab]: stream_notification_callback doesn't seem to work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-178326@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64576&edit=1
ID: 64576
Updated by: felipe@php.net
Reported by: zelnaga at gmail dot com
Summary: stream_notification_callback doesn't seem to work
-Status: Open
+Status: Not a bug
Type: Bug
Package: Streams related
Operating System: Windows 7
PHP Version: 5.4.13
Block user comment: N
Private report: N
New Comment:
You have called stream_context_set_option() instead of stream_context_set_params().
Previous Comments:
------------------------------------------------------------------------
[2013-04-03 13:12:49] zelnaga at gmail dot com
Description:
------------
http://www.php.net/manual/en/function.stream-notification-callback.php
Per that I'd wouldn't expect the following test scripts to produce errors but they
do.
Test script:
---------------
<?php
stream_context_create(array('notification' => 'callback'));
?>
<?php
$ctx = stream_context_create();
stream_context_set_option($ctx, array('notification' => 'callback'));
?>
Expected result:
----------------
(blank)
Actual result:
--------------
Warning: stream_context_create(): options should have the form ["wrappername"]
["optionname"] = $value in /path/to/file.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64576&edit=1