Mombu the Php Forum

Go Back   Mombu the Php Forum > Php > 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 11th November 07:05
lmaltier
External User
 
Posts: 1
Default 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!



Hello!

My first message:

I've just updated PHP from 5.1.4 to 5.2.5 (to solve an Apache problem when
double-clicking on links). This was successful, as the problem is now
solved, but I now, sometimes, get a message stating that the memory is
exhausted. I modififed php.ini and set memory_limit to 16M (instead of 8M
with PHP5.1.4), then 32M, then 64M, with the same message. With 128M, it
works. Can this change in memory required be considered as normal? I don't
think so... Is there any explanation?

Details:
- Platform: Windows.
- I used Windows binaries (no C compiler available). The part causing the
error uses jpgraph (for generating .png files) and the png files are used
when generating a PDF file (by the tcpdf library) (the gd extension is
used).

A second issue with this release: When I made the tests decribed above, I
used 'restart' to restart the Apache server, with no error message. When I
tried to stop Apache and start it again, I got an error message stating that
the zend_unmangle_property_name_ex entry cannot be found in php5ts.dll, and
I now get this message each time I restart Apache (Apache2.2),. But it seems
that Apache works normally nonetheless. I made sure that the php5ts.dll used
is the right version for 5.2.5. Any idea?

Thanks for any suggestion!
  Reply With Quote


 


2 11th November 12:09
eric.butera
External User
 
Posts: 1
Default 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!



On sites I work on we keep the memory limit quite low. Then on pages
that require more memory for image manipulation or what have you I
just ini_set the memory limit up to something I need. This isn't a
practical solution for all people but it works well for me as it is a
dedicated server under my control.

As for your second part I have no idea. Try the Windows PHP users list.
  Reply With Quote
3 11th November 12:09
lmaltier
External User
 
Posts: 1
Default 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!


Thanks for this clue (ini_set). But I normally don't need this amount of
memory anywhere, as 8M were OK in PHP5.1.4... I just want to understand what
happens.
  Reply With Quote
4 11th November 12:09
eric.butera
External User
 
Posts: 1
Default 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!


Memory limit wasn't force enabled before 5.2.1. Maybe that was it?

http://www.php.net/ChangeLog-5.php#5.2.1

Version 5.2.1

08-Feb-2007
Added CURLOPT_TCP_NODELAY constant to Curl extension. (Sara)
Added support for hex numbers of any size. (Matt)
Added function stream_socket_shutdown(). It is a wrapper for system
shutdown() function, that shut downs part of a full-duplex connection.
(Dmitry)
Added internal heap protection (Dmitry)
memory-limit is always enabled (--enable-memory-limit removed)
  Reply With Quote
5 11th November 12:09
sancar.saran
External User
 
Posts: 1
Default 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!


If you are used data which serialized by older versions this may lead memory
leaks.

Remove all caches etc then try.

Sancar
  Reply With Quote
6 11th November 12:09
nrixham
External User
 
Posts: 1
Default 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!


RE: the second apache issue, you only did a restart; you need to do a
force-reload to properly unload and reload apache2; as such you didn't
actually restart until the stop/start.

On a side note, can I suggest you uninstall all versions of php5 then
re-install again and see if the issues resolve themselves..

Many Regards

Nathan
  Reply With Quote
7 11th November 12:12
lmaltier
External User
 
Posts: 1
Default 128M need in PHP5.2.5 instead of 8M in PHP5.1.4!


Thank you. You must be right about the memory_limit not enabled in 5.1.4
Windows binaries. It would be nice, for the Windows binary download, to
provide details on parameters uised to compile it (and on extensions
included: actually, using the "installer" package is supposed to be simpler,
but it is more complex, because it does not include all extensions included
in the zip download...)

Memory limit wasn't force enabled before 5.2.1. Maybe that was it?

http://www.php.net/ChangeLog-5.php#5.2.1

Version 5.2.1

08-Feb-2007
Added CURLOPT_TCP_NODELAY constant to Curl extension. (Sara)
Added support for hex numbers of any size. (Matt)
Added function stream_socket_shutdown(). It is a wrapper for system
shutdown() function, that shut downs part of a full-duplex connection.
(Dmitry)
Added internal heap protection (Dmitry)
memory-limit is always enabled (--enable-memory-limit removed)
  Reply With Quote
Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Php 5 forum, Apache forum, Iis forum, Functions forum, Classes forum, Librarys forum, Bugs forum, Postgres forum, Mysql forum, Paradox forum, Ms sql forum, Configurations forum, Php.ini forum, Problems forum, Scripting forum, Css forum, General forums, Off-topic talk, Links, Extra forums, Php


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666