]> granicus.if.org Git - php/commitdiff
- Complete change to create_function()
authorAndi Gutmans <andi@php.net>
Mon, 5 Jun 2000 06:52:02 +0000 (06:52 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 5 Jun 2000 06:52:02 +0000 (06:52 +0000)
Zend/zend_builtin_functions.c

index 8a7eb2ef9ee0f88287c84c373bb043666bfe19b9..42e15bfce239154dacf6d54482c43a0337a7d1ac 100644 (file)
@@ -804,7 +804,7 @@ ZEND_FUNCTION(get_declared_classes)
 
 #define LAMBDA_TEMP_FUNCNAME   "__lambda_func"
 
-/* {{{ proto string lambda(string args, string code)
+/* {{{ proto string create_function(string args, string code)
    Creates an anonymous function, and returns its name (funny, eh?) */
 ZEND_FUNCTION(create_function)
 {
@@ -836,7 +836,7 @@ ZEND_FUNCTION(create_function)
                zend_function *func;
 
                if (zend_hash_find(EG(function_table), LAMBDA_TEMP_FUNCNAME, sizeof(LAMBDA_TEMP_FUNCNAME), (void **) &func)==FAILURE) {
-                       zend_error(E_ERROR, "Unexpected inconsistency in lambda()");
+                       zend_error(E_ERROR, "Unexpected inconsistency in create_function()");
                        RETURN_FALSE;
                }
                function_add_ref(func);
@@ -853,4 +853,4 @@ ZEND_FUNCTION(create_function)
                RETURN_FALSE;
        }
 }
-/* }}} */
\ No newline at end of file
+/* }}} */