Re: [PHP-DEV] segfault with ze2/php5-cvs

2003-03-21 Thread Sterling Hughes
On Fri, 2003-03-21 at 15:12, Joey Smith wrote:
> Very nice.
> 
> What about:
> 
>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'?
> 
> 

I get a segfault with that as well, same error. execute_data is
corrupted.

-Sterling

> On Fri, Mar 21, 2003 at 02:47:06PM -0500, Sterling Hughes wrote:
> >  > 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 
> > To unsubscribe, visit: http://www.php.net/unsub.php
-- 
"The three most dangerous things in the world are a programmer  
 with a soldering iron, a hardware type with a program patch and  
 a user with an idea." 
- Unknown


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



Re: [PHP-DEV] segfault with ze2/php5-cvs

2003-03-21 Thread Joey Smith
Very nice.

What about:

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:
>  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 
> To unsubscribe, visit: http://www.php.net/unsub.php

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



[PHP-DEV] segfault with ze2/php5-cvs

2003-03-21 Thread Sterling Hughes
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 
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DEV] Segfault with ZE2

2003-02-03 Thread John Coggeshall

I'll file a bug report on this, but I wasn't sure if it would get
noticed and figured those involved might be interested... As of the CVS
from last Monday (as well as head) ZE2 is segfaulting... Here's the bt..

#0  0x081114b4 in zend_register_functions (scope=0x0,
functions=0x4001a260,
function_table=0x0, type=1) at
/home/php/php4-ze2/Zend/zend_API.c:1099
#1  0x08111704 in zend_register_module (module=0x400237a0)
at /home/php/php4-ze2/Zend/zend_API.c:1172
#2  0x080941a5 in php_dl (file=0x8183ee8, type=1,
return_value=0xb860)
at /home/php/php4-ze2/ext/standard/dl.c:242
#3  0x080ee128 in php_load_function_extension_cb (arg=0x8183ee8)
at /home/php/php4-ze2/main/php_ini.c:247
#4  0x08108a35 in zend_llist_apply (l=0x8175c3c,
func=0x80ee114 )
at /home/php/php4-ze2/Zend/zend_llist.c:190
#5  0x080ee5aa in php_ini_delayed_modules_startup ()
at /home/php/php4-ze2/main/php_ini.c:499
#6  0x080eb0bc in php_module_startup (sf=0x8174ac0,
additional_modules=0x0,
num_additional_modules=0) at /home/php/php4-ze2/main/main.c:1284
#7  0x08132530 in main (argc=1, argv=0xbaf4)
at /home/php/php4-ze2/sapi/cli/php_cli.c:480
#8  0x400c8306 in __libc_start_main (main=0x8132420 , argc=1,
ubp_av=0xbaf4, init=0x8063128 <_init>, fini=0x8133140 <_fini>,
rtld_fini=0x4000d2dc <_dl_fini>, stack_end=0xbaec)
at ../sysdeps/generic/libc-start.c:129

John


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