Lines Matching refs:argc
455 zval *arr, *argc, *tmp; in php_build_argv() local
459 if (!(SG(request_info).argc || track_vars_array)) { in php_build_argv()
467 if (SG(request_info).argc) { /* are we in cli sapi? */ in php_build_argv()
469 for (i = 0; i < SG(request_info).argc; i++) { in php_build_argv()
510 ALLOC_INIT_ZVAL(argc); in php_build_argv()
511 if (SG(request_info).argc) { in php_build_argv()
512 Z_LVAL_P(argc) = SG(request_info).argc; in php_build_argv()
514 Z_LVAL_P(argc) = count; in php_build_argv()
516 Z_TYPE_P(argc) = IS_LONG; in php_build_argv()
518 if (SG(request_info).argc) { in php_build_argv()
520 Z_ADDREF_P(argc); in php_build_argv()
522 zend_hash_update(&EG(symbol_table), "argc", sizeof("argc"), &argc, sizeof(zval *), NULL); in php_build_argv()
526 Z_ADDREF_P(argc); in php_build_argv()
528 …zend_hash_update(Z_ARRVAL_P(track_vars_array), "argc", sizeof("argc"), &argc, sizeof(zval *), NULL… in php_build_argv()
531 zval_ptr_dtor(&argc); in php_build_argv()
748 if (SG(request_info).argc) { in php_auto_globals_create_server()
749 zval **argc, **argv; in php_auto_globals_create_server() local
751 if (zend_hash_find(&EG(symbol_table), "argc", sizeof("argc"), (void**)&argc) == SUCCESS && in php_auto_globals_create_server()
753 Z_ADDREF_PP(argc); in php_auto_globals_create_server()
756 …zend_hash_update(Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]), "argc", sizeof("argc"), argc, si… in php_auto_globals_create_server()