[PHP] Add missing directorin typemap for const std::string &.
Fixes SF#3006404 reported by t-Legiaw. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
08cdb5a7ee
commit
9207a2fe37
2 changed files with 8 additions and 0 deletions
|
|
@ -53,6 +53,10 @@ namespace std {
|
|||
ZVAL_STRINGL($result, const_cast<char*>($1->data()), $1->size(), 1);
|
||||
%}
|
||||
|
||||
%typemap(directorin) const string & %{
|
||||
ZVAL_STRINGL($input, const_cast<char*>($1_name.data()), $1_name.size(), 1);
|
||||
%}
|
||||
|
||||
%typemap(throws) string %{
|
||||
SWIG_PHP_Error(E_ERROR, (char *)$1.c_str());
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue