Re: [PHP] php5 - possible bug discovered

2007-10-09 Thread David Restall - System Administrator
Hi Robert, Stut List Thanks for your replies which arrived after I had gone to bed |-Z Robert :- In PHP5 objects are no longer copied when assigned. Instead the object's handle is assigned (similar to a reference but not quite). So the behaviour is as expected. Stut :- I think I have

[PHP] php5 - possible bug discovered

2007-10-08 Thread David Restall - System Administrator
Hi, I think I have discovered a bug in php5. If I haven't, I've discovered a bug in the documentation or a bug in my brain. php -v :- PHP 5.2.3 (cli) (built: Jun 26 2007 15:38:48) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies I've

Re: [PHP] Includes eating up my time

2007-07-31 Thread David Restall - System Administrator
Hi Dave, PHP general list, This is probably obvious to people who are good at PHP, but I'm I have a PHP based CMS (content management system) built, which has grown and become quite robust. It's now spread out over about 30 files, and each file represents one class within the object

Re: [PHP] Getting WAY OT now Re: PHP Brain Teasers

2007-07-06 Thread David Restall - System Administrator
Hi, Tedd Wrote :- At 11:00 PM -0400 7/5/07, Robert Cummings wrote: On Thu, 2007-07-05 at 22:44 -0400, tedd wrote: At 4:48 PM -0400 7/5/07, Daniel Brown wrote: On 7/5/07, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-07-05 at 15:04 -0500, Kaleb Pomeroy wrote: Which came

[PHP] Re: PHP Brain Teasers

2007-07-03 Thread David Restall - System Administrator
Hi, there are two in this one :- function Cat($Danger = ) { static int $Lives = 9; if (preg_match(/^curiosity$/i, $Danger)) die(Cat Killed); $Threats = array(dog, flu, fall, drowning); if (in_array(strtolower($Danger), $Threats))

[PHP] Re: PHP Brain Teasers

2007-06-27 Thread David Restall - System Administrator
Hi, Colin Guthrie wrote: Daniel Brown wrote: What the hell? Why not start a thread that can be fun and challenging for all of us. It's something I haven't seen done Here's another quickie: Dead simple one! ?php function x($x) { switch ($x) { case 1:

[PHP] R: Re: [PHP] Which PHP-script crashes my server?

2006-12-19 Thread David Restall - System Administrator
Hi Phil, Linux, of course. :-) It is a Gentoo server with Confixx Pro on it. The PHP safe mode is disabled for some accounts, so it is clear that problems like this happen. But I can not enable it because of several scripts. Thats all I know. I dit not setup the server. If you need some