php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39719 Lost of scope in objects
Submitted: 2006-12-03 04:07 UTC Modified: 2006-12-03 09:27 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:3 (75.0%)
From: daxohara at gmail dot com Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.2.0 OS: debian etch/ubuntu edgy-elf
Private report: No CVE-ID: None
 [2006-12-03 04:07 UTC] daxohara at gmail dot com
Description:
------------
we instantiate 3 objects, 2 are child of the other one... the parent's variables should be the same for the 2 childs but thats not whats happening.

Reproduce code:
---------------
http://balzac.s1mp3.org/bug.php.txt

Expected result:
----------------
We expect that the BzPage array content printed from all objects stay the same, once the array is always the same...

Actual result:
--------------
looks like in someplace the object lost the scope of BzPage array and it's printing a totaly diferent result.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-03 09:27 UTC] bjori@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Core->BzPage isn't initialized when you create the render 
& languages objects.
Move $this->BzPage=$BzPage; up one line
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 17:01:29 2024 UTC