|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64576 stream_notification_callback doesn't seem to work
Submitted: 2013-04-03 13:12 UTC Modified: 2013-04-06 15:36 UTC
From: zelnaga at gmail dot com Assigned:
Status: Not a bug Package: Streams related
PHP Version: 5.4.13 OS: Windows 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: zelnaga at gmail dot com
New email:
PHP Version: OS:


 [2013-04-03 13:12 UTC] zelnaga at gmail dot com

Per that I'd wouldn't expect the following test scripts to produce errors but they 

Test script:
stream_context_create(array('notification' => 'callback'));

$ctx = stream_context_create();
stream_context_set_option($ctx, array('notification' => 'callback'));

Expected result:

Actual result:
Warning: stream_context_create(): options should have the form ["wrappername"]
["optionname"] = $value in /path/to/file.php on line 2


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-06 15:36 UTC]
You have called stream_context_set_option() instead of stream_context_set_params().
 [2013-04-06 15:36 UTC]
-Status: Open +Status: Not a bug
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 03:01:30 2024 UTC