From:             
Operating system: os x 10.5.8
PHP version:      5.3.4
Package:          OCI8 related
Bug Type:         Bug
Bug description:Unable to run "make test" after building

Description:
------------
After running configure with '--with-

oci8=instantclient,/opt/oracle/app/oracle/lib' PHP builds, installs, and
runs 

successfully (using both apache 2.2.14 and the cli). However, attempting to
run 

"make test" in the build directory results in every test failing.
tests/run-

tests/test001.out, for example, contains:



dyld: Library not loaded: /b/227/rdbms/lib/libclntsh.dylib.10.1

  Referenced from: /Users/vickery/Downloads/php-5.3.4/sapi/cli/php

  Reason: image not found



But libclntsh.dylib.10.1 is actually located in /opt/oracle/app/oracle/lib

(When starting apache, the DYLD_LIBRARY_PATH environment variable must be
set to 

/opt/oracle/app/oracle/lib.)



But having DYLD_LIBRARY_PATH properly set when running "make test" does not


solve the problem; the tests seem to be run in a separate environment not 

inherited from the command line (?)

Test script:
---------------
This is a build bug, so there is no test script available.



Workaround:



If I add the following statement to run-tests.php at line 1690, the problem
goes away:



$env['DYLD_LIBRARY_PATH'] = '/opt/oracle/app/oracle/lib';



Of course, this is not a real fix; it just demonstrates the need for
build-test.php to add the value of DYLD_LIBRARY_PATH to the $env variable
being passed to system_with_timeout(). On OS X. When configuring with
oci8=instantclient,[path]








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

Reply via email to