- very nice and short reproducing script.
<?php
$array = array('foo', 'bar');
uasort($array, 'cmp');
function cmp($a, $b)
{
return (strcmp($a[1], $b[1]));
}
?>
EG(namespace) = calling_namespace;
current_this = EG(this);
- EG(this) = *object_pp;
- if (EG(this)) {
+ if (object_pp) {
+ EG(this) = *object_pp;
+
if (!PZVAL_IS_REF(EG(this))) {
EG(this)->refcount++; /* For $this pointer */
} else {
zval_copy_ctor(this_ptr);
EG(this) = this_ptr;
}
+ } else {
+ EG(this) = NULL;
}