From:             [EMAIL PROTECTED]
Operating system: Windows Vista
PHP version:      5.2.5
PHP Bug Type:     XML related
Bug description:  Doubled memory usage on XInclude with Unix-style filenames

Description:
------------
On Windows, XML files with large amounts of XIncludes (such as the PHP
Documentation Manual, where this bug was discovered) exhibit curious
behavior when they were loaded with Unix-style paths: they appear to
require double the memory than if they were loaded with Windows-style
paths.

Reproduce code:
---------------
<?php

// note forward slashes
$file = 'C:/Users/Edward/phpdoc/manual.xml';
$dom = new DOMDocument();
echo "Loading XML\n";
$dom->load($file);
echo "Performing XIncludes\n";
$dom->xinclude();


Expected result:
----------------
With an external process manager (Task Manager or Process Explorer),
memory usage should spike on $dom->load(), and then stay constant during
XIncludes. XIncludes should be very quick.

Actual result:
--------------
XIncludes take a long time to run, and double the memory usage of
php.exe.

A curious side-effect of this is that call to $dom->load() immediately
after the offending XInclude is extremely slow. This can be from a
completely separate process.

-- 
Edit bug report at http://bugs.php.net/?id=44125&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=44125&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44125&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44125&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44125&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44125&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44125&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44125&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44125&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44125&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44125&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44125&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44125&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44125&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44125&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=44125&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=44125&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44125&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44125&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44125&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44125&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44125&r=mysqlcfg

Reply via email to