Skip to content

Cleanup useless function declaration for traits - #81

Merged
php-pulls merged 1 commit into
php:PHP-5.4from
reeze:remove-useless-func-decleare
May 11, 2012
Merged

php-pulls merged 1 commit into
php:PHP-5.4from
reeze:remove-useless-func-decleare

Conversation

@reeze

@reeze reeze commented May 11, 2012

Copy link
Copy Markdown
Contributor

I'v noticed that those three function declearation was unused.

@smarr 's original patch http://www.stefan-marr.de/traits/traits.patch didn't use them either.

so I made a patch to remove them.

void init_trait_alias_list(znode* result, const znode* trait_alias TSRMLS_DC);
void add_trait_alias(znode* result, const znode* trait_alias TSRMLS_DC);
void init_trait_alias(znode* result, const znode* method_name, const znode* alias, const znode* modifiers TSRMLS_DC);

Those function's are replaced by the zend_init_list() && zend_add_to_list();

Thanks.

@php-pulls
php-pulls merged commit 0cb4849 into php:PHP-5.4 May 11, 2012
@laruence

Copy link
Copy Markdown
Member

merged, but I can not see this PR in control panel where I could close this, could you please colse this PR yourself?
thanks

@laruence

Copy link
Copy Markdown
Member

oh,,, seems the git-pull do it automatically. ignore me....

@reeze

reeze commented May 11, 2012

Copy link
Copy Markdown
Contributor Author

thanks :)

Reeze
Sent with sparrow

On 2012年5月11日Friday at 20:31, Xinchen Hui wrote:

oh,,, seems the git-pull do it automatically. ignore me....


Reply to this email directly or view it on GitHub:
#81 (comment)

heyJordanParker referenced this pull request in heyJordanParker/php-sharp Oct 9, 2026
Problem:
The engine was pinned to Mago e424429d4, a master commit between
releases. mago-sharp 0.2.0 is now released at 98d123849, and it
carries #81, which rewords the checker's PHP# messages: a nullable
ordering operand is named NullableOperand, paradox reports name
variables and types the way PHP# writes them, and notes state their
reason instead of citing spec sections. A php-sharp release has to
name the checker release its .sharpc files come from.

Solution:
- sharp_unit.h is the header Mago 98d123849 generates. Only
  SHARP_MAGO_COMMIT moves. sharp_kind, the SHARP_T_ tokens and
  SHARP_UNIT_ABI stay the same, so the engine reads the same .sharpc
  layout and every compiled file stays current.
- No php-sharp test expects a text #81 moved: compile_command.phpt
  passes unchanged, and no test, doc or spec line names a spec section
  or the old wordings.

ext/sharp/
└── sharp_unit.h   <- SHARP_MAGO_COMMIT 98d123849b6d27a836c1d4f64d4515d2f1e8f78f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants