-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hello + multibyte encoding support #26
Comments
Hey. Then in this project: https://github.com/rossriley/scalar_objects I've started to work on the implementation as a native C extension, where there are new native classes for each of the scalar types, eg SplScalarString, SplScalarArray etc.. These handle the methods and forward them on to the appropriate native php function. I'm not working on this project right now, seems more sensible to wait until phpng is merged into master and base it off that but at some point I'll get an RFC together to try and get it into PHP7. With regard to multibyte, yes definitely the plan is that all these native methods will be multi-byte aware, eg:
|
Thanks for the clarification. I like the api you're proposing, but I kind of doubt this will be accepted into the PHP distribution. :( Even though it is backwards compatible, it is a huge break from php's idioms. A requirement of >=PHP7 is unfortunate as well... Anyway, I do like what you're doing and look forward to using this! Best of luck! That's cool about the multibyte support. With PHP7 being a prerequisite, I assume strings will be utf-8 by default? What might the api look like if I have a string in a different encoding? |
No worries, It should be worth a go, whilst I think there's quite a few internals guys who wouldn't accept it I don't think it's a complete non-starter and it is based on the initial work done by Nikita who is a major contributor. So we'll see. The string API will be chainable so the technique I'd suggest would be something like this...
Or something similar to that. |
Hi,
I was introduced to your project via a discussion on reddit.
I am wondering if you are still working on this, since there hasn't been much activity lately. If so, is multibyte encoding something you will support for strings?
thanks,
The text was updated successfully, but these errors were encountered: