[PHP] php in free() error

2005-02-10 Thread Gerard Samuel
Im playing around with iterators, and Im getting this error -
php in free(): warning: chunk is already free
Im running php 5.0.3 on FreeBSD 5.3.
Any ideas what may be wrong?
Thanks
?php
$array = array(0 = array('world'));
class RecursiveArrayIterator extends ArrayIterator implements 
RecursiveIterator
{
   function hasChildren()
   {
   return (is_array($this-current()));
   }

   function getChildren()
   {
   return new self($this-current());
   }
}
$it = new RecursiveIteratorIterator(new RecursiveArrayIterator($array));
foreach($it as $key = $val)
{
   var_dump($key, $val);
}
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP 5 Free Hosting

2004-03-20 Thread David Costa
Hello!
We are offering totally free PHP 5 Hosting packages at 
http://dotgeek.org
There is no extra plan to buy or anything else.

This could be a very good opportunity for developers interested in 
testing their script and code
under PHP 5.

On our site you can see the phpinfo page and some further information.

Best Regards

David Costa 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP + MySQL Free Shopping Cart

2003-06-06 Thread Miranda, Joel Louie M
Hello,

Im trying to find a free php+mysql shopping cart, I have tried oscommerce
but coudlnt edit some of the scripts. 

Does anyone know an php script that is very customizable and has a lot
features too? And ofcourse its free.

Thanks,
Louie

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP + MySQL Free Shopping Cart

2003-06-06 Thread electroteque
of course u can edit the scripts u will not find one that u dont have to rip
the guts out of and customise

-Original Message-
From: Miranda, Joel Louie M [mailto:[EMAIL PROTECTED]
Sent: Friday, June 06, 2003 6:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP + MySQL Free Shopping Cart


Hello,

Im trying to find a free php+mysql shopping cart, I have tried oscommerce
but coudlnt edit some of the scripts.

Does anyone know an php script that is very customizable and has a lot
features too? And ofcourse its free.

Thanks,
Louie

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php in free()

2001-12-18 Thread Jan Maska

I'm not sure which way you create the connection, but I suppose that you use
FSockOpen..

This is a buggy function, as far as I know..
Zend promised to take care of it in the 4.0.4 release of PHP, but since that
nothing has changed, apparently.
I had the same problem some week ago. In the end I had to use PERL script
via PHP function exec().

And here's the bug:
After calling a socket, PHP interpreter simply keeps all data in memory,
doesn;t close connection, keeps trying to read, and finaly stucks.. which
can lead to an extreme overload on your server (tried it on Apache and IIS).



-- 
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]




Re: [PHP] php in free()

2001-12-18 Thread Andrey Hristov

This is because the reading from socket is blocked_read by default. So there is 
fuinction socket_set_blocking() and also
socket_set_timeout().
I had the same problem so as workaround set_time_limit(0) but the script works for 40 
!! seconds. My aim was to get some header so I
didn't read from the socket until feof($fp) but stopped somewhere before the end of 
data and close()-ing socket after that. After
this intervention the time which the scripts uses is 4!!! seconds.


Regards,
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS

- Original Message -
From: Jan Maska [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 11:07 AM
Subject: Re: [PHP] php in free()


 I'm not sure which way you create the connection, but I suppose that you use
 FSockOpen..

 This is a buggy function, as far as I know..
 Zend promised to take care of it in the 4.0.4 release of PHP, but since that
 nothing has changed, apparently.
 I had the same problem some week ago. In the end I had to use PERL script
 via PHP function exec().

 And here's the bug:
 After calling a socket, PHP interpreter simply keeps all data in memory,
 doesn;t close connection, keeps trying to read, and finaly stucks.. which
 can lead to an extreme overload on your server (tried it on Apache and IIS).



 --
 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]




-- 
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]




[PHP] php in free()

2001-12-17 Thread Rick

I'm running a script that times out durring a certian action.

Fatal error: Maximum execution time of 30 seconds exceeded in
/usr/local/web/htdocs/mail/functions.php on line 1200

The error logs say: php in free(): warning: recursive call.

The offending lines of code, and here's what really gets me, is a simple
while():

while(!feof($socket)){
 $data .= fgets($socket, 1024);
}

Which is just reading data from an SMTP socket. I haven't been able to find
any information about this php in free() error. Any ideas?

Thanks!

dan



-- 
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]




RE: [PHP] php in free()

2001-12-17 Thread Niklas Lampén

Your code runs more than 30 seconds.
Try using set_time_limit(n) function.


Niklas


-Original Message-
From: Rick [mailto:[EMAIL PROTECTED]] 
Sent: 18. joulukuuta 2001 2:46
To: [EMAIL PROTECTED]
Subject: [PHP] php in free()


I'm running a script that times out durring a certian action.

Fatal error: Maximum execution time of 30 seconds exceeded in
/usr/local/web/htdocs/mail/functions.php on line 1200

The error logs say: php in free(): warning: recursive call.

The offending lines of code, and here's what really gets me, is a simple
while():

while(!feof($socket)){
 $data .= fgets($socket, 1024);
}

Which is just reading data from an SMTP socket. I haven't been able to
find any information about this php in free() error. Any ideas?

Thanks!

dan



-- 
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]


-- 
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]