php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35033 require include strange behaviour on big files
Submitted: 2005-10-31 11:17 UTC Modified: 2005-10-31 19:20 UTC
From: luciano at tolomei dot name Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.0.5 OS: linux gentoo
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: luciano at tolomei dot name
New email:
PHP Version: OS:

 

 [2005-10-31 11:17 UTC] luciano at tolomei dot name
Description:
------------
I'm using the prado framework (www.xisc.com)
for performance problems i made a script that aggregate namespaces in one file.

it seem that on really big files to include, like 400 or more KB:

class aaa extends bbb {}
class bbb {}

will not work, you need to:

class bbb {}
class aaa extends bbb {}

---
Class are missing some extended properties and methods... 
The missing prop/methods are in previous defined classes

like
require_once('filea.php');
require_once('fileb.php');
if a class defined in the fileb, BIG file, extends something defined in filea it will not work anymore.

i'm not sure but it can be also that it's due to:
file a:
class a {}
class b extends b {}
file b:
class c extends b {}
and we are missing class a prop and methods in class c.

Reproduce code:
---------------
i can give an ftp access to an installation of the code.
or a link to a zip to download

Expected result:
----------------
it should work, if we will not aggregate files it work perfectly

Actual result:
--------------
no error shown or logged we arror reporting all activated.

it display property or method not defined.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-31 11:47 UTC] derick@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

.
 [2005-10-31 19:16 UTC] luciano at tolomei dot name
sorry for the bogus about the first part of the bug report.

but:
"we are missing class propierties and methods in extended classes"

is not an intended behaviour.

it happen as i wrote in extended classes.
I have tested it on 3 system with php 5.0.1 and 5.0.5
 [2005-10-31 19:20 UTC] derick@php.net
File a separate bug for that then, never mix two in the same report. Also, if you file such a bug, provide a short reproducing script that illustrates the problem. I'm marking this one as bogus again.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Fri May 15 12:00:01 2026 UTC