]> khamidou — GitHub mirrors - arcanist.git/commitdiff
@include_once libphutil, not @require_once
authorepriestley <git@epriestley.com>
Thu, 20 Oct 2011 21:34:42 +0000 (14:34 -0700)
committerepriestley <git@epriestley.com>
Thu, 20 Oct 2011 21:35:34 +0000 (14:35 -0700)
(Committing on behalf of @cpiro)

Summary: there's a check beneath to see if it worked, but @require_once will
fail silently if libphutil isn't available

Test Plan: tried it with libphutil findable and not findable, got expected
behavior

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley
Differential Revision: 1018

scripts/__init_script__.php

index 587052054576eab1cd6d90425722b6c2d1e8b61c..9ff10fd4677f2b9934f5f3ad9d40a1635fd9a6ee 100644 (file)
@@ -18,7 +18,7 @@
 
 $include_path = ini_get('include_path');
 ini_set('include_path', $include_path.':'.dirname(__FILE__).'/../../');
-@require_once 'libphutil/src/__phutil_library_init__.php';
+@include_once 'libphutil/src/__phutil_library_init__.php';
 if (!@constant('__LIBPHUTIL__')) {
   echo "ERROR: Unable to load libphutil. Update your PHP 'include_path' to ".
        "include the parent directory of libphutil/.\n";