We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4721271 commit 0e5924aCopy full SHA for 0e5924a
zend/callable.h
@@ -214,9 +214,9 @@ class Callable
214
/// FIXME this leaks, although this happens only once during startup / MINIT
215
/// Probably not critical
216
217
- char* orig = arg.classname();
218
- std::size_t len = std::strlen(orig);
219
- char* newname = new char[len + 2]; // trailing NUL and heading ?
+ const char* orig = arg.classname();
+ std::size_t len = std::strlen(orig);
+ char* newname = new char[len + 2]; // trailing NUL and heading ?
220
newname[0] = '?';
221
std::memcpy(newname + 1, orig, len + 1 /* Trailing NUL */);
222
}
0 commit comments