Home  |  Linux  | Mysql  | PHP  | XML
From:Joey Smith Date:Fri Mar 21 13:12:43 2003
Subject:Re: segfault with ze2/php5-cvs
Very nice.

What about:

<?php
	class person {
		var $name;
	}

	$start = new person;
	$start->name = 'Eve';
	$new = $start->__clone();
?>

Does it come back with 'Call to a member function on a non-object'?


On Fri, Mar 21, 2003 at 02:47:06PM -0500, Sterling Hughes wrote:
> <?php
> class sheep {
>     var $name;
> }
> 
> $start = new sheep;
> $start->name = "Dolly";
> $new = $start->__clone();
> $new->name = "Molly";
> var_dump($start);
> ?>
> 
> BOOM!
> 
> -Sterling
> -- 
> Good judgement comes from experience, and experience comes from 
> bad judgement. 
>     - Fred Brooks
> 
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
Navigate in group php.dev at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants