Skip to content

Create property ZAI seam for PHP 8#1246

Merged
bwoebi merged 2 commits intomasterfrom
bob/zai/properties
May 28, 2021
Merged

Create property ZAI seam for PHP 8#1246
bwoebi merged 2 commits intomasterfrom
bob/zai/properties

Conversation

@bwoebi
Copy link
Copy Markdown
Collaborator

@bwoebi bwoebi commented May 27, 2021

Description

A simple function allowing direct access into userland (and internal classes without very special property storage) properties, bypassing __get() and similar.

Readiness checklist

  • (only for Members) Changelog has been added to the release document.
  • Tests added for this feature/bug.

Reviewer checklist

  • Appropriate labels assigned.
  • Milestone is set.
  • Changelog has been added to the release document. For community contributors the reviewer is in charge of this task.

@bwoebi bwoebi requested a review from SammyK May 27, 2021 11:53
@bwoebi bwoebi force-pushed the bob/zai/properties branch 2 times, most recently from 75e8635 to 3b08f8f Compare May 27, 2021 12:39
Comment thread zend_abstract_interface/properties/tests/php7-8/properties.cc Outdated
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>)

target_compile_features(zai_properties PUBLIC c_std_99)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was expecting this to be either INTERFACE c_std_99 PRIVATE c_std_11 or PUBLIC c_std_11 -- any specific reason for choosing C99?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just copy paste from the other CMakeLists. Doesn't really matter as long as it compiles?

Comment thread zend_abstract_interface/properties/php7-8/properties.c Outdated
Comment thread package.xml
Comment thread zend_abstract_interface/properties/CMakeLists.txt Outdated
Comment thread zend_abstract_interface/properties/tests/php7-8/properties.cc
Comment thread zend_abstract_interface/properties/tests/php7-8/properties.cc Outdated
Comment thread zend_abstract_interface/properties/tests/php7-8/properties.cc Outdated
Comment thread zend_abstract_interface/properties/tests/php7-8/properties.cc
@SammyK SammyK added this to the 0.61.0 milestone May 27, 2021
@SammyK SammyK added the 🏆 enhancement A new feature or improvement label May 27, 2021
@SammyK SammyK changed the title Create property zai seam for PHP 7&8 Create property ZAI seam for PHP 8 May 27, 2021
@bwoebi bwoebi force-pushed the bob/zai/properties branch 2 times, most recently from 72e4512 to 12efb38 Compare May 28, 2021 10:00
@bwoebi bwoebi force-pushed the bob/zai/properties branch from 12efb38 to 119565a Compare May 28, 2021 10:07
Comment thread zend_abstract_interface/properties/php7-8/properties.h Outdated
Copy link
Copy Markdown
Contributor

@SammyK SammyK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @bwoebi! LGTM 👍

@bwoebi bwoebi merged commit 0e3fd33 into master May 28, 2021
@bwoebi bwoebi deleted the bob/zai/properties branch May 28, 2021 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏆 enhancement A new feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants