Skip to content

Do I always have to call timecop::return?  #53

Description

@glassmonkey

If I use timecop::freeze in a test, do I always have to call timecop::return? (e.g. call in tearDown).

If I run the test without timecop::return, I get a segmentation fault.

#0 0x00005645648f3384 in zend_call_method ()
#1 0x00007fb914ea0c8a in _timecop_datetime_constructor_ex.isra.7 () from /usr/lib64/php/modules/timecop.so
#2 0x00007fb924300dd5 in xdebug_execute_internal () from /usr/lib64/php/modules/xdebug.so
#3 0x00005645646ce7b4 in ZEND_DO_FCALL_SPEC_RETVAL_UNUSED_HANDLER ()
#4 0x000056456495f5a6 in execute_ex ()

(omitted below)
```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions