This file is indexed.

/usr/share/doc/php5-gearman/examples/image_thumbnail_client_bg.php is in php5-gearman 1.1.2-1build2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/*
 * Gearman PHP Extension
 *
 * Copyright (C) 2008 James M. Luedke (jluedke@jamesluedke.com)
 *                           Eric Day (eday@oddments.org)
 * All rights reserved.
 *
 * Use and distribution licensed under the PHP license.  See
 * the LICENSE file in this directory for full text.
 */

/* create our object */
$gmc= new GearmanClient();

/* add the default server */
$gmc->addServer();

for ($x=0; $x<20; $x++)
{
    $data[$x]['src']= $_SERVER['argv'][1];
    $data[$x]['dest']= "$x.jpg";
    $data[$x]['x']= ((80+1)*($x+1));
    $data[$x]['y']= NULL;
}

/* fire off each job */
foreach ($data as $img)
{
    $job_handle[]= $gmc->doBackground("shrink_image", serialize($img));
    if ($gmc->returnCode() != GEARMAN_SUCCESS)
    {
        echo "ERROR RET: " . $gmc->error() . "\n";
        exit;
    }
}

echo "DONE\n";