php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57889 PHP message coming from "$sammsg->header->$key = $value ;"
Submitted: 2007-10-24 11:57 UTC Modified: 2017-04-01 21:34 UTC
From: mfp@php.net Assigned:
Status: Wont fix Package: sam (PECL)
PHP Version: 5.2.1 OS: WinXP
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
18 - 3 = ?
Subscribe to this entry?

 
 [2007-10-24 11:57 UTC] mfp@php.net
Description:
------------
I usually run with STRICT message on i.e. error_reporting  =  E_ALL | E_NOTICE | E_STRICT
 in php.ini, 
and when I do so I get a message from SAM on every receive:

PHP Strict Standards:  Creating default object from empty value in C:\php\PEAR\S
AM\Stomp\sam_stomp.php on line 523

(I might have changed the line number by messing with the file)

This can be fixed quickly and dirtily with a @ in front of the line:
@$sammsg->header->$key = $value ;




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-24 12:41 UTC] mfp@php.net
Actually there are a few more places where having PHP strict messages throws up errors:

Occasionally the code uses SAM_PRIORITY and SAM_TIMETOLIVE but these are not defined.
 [2017-04-01 21:34 UTC] tpunt@php.net
-Status: Open +Status: Wont fix
 [2017-04-01 21:34 UTC] tpunt@php.net
Due to this extension not seeing any activity since 2007, this issue will not be fixed. We are therefore closing this now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 08:01:32 2024 UTC