Edit report at https://bugs.php.net/bug.php?id=53617&edit=1

 ID:                 53617
 Updated by:         c...@php.net
 Reported by:        cvickery at gmail dot com
 Summary:            Unable to run "make test" after building
-Status:             Open
+Status:             Duplicate
 Type:               Bug
 Package:            Testing related
 Operating System:   os x 10.5.8
 PHP Version:        5.3.4
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

This is a duplicate of bug #60981 (actually, it is the other way
round, but the other ticket has a patch attached).


Previous Comments:
------------------------------------------------------------------------
[2011-01-12 02:17:32] s...@php.net

Thanks for the confirmation.  This is a run-tests.php issue.

------------------------------------------------------------------------
[2011-01-12 02:09:06] cvickery at gmail dot com

That was it!

Also, I was wondering why the make test worked on my deployment system, and see 
that variables_order did include 'E' on that one.

Thanks!

------------------------------------------------------------------------
[2011-01-11 20:06:59] s...@php.net

I've seen a similar thing with PHP's run-tests.php on some Linux shells.
The best solution there is to make sure php.ini's variables_order has "E", for 
example "EGPCS".  See step 2 on p246 of the Underground PHP & Oracle Manual.

Let us know if this is also a viable workaround.

------------------------------------------------------------------------
[2010-12-28 04:36:22] cvickery at gmail dot com

In a parenthetical note, I mentioned that DYLD_LIBRARY_PATH has to be set for 
apache to launch successfully. But I failed to mention that, of course, it must 
also be set when launching the cli.

------------------------------------------------------------------------
[2010-12-28 04:27:18] cvickery at gmail dot com

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 this bug report at https://bugs.php.net/bug.php?id=53617&edit=1

-- 
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to