ID:               38124
 User updated by:  boing at boing dot com
 Reported By:      boing at boing dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         DOM XML related
 Operating System: openbsd 3.8
 PHP Version:      5.1.4
 New Comment:

[EMAIL PROTECTED],

I put the reproduce code in the original bug report.  THe files are
still on my website.  In addition, I don't think it's DOM XML related. 
My money WAS on xml_parse in the beginning, but no longer.  I think it's
on the associative arrays. :)

reproduce code again... download:  http://www.boing.com/phptest.tgz
inside there is a phptest.php and a datafile.  php phptest.php on
openbsd 3.8 will yield the failture to realloc.  I tried it on gentoo
with successful results.

Geff


Previous Comments:
------------------------------------------------------------------------

[2006-07-18 06:45:24] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2006-07-17 21:35:46] boing at boing dot com

This is going to sound dumb, but does php have a limit on the size of
an associative array?  Or the number of multi-dimensional associative
arrays that are part of one variable?  I've googled for these types of
things with no results.

------------------------------------------------------------------------

[2006-07-17 21:22:50] boing at boing dot com

Thanks for the speedy response!

I tried in linux also, works well in gentoo, not in openbsd.  :( But
openbsd has some weird stuff going on: propolice, etc.  Windows has
marks on it where I've been touchin in with the 10 foot poll.

course the usual bsd analities result in the linking stage:
main/.libs/php_sprintf.o(.text+0x24): In function `php_sprintf':
/usr/local/src/php5.2-200607172030/main/php_sprintf.c:38: warning:
vsprintf() is often misused, please use vsnprintf()
ext/pdo/.libs/pdo_dbh.o(.text+0x37): In function
`pdo_raise_impl_error':
/usr/local/src/php5.2-200607172030/ext/pdo/pdo_dbh.c:60: warning:
strcpy() is almost always misused, please use strlcpy()
ext/sqlite/libsqlite/src/.libs/btree.o(.text+0x46ba): In function
`checkRef':
/usr/local/src/php5.2-200607172030/ext/sqlite/libsqlite/src/btree.c:3201:
warning: sprintf() is often misused, please use snprintf()
ext/mysql/.libs/php_mysql.o(.text+0x5007): In function
`php_mysql_field_info':
/usr/local/src/php5.2-200607172030/ext/mysql/php_mysql.c:2418: warning:
strcat() is almost always misused, please use strlcat()

script results w/ php5.2-200607172030:  (same thing, slightly different
byte count, of course)

kusanagi:/usr/local/apache2/htdocs)unlimit
kusanagi:/usr/local/apache2/htdocs)limit
cputime      unlimited
filesize     unlimited
datasize     262144 kbytes
stacksize    32768 kbytes
coredumpsize unlimited
memoryuse    392364 kbytes
descriptors  1024
memorylocked 392364 kbytes
maxproc      512
kusanagi:/usr/local/apache2/htdocs)ls -la typo3temp/extensions.xml.gz
-rw-r--r--  1 boing  wheel  599305 Jul 17 02:32
typo3temp/extensions.xml.gz
kusanagi:/usr/local/apache2/htdocs)/usr/local/php52/bin/php
phptest.php
start handler<br>
new handler<br>
parsing......<br>
<p>The extensions list has been updated and now contains 1777 extension
entries.</p><br>
saving...<br>
FATAL:  erealloc():  Unable to allocate 3346466 bytes

------------------------------------------------------------------------

[2006-07-17 20:01:49] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

Works fine here (Linux).

------------------------------------------------------------------------

[2006-07-17 13:02:48] boing at boing dot com

BTW - openbsd 3.8 package of php 5.0.4 exhibits the same behavior. 
package name:  php5-core-5.0.4p0

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/38124

-- 
Edit this bug report at http://bugs.php.net/?id=38124&edit=1

Reply via email to