Git Product home page Git Product logo

php7-extension-explore's Issues

第一章的扩展生成出来正常 引用报错

大佬 你好
这是我的环境:
linux
php 7.3.29
配置文件 config.m4 因为你的目录和代码没有提供 所以我自己百度了一份最简单的配置config.m4

PHP_ARG_WITH(myext, for mytest support,
Make sure that the comment is aligned:
[  --with-myext             Include myext support])

if test "$PHP_myext" != "no"; then
    PHP_NEW_EXTENSION(myext, myext.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
fi

这个扩展是生成出来了 但是 php -m 后就这样
image

第5篇教程定义类扩展直接coredump

在php7.1.33 下,执行章节5的源码直接coredump, 用gdb 调试,提示#0 0x00007fd65a873241 in extension_startup (type=1, module_number=52) at myext.c:104104 myext_child_class_handle->ce_flags |= ZEND_ACC_FINAL; 有问题。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.