PHP extension how to access constant attributes

Source: Internet
Author: User
Could you tell me how to access the constant attribute defined in zend_declare_class_constant_stringl in php extension? I cannot use zend_read_static_property or zend_read_property? Excuse me: it is used in php Extension Zend_declare_class_constant_stringlHow to access defined constant attributes? I use Zend_read_static_propertyAnd Zend_read_propertyNone?

Reply content:

Excuse me: it is used in php ExtensionZend_declare_class_constant_stringlHow to access defined constant attributes? I useZend_read_static_propertyAndZend_read_propertyNone?

ZEND_API int zend_get_constant (const char * name, uint name_len, zval * result TSRMLS_DC); ZEND_API int partition (const char * name, uint name_len, zval * result, zend_class_entry scope, ulong flags TSRMLS_DC );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.