summaryrefslogtreecommitdiff
path: root/ext/oci8
diff options
context:
space:
mode:
Diffstat (limited to 'ext/oci8')
-rw-r--r--ext/oci8/oci8.stub.php12
-rw-r--r--ext/oci8/oci8_arginfo.h12
-rw-r--r--ext/oci8/oci8_interface.c4
3 files changed, 11 insertions, 17 deletions
diff --git a/ext/oci8/oci8.stub.php b/ext/oci8/oci8.stub.php
index 7ac20cf414..ee8ea98b54 100644
--- a/ext/oci8/oci8.stub.php
+++ b/ext/oci8/oci8.stub.php
@@ -604,7 +604,7 @@ class OCILob {
* @alias oci_lob_write
* @return int|false
*/
- public function write(string $string, ?int $length = null) {}
+ public function write(string $data, ?int $length = null) {}
/**
* @alias oci_lob_append
@@ -654,16 +654,10 @@ class OCILob {
*/
public function export(string $filename, ?int $offset = null, ?int $length = null) {}
- /**
- * @alias oci_lob_write_temporary
- * @return bool
- */
+ /** @return bool */
public function writetemporary(string $data, int $type = OCI_TEMP_CLOB) {}
- /**
- * @alias oci_lob_close
- * @return bool
- */
+ /** @return bool */
public function close() {}
/**
diff --git a/ext/oci8/oci8_arginfo.h b/ext/oci8/oci8_arginfo.h
index e481d3d3a4..4486036c49 100644
--- a/ext/oci8/oci8_arginfo.h
+++ b/ext/oci8/oci8_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 7f000371ef4b61c401b5a59d2ab19c0e0f9a1987 */
+ * Stub hash: e7a7a9402b2668136f9f47d6e547e3af46a78a50 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_oci_define_by_name, 0, 3, _IS_BOOL, 0)
ZEND_ARG_INFO(0, statement)
@@ -470,7 +470,7 @@ ZEND_END_ARG_INFO()
#define arginfo_class_OCILob_size arginfo_class_OCILob_load
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_OCILob_write, 0, 0, 1)
- ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
+ ZEND_ARG_TYPE_INFO(0, data, IS_STRING, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, length, IS_LONG, 1, "null")
ZEND_END_ARG_INFO()
@@ -619,8 +619,8 @@ ZEND_FUNCTION(oci_collection_trim);
ZEND_FUNCTION(oci_new_collection);
ZEND_FUNCTION(oci_register_taf_callback);
ZEND_FUNCTION(oci_unregister_taf_callback);
-ZEND_FUNCTION(oci_lob_write_temporary);
-ZEND_FUNCTION(oci_lob_close);
+ZEND_METHOD(OCILob, writetemporary);
+ZEND_METHOD(OCILob, close);
static const zend_function_entry ext_functions[] = {
@@ -771,8 +771,8 @@ static const zend_function_entry class_OCILob_methods[] = {
ZEND_ME_MAPPING(getbuffering, ocigetbufferinglob, arginfo_class_OCILob_getbuffering, ZEND_ACC_PUBLIC)
ZEND_ME_MAPPING(writetofile, oci_lob_export, arginfo_class_OCILob_writetofile, ZEND_ACC_PUBLIC)
ZEND_ME_MAPPING(export, oci_lob_export, arginfo_class_OCILob_export, ZEND_ACC_PUBLIC)
- ZEND_ME_MAPPING(writetemporary, oci_lob_write_temporary, arginfo_class_OCILob_writetemporary, ZEND_ACC_PUBLIC)
- ZEND_ME_MAPPING(close, oci_lob_close, arginfo_class_OCILob_close, ZEND_ACC_PUBLIC)
+ ZEND_ME(OCILob, writetemporary, arginfo_class_OCILob_writetemporary, ZEND_ACC_PUBLIC)
+ ZEND_ME(OCILob, close, arginfo_class_OCILob_close, ZEND_ACC_PUBLIC)
ZEND_ME_MAPPING(free, oci_free_descriptor, arginfo_class_OCILob_free, ZEND_ACC_PUBLIC)
ZEND_FE_END
};
diff --git a/ext/oci8/oci8_interface.c b/ext/oci8/oci8_interface.c
index 91db3f4815..df71b510fd 100644
--- a/ext/oci8/oci8_interface.c
+++ b/ext/oci8/oci8_interface.c
@@ -916,7 +916,7 @@ PHP_FUNCTION(oci_lob_export)
/* }}} */
/* {{{ Writes temporary blob */
-PHP_FUNCTION(oci_lob_write_temporary)
+PHP_METHOD(OCILob, writetemporary)
{
zval *tmp, *z_descriptor;
php_oci_descriptor *descriptor;
@@ -943,7 +943,7 @@ PHP_FUNCTION(oci_lob_write_temporary)
/* }}} */
/* {{{ Closes lob descriptor */
-PHP_FUNCTION(oci_lob_close)
+PHP_METHOD(OCILob, close)
{
zval *tmp, *z_descriptor;
php_oci_descriptor *descriptor;