Re: PHP 4.0 Bug #3757: bug in passing variables by reference in object functions

From: Date: Tue, 07 Mar 2000 15:47:08 +0000
Subject: Re: PHP 4.0 Bug #3757: bug in passing variables by reference in object functions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-16500@lists.php.net to get a copy of this message
<?php class object { function callme(&$arg) { echo $arg; } } $ob=new object; $ob->callme("novariable"); ?> The above test script crashes php 4.0b4pl1 too. Here's the BT I get : #0 0x80c0360 in execute (op_array=0x814b254) at ./zend_execute.c:1766 1766 varptr = *varptr_ptr; (gdb) bt #0 0x80c0360 in execute (op_array=0x814b254) at ./zend_execute.c:1766 #1 0x8078baf in php_execute_script (primary_file=0xbffffb04) at main.c:1131 #2 0x805a981 in main (argc=1, argv=0xbffffb64) at cgi_main.c:587 #3 0x401b5cb3 in __libc_start_main (main=0x805a4d0 <main>, argc=1, argv=0xbffffb64, init=0x80590a4 <_init>, fini=0x80c906c <_fini>, rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffb5c) at ../sysdeps/generic/libc-start.c:78 Flavien Lebarbé --- Open Care.

« previous php.dev (#16500) next »