Skip to content

NamerPhp#7491

Closed
CasperN wants to merge 3 commits intogoogle:masterfrom
CasperN:namer-php
Closed

NamerPhp#7491
CasperN wants to merge 3 commits intogoogle:masterfrom
CasperN:namer-php

Conversation

@CasperN
Copy link
Collaborator

@CasperN CasperN commented Aug 30, 2022

@github-actions github-actions bot added c++ codegen Involving generating code from schema php labels Aug 30, 2022
Copy link

@Yosym12 Yosym12 left a comment

Choose a reason for hiding this comment

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

@razvanalex
Copy link
Contributor

@dbaileychess I see this PR closed and I'm not sure if it is still relevant. If yes, I would like to continue this work in a new PR. Right now, I am facing some conflicts when using generated php files, with reserved php keywords.

Also, I would want to bring into php prefixed size buffers, clear method, create bytes vector, and possibly improve string serialisation speed using substr_replace instead of the current for-loop (at the cost of higher memory usage and garbage collection pressure when performing many serialisations). I guess, the later one needs to be decided.

Thanks!

razvanalex added a commit to razvanalex/flatbuffers that referenced this pull request Dec 22, 2023
Some languages use the IDL interface to generate the method/varible/etc
names. This commit adds the IDL namer to php, basically continuing the
workf from PR google#7491.

Now, each method uses namer_.Method, while the legacy stuff is kept for
backwards compatibility. At the moment, PHP is the only language that
uses the case sensitive check when generating the names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ codegen Involving generating code from schema php

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants