From:             jeffersongranatto at mannesoft dot com dot br
Operating system: Linux
PHP version:      5.2.8
PHP Bug Type:     Feature/Change Request
Bug description:  $php_errormsg is limited in size of characters

Description:
------------
Sometimes, I need to show a big error message on a trigger of Oracle.
Oracle supports this type of situation, but $php_errormsg does not display
more than 500 characters.

Reproduce code:
---------------
create procedure sp_test as
begin
  raise_application_error(-20000, 'more than 500 characters');
end;


$stmt = ociparse($conn, 'begin sp_test; end;');
ociexecute($stmt, OCI_DEFAULT);
echo $php_errormsg;


Expected result:
----------------
The full message.

Actual result:
--------------
The message truncated to 500 characters.

-- 
Edit bug report at http://bugs.php.net/?id=47281&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47281&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47281&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47281&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47281&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47281&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47281&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47281&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47281&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47281&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47281&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47281&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47281&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47281&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47281&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47281&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47281&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47281&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47281&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47281&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47281&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47281&r=mysqlcfg

Reply via email to