[php-maint] Bug#463255: Bug#463255: php5: Reflection object fails to recognise runtime class properties as public
Raphael Geissert
atomo64 at gmail.com
Thu Jan 31 16:45:25 UTC 2008
On Wednesday 30 January 2008, Raphael Geissert wrote:
> Running 5.2.0-8+etch10
> Dumping object:
> object(Test)#1 (2) {
> ["myDeclaredProperty"]=>
> int(1)
> ["myRuntimeProperty"]=>
> int(2)
> }
> Dumping public properties according to Reflection object
> Segmentation fault
>
> That looks even worst.
>
> I'll try to provide a backtrace as soon as I recompile php5 with the
> debug symbols.
(gdb) run /tmp/foo
Starting program: /usr/bin/php5 /tmp/foo
Running 5.2.0-8+etch10
Dumping object:
object(Test)#1 (2) {
["myDeclaredProperty"]=>
int(1)
["myRuntimeProperty"]=>
int(2)
}
Dumping public properties according to Reflection object
Program received signal SIGSEGV, Segmentation fault.
0x08157308 in _property_check_flag (ht=0, return_value=0xb7684a4c,
return_value_ptr=0x8524c80,
this_ptr=0xb7684800, return_value_used=1, mask=256)
at /tmp/buildd/php5-5.2.0/ext/reflection/php_reflection.c:3846
3846 /tmp/buildd/php5-5.2.0/ext/reflection/php_reflection.c: No such file
or directory.
in /tmp/buildd/php5-5.2.0/ext/reflection/php_reflection.c
(gdb) bt
#0 0x08157308 in _property_check_flag (ht=0, return_value=0xb7684a4c,
return_value_ptr=0x8524c80,
this_ptr=0xb7684800, return_value_used=1, mask=256)
at /tmp/buildd/php5-5.2.0/ext/reflection/php_reflection.c:3846
#1 0x082cfeef in zend_do_fcall_common_helper_SPEC (execute_data=0xbfaba01c)
at /tmp/buildd/php5-5.2.0/Zend/zend_vm_execute.h:200
#2 0x082bf8e8 in execute (op_array=0xb7683d14)
at /tmp/buildd/php5-5.2.0/Zend/zend_vm_execute.h:92
#3 0x082cf8d1 in zend_do_fcall_common_helper_SPEC (execute_data=0xbfaba26c)
at /tmp/buildd/php5-5.2.0/Zend/zend_vm_execute.h:234
#4 0x082bf8e8 in execute (op_array=0xb76823d8)
at /tmp/buildd/php5-5.2.0/Zend/zend_vm_execute.h:92
#5 0x082a0abc in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /tmp/buildd/php5-5.2.0/Zend/zend.c:1097
#6 0x0825bd82 in php_execute_script (primary_file=0xbfabc6a0)
at /tmp/buildd/php5-5.2.0/main/main.c:1758
#7 0x0832fc5e in main (argc=2, argv=0xbfabc774)
at /tmp/buildd/php5-5.2.0/sapi/cli/php_cli.c:1108
php_reflection.c:3846 is:
3846 RETURN_BOOL(ref->prop->flags & mask);
Cheers,
--
Atomo64 - Raphael
Please avoid sending me Word, PowerPoint or Excel attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
More information about the pkg-php-maint
mailing list