Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3bd96e0

Browse filesBrowse files
committed
Use internd string as key
1 parent f579ae8 commit 3bd96e0
Copy full SHA for 3bd96e0

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎Zend/zend_compile.c

Copy file name to clipboardExpand all lines: Zend/zend_compile.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,9 +1292,9 @@ int zend_register_auto_global(zend_string *name, zend_bool jit, zend_auto_global
12921292
auto_global.auto_global_callback = auto_global_callback;
12931293
auto_global.jit = jit;
12941294

1295-
retval = zend_hash_add_mem(CG(auto_globals), name, &auto_global, sizeof(zend_auto_global)) != NULL ? SUCCESS : FAILURE;
1295+
retval = zend_hash_add_mem(CG(auto_globals), auto_global.name, &auto_global, sizeof(zend_auto_global)) != NULL ? SUCCESS : FAILURE;
12961296

1297-
zend_string_release(auto_global.name);
1297+
zend_string_release(name);
12981298
return retval;
12991299
}
13001300
/* }}} */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.