Changeset 6303 for src/perl5

Show
Ignore:
Timestamp:
08/17/05 17:47:04 (3 years ago)
Author:
autrijus
svk:copy_cache_prev:
8581
Message:

* Very obscure Perl5 bug reported by kolibrie:

$dbh.prepare

If $dbh.can('prepare') is true, this method call would pass through
iff the last bit of CODE pointer location is 1.

It's caused by rounding a POPi into a bool. ;)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/perl5/perl5.c

    r4262 r6303  
    441441    SPAGAIN; 
    442442 
    443     rv = POPi; 
     443    rv = (POPi != 0); 
    444444    /* printf("Checking: %s->can(%s), ret %d\n", SvPV_nolen(inv), subname, rv); */ 
    445445