php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 + 27 = ?
Subscribe to this entry?

 
 [2013-04-03 13:12 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-06 15:36 UTC] felipe@php.net
You have called stream_context_set_option() instead of stream_context_set_params().
 [2013-04-06 15:36 UTC] felipe@php.net
-Status: Open +Status: Not a bug
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 20 11:01:30 2019 UTC