Skip to content

Commit

Permalink
zend_string constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Dec 30, 2019
1 parent 2d0f59b commit 1527def
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/phpx.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ class Variant
destroy();
ZVAL_STRINGL(ptr(), str.c_str(), str.length());
}
void operator =(zend_string *str)
{
destroy();
ZVAL_STR(ptr(), str);
}
void operator =(const char *str)
{
destroy();
Expand Down

0 comments on commit 1527def

Please sign in to comment.