|
1 | 1 | /* This is a generated file, edit the .stub.php file instead. |
2 | | - * Stub hash: 3f4694d4e1f3d1647a832acd8539b056b2ab5e7a */ |
| 2 | + * Stub hash: 0964c9bfee903e59b63e5a16bd8b6611d827b151 */ |
3 | 3 |
|
4 | 4 | ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Memcached___construct, 0, 0, 0) |
5 | 5 | ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, persistent_id, IS_STRING, 1, "null") |
@@ -406,12 +406,39 @@ static const zend_function_entry class_Memcached_methods[] = { |
406 | 406 | }; |
407 | 407 |
|
408 | 408 |
|
409 | | -static const zend_function_entry class_MemcachedServer_methods[] = { |
410 | 409 | #if defined(HAVE_MEMCACHED_PROTOCOL) |
| 410 | +static const zend_function_entry class_MemcachedServer_methods[] = { |
411 | 411 | ZEND_ME(MemcachedServer, run, arginfo_class_MemcachedServer_run, ZEND_ACC_PUBLIC) |
412 | | -#endif |
413 | | -#if defined(HAVE_MEMCACHED_PROTOCOL) |
414 | 412 | ZEND_ME(MemcachedServer, on, arginfo_class_MemcachedServer_on, ZEND_ACC_PUBLIC) |
415 | | -#endif |
416 | 413 | ZEND_FE_END |
417 | 414 | }; |
| 415 | +#endif |
| 416 | + |
| 417 | +static zend_class_entry *register_class_Memcached(void) |
| 418 | +{ |
| 419 | + zend_class_entry ce, *class_entry; |
| 420 | + |
| 421 | + INIT_CLASS_ENTRY(ce, "Memcached", class_Memcached_methods); |
| 422 | + class_entry = zend_register_internal_class_ex(&ce, NULL); |
| 423 | +#if (PHP_VERSION_ID >= 80200) |
| 424 | + |
| 425 | +#if defined(HAVE_MEMCACHED_SASL) |
| 426 | + |
| 427 | + zend_add_parameter_attribute(zend_hash_str_find_ptr(&class_entry->function_table, "setsaslauthdata", sizeof("setsaslauthdata") - 1), 1, ZSTR_KNOWN(ZEND_STR_SENSITIVEPARAMETER), 0); |
| 428 | +#endif |
| 429 | +#endif |
| 430 | + |
| 431 | + return class_entry; |
| 432 | +} |
| 433 | + |
| 434 | +#if defined(HAVE_MEMCACHED_PROTOCOL) |
| 435 | +static zend_class_entry *register_class_MemcachedServer(void) |
| 436 | +{ |
| 437 | + zend_class_entry ce, *class_entry; |
| 438 | + |
| 439 | + INIT_CLASS_ENTRY(ce, "MemcachedServer", class_MemcachedServer_methods); |
| 440 | + class_entry = zend_register_internal_class_ex(&ce, NULL); |
| 441 | + |
| 442 | + return class_entry; |
| 443 | +} |
| 444 | +#endif |
0 commit comments