[PHP] Re: Dom PDF Problem
This might help some people struggling with memory leak problems in DOMPDF. I haven't fixed it but it seems to have reduced the memory leak considerably. I have done 2 things: 1. Added a detruct function to the DOMPDF file in dompdf.cls.php where I unset everything. I call this each time in my loop when I'm using DOMPDF mulitple times: function __destruct() { unset($this->_messages); unset($this->_xml); unset($this->_tree); unset($this->_css); unset($this->_pdf); unset($this->_paper_size); unset($this->_paper_orientation); unset($this->_base_host); unset($this->_base_path); unset($this->_cache_id); } 2. I now added within the render function of DOMPDF a call to the function dispose to clean up anything left from before: // This is where the magic happens: $root->reflow(); // Memory leak fix $root->dispose(true); // Clean up cached images Image_Cache::clear(); Also worth mentioning that I increased my memory allocation in my php.ini to about 256MB, and the max execution time to about 120 seconds. As mentioned this won't fix the problem but it does reduce the memory used. Chris No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.416 / Virus Database: 270.13.112/2388 - Release Date: 09/23/09 05:52:00 No virus found in this outgoing message. Checked by AVG - www.avg.com Version: 8.5.416 / Virus Database: 270.13.112/2390 - Release Date: 09/23/09 05:52:00 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-INSTALL] Re: Apache+modssl+php problem??? possible IE bug?
I found several sources of information regarding a IE bug that does'nt pass all the post data, however this is roughly 1/4 times that it does it. Its actually become a serious problem for people to navigate through my webmail :/ Chris > I mean, I sometime found a few POST data had incorrectly went over to the > GET data. I don't know it's a PHP problem but more of a web browser > problem. > > Scott F. > "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Try the $_REQUEST variable, this is where both the $_GET and $_POST come >> from and let us know how it goes... >> >> Scott F. >> >> "Chris Wilson" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > When in IE, submitting any form on our https page, the post variables >> > intermittantly don't come through. >> > >> > The get variables come through fine. Just not the $_POST variables. >> > >> > I have tried everything to get this to work. Everything was working >> fine >> > but it seems after we updated IE with the last critical updates this >> > started to become an issue. >> > >> > >> > We have rebuilt servers, and installed apache+modssl+php from > /usr/ports, >> > as well as manually and have been unable to resolv this issue. >> > >> > We are using a generic installation of apache+modssl+php with the > included >> > php.ini, only modifications being Register_globals on and safe_mode >> off >> > >> > We have also tried backing down to an earlier version of php and >> apache >> > (php 4.3.1, modssl 2.8.15 and apache 1.3.28, which we were running > before >> > the rebuild) >> > >> > >> > Netscape seems to work fine. Once again, this only seems to be >> happening >> > on secure pages. >> > >> > >> > We have tried on multiple workstations, and our customers seem to be >> > effected by this too. >> > >> > >> > Does anyone know what this might be? possibly an IE bug? >> > >> > Any help would be apreciated. >> > >> > Thanks! :) >> > >> > >> > Chris Wilson > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache+modssl+php problem??? possible IE bug?
When in IE, submitting any form on our https page, the post variables intermittantly don't come through. The get variables come through fine. Just not the $_POST variables. I have tried everything to get this to work. Everything was working fine but it seems after we updated IE with the last critical updates this started to become an issue. We have rebuilt servers, and installed apache+modssl+php from /usr/ports, as well as manually and have been unable to resolv this issue. We are using a generic installation of apache+modssl+php with the included php.ini, only modifications being Register_globals on and safe_mode off We have also tried backing down to an earlier version of php and apache (php 4.3.1, modssl 2.8.15 and apache 1.3.28, which we were running before the rebuild) Netscape seems to work fine. Once again, this only seems to be happening on secure pages. We have tried on multiple workstations, and our customers seem to be effected by this too. Does anyone know what this might be? possibly an IE bug? Any help would be apreciated. Thanks! :) Chris Wilson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Embedding PHP in C
Hello Everyone I'm doing a project for which I want to have a C/C++ act as a process proxy for which can pass information and retrieve information from a called PHP script. I think that can be done in perl however perl I don't take is the best langauge. I've fell in love with PHP and would love use it and avoid have to call PHP from the commandline and parsing the outputs. Any suggestion on if this can be done or any other langauge that do the trick besides PERL.. Thanks Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]