--TEST-- PL/SQL oci_bind_by_name with SQLT_AFC aka CHAR to VARCHAR2 parameter --SKIPIF-- = 12)) { die("skip expected output only valid when using Oracle 12c database"); } ?> --ENV-- NLS_LANG=.AL32UTF8 --FILE-- --EXPECTF-- Test 1.1 In Length: default. In Type: default. Out Length: default. Out Type: default Executing: Oci_execute error ORA-6502 string(3) "abc" NULL Test 1.2 In Length: default. In Type: default. Out Length: 10. Out Type: default Executing: string(3) "abc" string(3) "abc" Test 1.3 In Length: -1. In Type: AFC. Out Length: 10. Out Type: default Executing: string(3) "abc" string(3) "abc" Test 1.4 In Length: -1. In Type: AFC. Out Length: 10. Out Type: AFC Executing: string(3) "abc" string(10) "abc " Test 1.5 In Length: strlen. In Type: AFC. Out Length: strlen(input). Out Type: AFC Executing: string(3) "abc" string(3) "abc" Test 1.6 In Length: strlen. In Type: AFC. Out Length: strlen(input)-1. Out Type: AFC Executing: Oci_execute error ORA-6502 string(3) "abc" string(3) "abc" Test 1.7 In Length: strlen. In Type: AFC. Out Length: strlen(input)+1. Out Type: AFC Executing: string(3) "abc" string(4) "abc " Tests with '' Test 2.1 In Length: -1. In Type: AFC. Out Length: 10. Out Type: AFC Executing: string(0) "" NULL Test 2.2 In Length: default. In Type: default. Out Length: 10. Out Type: default Executing: string(0) "" NULL Test 2.3 In Length: -1. In Type: AFC. Out Length: 10. Out Type: default Executing: string(0) "" NULL Test 2.4 In Length: -1. In Type: AFC. Out Length: 10. Out Type: AFC Executing: string(0) "" NULL Test 2.5 In Length: -1. In Type: AFC. Out Length: 0. Out Type: AFC Executing: string(0) "" NULL Test 2.6 In Length: 0. In Type: AFC. Out Length: 0. Out Type: AFC Executing: string(0) "" NULL Test 2.7 In Length: 1. In Type: AFC. Out Length: 1. Out Type: AFC Executing: string(0) "" NULL Tests with NULL Test 3.1 In Length: -1. In Type: AFC. Out Length: 10. Out Type: AFC Executing: NULL NULL Test 3.2 In Length: default. In Type: default. Out Length: 10. Out Type: default Executing: NULL NULL Test 3.3 In Length: -1. In Type: AFC. Out Length: 10. Out Type: default Executing: NULL NULL Test 3.4 In Length: -1. In Type: AFC. Out Length: 10. Out Type: AFC Executing: NULL NULL Test 3.5 In Length: -1. In Type: AFC. Out Length: 0. Out Type: AFC Executing: NULL NULL Test 3.6 In Length: -1. In Type: AFC. Out Length: 1. Out Type: AFC Executing: NULL NULL Done