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
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:
Package:
Bug Type:
Summary:
From: mfp@php.net
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 09 09:03:33 2021 UTC