|  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: 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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2007-10-24 11:57 UTC]
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 ;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-24 12:41 UTC]
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]
-Status: Open +Status: Wont fix
 [2017-04-01 21:34 UTC]
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-2022 The PHP Group
All rights reserved.
Last updated: Thu Oct 06 01:06:32 2022 UTC