strings need slightly more effort as mentioned earlier all strings that will be associated with zends internal data structures need to be allocated using zends own memorymanagement functions referencing of static strings or strings allocated with standard routines is not allowed to assign strings you have to access the structure str in the zvalvalue container the corresponding type is is _ string 