Skip to content

Commit 1527def

Browse files
committed
zend_string constructor
1 parent 2d0f59b commit 1527def

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/phpx.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ class Variant
176176
destroy();
177177
ZVAL_STRINGL(ptr(), str.c_str(), str.length());
178178
}
179+
void operator =(zend_string *str)
180+
{
181+
destroy();
182+
ZVAL_STR(ptr(), str);
183+
}
179184
void operator =(const char *str)
180185
{
181186
destroy();

0 commit comments

Comments
 (0)