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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 13:01:34 2025 UTC