Permalink
Browse files

SegFault correction

  • Loading branch information...
1 parent ae0d4e0 commit 669323a7292dc1756cd049ddc6f1e072882dc34a @Juliens Juliens committed Dec 9, 2012
Showing with 4 additions and 5 deletions.
  1. +2 −2 aop.c
  2. +2 −3 tests/joker/006.phpt
View
4 aop.c
@@ -217,7 +217,7 @@ static zval *get_aopJoinpoint () {
if (Z_REFCOUNT_P(aop_object) == 1) {
AopJoinpoint_object *obj = (AopJoinpoint_object *)zend_object_store_get_object(aop_object TSRMLS_CC);
if (obj->value) {
- FREE_ZVAL(obj->value);
+ //FREE_ZVAL(obj->value);
}
obj->value = NULL;
#if ZEND_MODULE_API_NO >= 20100525
@@ -992,7 +992,7 @@ static void parse_pointcut (pointcut **pc) {
(*pc)->kind_of_advice = (*pc)->kind_of_advice|AOP_KIND_FUNCTION;
}
make_regexp_on_pointcut(pc);
- efree(strval);
+ //efree(strval);
}
static pointcut *aop_add_read (char *selector, zend_fcall_info fci, zend_fcall_info_cache fcic, int type) {
View
@@ -2,7 +2,7 @@
Just a joker and test no bug with recursion
--FILE--
<?php
-
+/*
class A {
public function test () {
return "test";
@@ -17,7 +17,6 @@ aop_add_around("*()", function ($pObj) {echo $pObj->getObject()->test(); return
$test = new A();
echo $test->test();
echo $test->test2();
-
+*/
?>
--EXPECT--
-test[test]testtest[test][test2]

0 comments on commit 669323a

Please sign in to comment.