Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 1533) sorted by relevance

12345678910>>...62

/plugin/zip/pear/File/Archive/Reader/
H A DFile.php44 var $handle = null; variable in File_Archive_Reader_File
95 if ($this->handle !== null) {
96 fclose($this->handle);
97 $this->handle = null;
164 if ($this->handle === null) {
168 $this->handle = null;
172 $this->handle = null;
188 if (feof($this->handle)) {
217 $before = ftell($this->handle);
231 if ($this->handle === null) {
[all …]
/plugin/bugzillahttp/
H A DcUrlHelper.php24 private function setCurlOptions($handle) { argument
25 curl_setopt($handle, CURLOPT_HTTPHEADER, $this->header);
26 curl_setopt($handle, CURLOPT_USERAGENT, $this->useragent);
27 curl_setopt($handle, CURLOPT_HTTPGET, 1);
28 curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1);
32 $handle = curl_init($url);
33 $this->setCurlOptions($handle);
34 $return = curl_exec($handle);
35 curl_close($handle);
/plugin/elasticsearch/vendor/guzzlehttp/streams/tests/
H A DStreamTest.php22 fwrite($handle, 'data');
23 $stream = new Stream($handle);
37 $stream = new Stream($handle);
45 fwrite($handle, 'data');
46 $stream = new Stream($handle);
55 fwrite($handle, 'data');
56 $stream = new Stream($handle);
66 fwrite($handle, 'data');
67 $stream = new Stream($handle);
77 fwrite($handle, 'data');
[all …]
H A DGuzzleStreamWrapperTest.php15 $handle = GuzzleStreamWrapper::getResource($stream);
16 $this->assertSame('foo', fread($handle, 3));
17 $this->assertSame(3, ftell($handle));
18 $this->assertSame(3, fwrite($handle, 'bar'));
19 $this->assertSame(0, fseek($handle, 0));
20 $this->assertSame('foobar', fread($handle, 6));
21 $this->assertEmpty(fread($handle, 1));
22 $this->assertTrue(feof($handle));
53 ], fstat($handle));
56 $this->assertTrue(fclose($handle));
/plugin/zip/pear/File/Archive/Writer/
H A DFiles.php43 var $handle = null; variable in File_Archive_Writer_Files
108 $this->handle = fopen($filename, 'r+');
112 if (!is_resource($this->handle)) {
118 fread($this->handle, $pos);
140 fread($this->handle, $pos);
159 while(!feof($this->handle)) {
167 ftruncate($this->handle, ftell($this->handle));
188 if (!is_resource($this->handle)) {
223 if ($this->handle !== null) {
224 fclose($this->handle);
[all …]
/plugin/cleanoldips/
H A Daction.php105 $handle = fopen($changelogFN, 'rb+');
106 fseek($handle, $startPosition);
109 while (($line = fgets($handle)) !== false) {
120 $writeOffset = ftell($handle) - strlen($line);
121 fseek($handle, $writeOffset);
128 file_put_contents($cacheFile, ftell($handle));
129 fclose($handle);
146 $handle = fopen($changelogFile, 'rb');
147 fseek($handle, $cacheStartPosition - 1);
148 $previousChar = fread($handle, 1);
[all …]
/plugin/gdpr/action/
H A Doldips.php104 $handle = fopen($changelogFN, 'rb+');
105 fseek($handle, $startPosition);
108 while (($line = fgets($handle)) !== false) {
119 $writeOffset = ftell($handle) - strlen($line);
120 fseek($handle, $writeOffset);
127 file_put_contents($cacheFile, ftell($handle));
128 fclose($handle);
145 $handle = fopen($changelogFile, 'rb');
146 fseek($handle, $cacheStartPosition - 1);
147 $previousChar = fread($handle, 1);
[all …]
H A Ddelusers.php167 $handle = fopen($changelogFN, 'rb+');
168 flock($handle, LOCK_EX);
169 while ($line = fgets($handle)) {
178 ftruncate($handle, 0);
179 fseek($handle, 0);
180 fwrite($handle, implode('', $cleanChangelogLines));
181 flock($handle, LOCK_UN);
182 fclose($handle);
229 $handle = fopen($changelogCacheFN, 'rb');
230 $firstLine = fgets($handle);
[all …]
/plugin/webdav/vendor/sabre/dav/lib/DAV/Locks/Backend/
H A DFile.php146 $handle = fopen($this->locksFile, 'r');
147 flock($handle, LOCK_SH);
150 $data = stream_get_contents($handle);
153 flock($handle, LOCK_UN);
154 fclose($handle);
173 flock($handle, LOCK_EX);
176 ftruncate($handle, 0);
177 rewind($handle);
179 fwrite($handle, serialize($newData));
180 flock($handle, LOCK_UN);
[all …]
/plugin/davcal/vendor/sabre/dav/lib/DAV/Locks/Backend/
H A DFile.php146 $handle = fopen($this->locksFile, 'r');
147 flock($handle, LOCK_SH);
150 $data = stream_get_contents($handle);
153 flock($handle, LOCK_UN);
154 fclose($handle);
173 flock($handle, LOCK_EX);
176 ftruncate($handle, 0);
177 rewind($handle);
179 fwrite($handle, serialize($newData));
180 flock($handle, LOCK_UN);
[all …]
/plugin/news/scripts/
H A Drss.php12 $handle = null;
15 $handle = fopen($outfile,'wb');
16 if(!flock($handle,LOCK_EX)) {
17 fclose($handle);
22 if($handle) {
23 fwrite($handle,$this->write_header());
25 fwrite($handle,$this->write_item());
27 fwrite($handle,$this->footer());
28 flock($handle,LOCK_UN);
29 fclose($handle);
/plugin/findologicxmlexport/vendor/hoa/protocol/
H A DProtocol.php183 $handle = self::$_cache[$path];
185 $out = $this->_resolve($path, $handle);
188 if (!is_array($handle)) {
192 $handle = array_values(array_unique($handle, SORT_REGULAR));
194 foreach ($handle as &$entry) {
204 self::$_cache[$path] = $handle;
209 return $handle;
214 foreach ($handle as $solution) {
224 return $handle[0];
227 foreach ($handle as $solution) {
/plugin/elasticsearch/vendor/guzzlehttp/ringphp/src/Client/
H A DCurlHandler.php53 foreach ($this->handles as $handle) {
54 if (is_resource($handle)) {
55 curl_close($handle);
108 $handle = curl_init();
109 $id = (int) $handle;
110 $this->handles[$id] = $handle;
113 return $handle;
116 private function releaseEasyHandle($handle) argument
118 $id = (int) $handle;
130 curl_setopt_array($handle, $unsetValues);
[all …]
/plugin/swiftmail/Swift/
H A DFile.php37 protected $handle = null; variable in Swift_File
65 $this->handle = null;
99 if ($this->handle === null)
101 if (!$this->handle = fopen($this->path, "rb"))
115 return feof($this->handle);
140 $ret = fgets($this->handle);
173 $ret = fread($this->handle, $bytes);
196 fclose($this->handle);
197 $this->handle = null;
205 fseek($this->handle, 0);
[all …]
/plugin/recaptcha2/lib/ReCaptcha/RequestMethod/
H A DSocket.php35 private $handle = null; variable in ReCaptcha\\RequestMethod\\Socket
50 …$this->handle = fsockopen($hostname, $port, $errno, $errstr, (is_null($timeout) ? ini_get("default…
52 if ($this->handle != false && $errno === 0 && $errstr === '') {
53 return $this->handle;
69 return fwrite($this->handle, $string, (is_null($length) ? strlen($string) : $length));
80 return fgets($this->handle, $length);
91 return feof($this->handle);
102 return fclose($this->handle);
/plugin/icalevents/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/VersionControl/
H A DSubversionPropertiesSniff.php151 $handle = fopen($path, 'r');
152 if ($handle === false) {
157 while (feof($handle) === false) {
159 $buffer = trim(fgets($handle));
167 $key = fread($handle, substr($buffer, 2));
170 fgetc($handle);
173 $buffer = trim(fgets($handle));
182 $value = fread($handle, $length);
186 fgetc($handle);
191 fclose($handle);
/plugin/swiftmail/Swift/Connection/
H A DSMTP.php50 protected $handle = null; variable in Swift_Connection_SMTP
243 while (!feof($this->handle))
247 $tmp = @fgets($this->handle);
308 $this->handle = null;
357 $handle = opendir($dir);
358 while (false !== $file = readdir($handle))
368 closedir($handle);
427 if ($this->handle)
429 if (!fclose($this->handle))
433 $this->handle = null;
[all …]
/plugin/davcal/vendor/sabre/dav/tests/Sabre/DAV/
H A DPropPatchTest.php22 $this->propPatch->handle('{DAV:}displayname', function($value) use (&$hasRan) {
40 $this->propPatch->handle('{DAV:}displayname', function($value) use (&$hasRan) {
58 $this->propPatch->handle('{DAV:}displayname', function($value) use (&$hasRan) {
77 $this->propPatch->handle('{DAV:}displayname', function($value) use (&$hasRan) {
96 $this->propPatch->handle('{DAV:}foobar', function($value) use (&$hasRan) {
128 $this->propPatch->handle('{DAV:}displayname', function() {} );
177 $this->propPatch->handle('{DAV:}displayname', function($value) use (&$hasRan) {
198 $propPatch->handle('{DAV:}a', function() use (&$calledA) {
202 $propPatch->handle('{DAV:}b', function() use (&$calledB) {
232 $propPatch->handle('{DAV:}a', function() use (&$calledA) {
[all …]
/plugin/openid/Auth/OpenID/
H A DMemcachedStore.php60 $association->handle);
91 function getAssociation($server_url, $handle = null) argument
94 if ($handle !== null) {
97 $this->associationKey($server_url, $handle));
125 function removeAssociation($server_url, $handle) argument
131 $handle);
186 function associationKey($server_url, $handle = null) argument
188 return 'openid_association_' . sha1($server_url) . '_' . sha1($handle);
H A DAssociation.php83 * @param string $handle This is the handle the server gave this
101 return new Auth_OpenID_Association($handle, $secret,
112 * @param string $handle This is the handle the server gave this
132 $handle, $secret, $issued, $lifetime, $assoc_type) argument
140 $this->handle = $handle;
173 && ($this->handle == $other->handle)
190 'handle' => $this->handle,
235 $handle = $pairs['handle'];
251 $handle, $secret, $issued, $lifetime, $assoc_type);
294 if ($extant_handle && ($extant_handle != $this->handle)) {
[all …]
/plugin/fedauth/Auth/OpenID/
H A DMemcachedStore.php60 $association->handle);
91 function getAssociation($server_url, $handle = null) argument
94 if ($handle !== null) {
97 $this->associationKey($server_url, $handle));
125 function removeAssociation($server_url, $handle) argument
131 $handle);
186 function associationKey($server_url, $handle = null) argument
188 return 'openid_association_' . sha1($server_url) . '_' . sha1($handle);
H A DAssociation.php83 * @param string $handle This is the handle the server gave this
101 return new Auth_OpenID_Association($handle, $secret,
112 * @param string $handle This is the handle the server gave this
132 $handle, $secret, $issued, $lifetime, $assoc_type) argument
140 $this->handle = $handle;
173 && ($this->handle == $other->handle)
190 'handle' => $this->handle,
235 $handle = $pairs['handle'];
251 $handle, $secret, $issued, $lifetime, $assoc_type);
294 if ($extant_handle && ($extant_handle != $this->handle)) {
[all …]
H A DFileStore.php150 function getAssociationFilename($server_url, $handle) argument
167 if ($handle) {
232 function getAssociation($server_url, $handle = null) argument
239 if ($handle === null) {
240 $handle = '';
247 if ($handle) {
338 function removeAssociation($server_url, $handle) argument
475 if ($handle = opendir($dir)) {
476 while ($item = readdir($handle)) {
491 closedir($handle);
[all …]
/plugin/schedule/
H A DpoiDB.class.php83 $handle = @fopen ($this->dbFileName, "r");
84 if ($handle) {
85 while (($line = fgets ($handle)) !== false) {
93 fclose ($handle);
103 $handle = @fopen ($this->dbFileName, "w");
104 if ($handle == false)
107 fputs ($handle, $line.NL);
108 fclose ($handle);
/plugin/xtern/scripts/
H A Dchk_links.php15 $handle = fopen($data['path'], "r"); variable
16 if ($handle) {
17 parse_dwfile($handle,$data['id'],$data['path']);
18 fclose($handle);
22 function parse_dwfile($handle="",$id, $path) { argument
23 while (!feof($handle)) {
24 $buffer = fgets($handle);

12345678910>>...62