Issue

ZF-1385: Indirect modification of Zend_Session_Namespace::$namespace has no effect

Issue Type: Bug Created: 2007-05-15T01:37:06.000+0000 Last Updated: 2008-02-04T11:15:21.000+0000 Status: Resolved Fix version(s): Reporter: Alex Adriaanse (alexadriaanse) Assignee: Ralph Schindler (ralph) Tags: - Zend_Controller

Related issues: - ZF-1743

Attachments: - flashmessenger.patch

Description

When I use the following code:

<pre class="highlight">
$messenger = $this->getHelper('FlashMessenger');
$messenger->setNamespace('login');
$messenger->addMessage($message);

I get the following notice:

<pre class="literal">
Notice: Indirect modification of overloaded property Zend_Session_Namespace::$login has no effect

As a result, the message never gets added to the array. The attached patch fixes this.

This problems occurred in PHP 5.2.0.

Comments

Posted by Bill Karwin (bkarwin) on 2007-05-15T12:13:48.000+0000

Assigning to Matthew.

Posted by Double Compile (doublecompile) on 2007-05-17T10:31:27.000+0000

I can also confirm this NOTICE under PHP 5.2.0.

Posted by Matthew Weier O'Phinney (matthew) on 2007-05-18T11:11:28.000+0000

Assigning to Ralph

Posted by Jonathan Adami (pitilezard) on 2007-06-04T13:26:53.000+0000

Exactly the same problem here, with exactly the same php version ... I found exactly the same patch :)

I use ZF-1.0RC1

Posted by Ralph Schindler (ralph) on 2007-06-04T13:34:28.000+0000

Testing now.

Posted by Ralph Schindler (ralph) on 2007-07-31T21:32:05.000+0000

I think this issue is one in the same.. I am trying to find a good test case to apply across different php versions, please see linked bug.

Posted by Ralph Schindler (ralph) on 2008-02-04T11:15:21.000+0000

Marking as not an issue, see notes in linked issue.. -ralph

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts