Development

Changeset 29308

You must first sign up to be able to contribute.

Changeset 29308

Show
Ignore:
Timestamp:
04/29/10 09:24:51 (3 years ago)
Author:
bschussek
Message:

[lime] fixed segmentation fault when using cmp_ok() (closes #8563)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/lime/trunk/lib/lime.php

    r29057 r29308  
    292292  public function cmp_ok($exp1, $op, $exp2, $message = '') 
    293293  { 
    294     eval(sprintf("\$result = \$exp1 $op \$exp2;")); 
     294    $php = sprintf("\$result = \$exp1 $op \$exp2;"); 
     295    // under some unknown conditions the sprintf() call causes a segmentation fault 
     296    // when placed directly in the eval() call 
     297    eval($php); 
     298     
    295299    if (!$this->ok($result, $message)) 
    296300    {