|
Subject
|
Posted
|
Replies
|
From
|
#50656 [NEW]: Assign constant to var causes syntax error
From: willirl at gmail dot com
Operating system: mac os x 10.6
PHP version: 5.3.1
PHP Bug Type: Compile Failure
Bug description: Assign constant to var causes syntax error
Description:
------------
This error is on Mac 10.6 has PHP 5.3.0 which is not shown in version
selector.
The code causes this error:
Parse error: syntax error, unexpected T_VAR in /Users/willirl/Desktop/TEST
Files/test.php on line 6
Reproduce code:
---------------
<?php
define('A_CONSTANT', 25);
var $abc = A_CONSTANT;
?>
Expected result:
----------------
No error.
|
1/4/2010 3:07:07 PM
|
1
|
php-b...@lists.php.net ("willirl at gmail dot com")
|
#50655 [NEW]: fgets(): French translation error
From: c dot duvergier dot div at online dot fr
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: fgets(): French translation error
Description:
------------
The "length" parameter french description of fgets() contains an error.
Correct translation of "which is included in the return value" is:
"laquelle est inclus dans la valeur de retour".
Reproduce code:
---------------
---
From manual page: function.fgets#Liste de param�tres
---
--
Edit bug report at http://bugs.php.net/?id=50655&edit=1
--
T
|
1/4/2010 2:40:48 PM
|
0
|
doc-b...@lists.php.net ("c dot duvergier dot div at online dot fr")
|
note 95459 added to domnode.haschildnodes
This function is a bit tricky. If you want to find XML childnodes it is useless. You need to create a work-around:
<?php
$x = new DOMDocument();
$x->loadXML('
<A>
<B>b-text</B>
<C>
<D>d-text</D>
</C>
<E/>
</A>');
shownode($x->getElementsByTagName('A')->item(0));
function shownode($x) {
foreach ($x->childNodes as $p)
if (hasChild($p)) {
echo $p->nodeName.' -> CHILDNODES<br>';
shownode($p);
} elseif ($p->nodeType == XML_ELEMENT_NODE)
echo $p->nodeName.' '.$p->nodeValue.'<br>';
}
function hasChild($p) {
if ($p->hasChildNodes()) {
foreach ($p->chi
|
1/4/2010 1:53:44 PM
|
0
|
syngcwatsyncgw....@osu1.php.net
|
note 95458 added to function.readdir
this simple function will index the directories and sub-directories of a given dir
function get_dirs($dir){
global $dirs;
if (!isset($dirs)){$dirs = '';}
if(substr($dir,-1) !== '\\'){$dir .= '\\';}
if ($handle = opendir($dir)){
while (false !== ($file = readdir($handle))){
if (filetype($dir.$file) === 'dir' && $file != "." && $file != ".."){
clearstatcache();
$dirs .= $file . "\n";
get_dirs($dir . $file);
}
}
closedir($handle);
}
return $dirs;
}
----
Server IP: 69.147.83.197
Probable Submitter: 85.31.83.46 (proxied: 127.0.0.1)
----
Manual Pa
|
1/4/2010 1:36:41 PM
|
0
|
yasirla...@live.com
|
Hola
Hola a todos, me acabo de inscribir en la lista y quisiera participar
en el rol de traductor. Aunque no soy desarrollador de tiempo
completo, he trabajado con PHP y MySQL desde hace m=C3=A1s o menos 5 a=C3=
=B1os.
Mi disponibilidad de tiempo no es mucha pero espero poder aportar mi
granito de arena para este proyecto.
--=20
Salu2,
Juan Pablo Berdejo Casas, M.D.
GNU/Linux Registred User #131315
http://es.openoffice.org
http://www.getfirefox.com
http://www.obtengalinux.org
"No te tomes tan en serio la vida, al fin y al cabo no saldr=C3=A1s vivo de=
ella"
|
1/4/2010 1:29:49 PM
|
0
|
jpberd...@gmail.com (Juan Pablo Berdejo)
|
#50654 [NEW]: Nested heredocs fail
From: thuejk at gmail dot com
Operating system: Debian Linux Unstable
PHP version: 5.2.12
PHP Bug Type: Scripting Engine problem
Bug description: Nested heredocs fail
Description:
------------
Embedding a heredoc inside another heredoc fails to compile on 5.2.12.
(The same code successfully compiles on 5.2.4-ubuntu, but running it has
the wrong output.)
Reproduce code:
---------------
<?php
$a = Array("b" => 1);
echo <<<ZZ
{$a[<<<B
b
B
]}
ZZ;
?>
Expected result:
----------------
1
Actual result:
--------------
Parse error: syntax er
|
1/4/2010 1:09:22 PM
|
0
|
php-b...@lists.php.net ("thuejk at gmail dot com")
|
#50653 [NEW]: str_split sequence handling
From: robert_xp at gmx dot net
Operating system:
PHP version: 5.3.1
PHP Bug Type: Feature/Change Request
Bug description: str_split sequence handling
Description:
------------
str_split is only able to split a string in periodical substrings. I
think, it's a good improvement to allow arrays as a second parameter to
handle sequences. I wrote a patch for that:
http://www.xarg.org/2009/12/php-hacking/
Reproduce code:
---------------
var_dump(str_split("0123456789abcdefwant to extract this?abcd", array(16,
-4)));
var_dump(str_split("hello how are you?",
|
1/4/2010 12:22:08 PM
|
0
|
php-b...@lists.php.net ("robert_xp at gmx dot net")
|
#50652 [NEW]: time call optimization
From: robert_xp at gmx dot net
Operating system:
PHP version: 5.3.1
PHP Bug Type: Performance problem
Bug description: time call optimization
Description:
------------
Sure, it is not so critical to patch this but you use ever time(NULL) to
get the current time in most functions. There is a better way going over
the SAPI interface and retrieve a cached value. I published also a patch
for all time(NULL/0) calls on http://www.xarg.org/2009/12/php-hacking/
I also hacked the FCGI sapi to get the time value direclty from the
webserver - yes it is not supported
|
1/4/2010 12:18:06 PM
|
1
|
php-b...@lists.php.net ("robert_xp at gmx dot net")
|
Spam: Re: Looking for lists?
Use our lists to get a successful campaign going.
Drop me a line here for more info & samples:
Spesial Package 395.00
Complete Physician Database 788,114 in total * 17,482 emails
Coverage in many different areas of medicine such as Endocrinology,
Pathology, Urology, Neurology, Plastic Surgery, Psychiatry, Cardiology and much more
====Get These Below with every order this week ====
7145 Hospitals*23,000 Administrators with Ph/fax and postal address.
Licensed Clinic/Dentist 597,959 Total Records*6,494 Emails*6,000 Fax Numbers.
US Pharmaceutical Company 4
|
1/4/2010 12:05:47 PM
|
0
|
ostr...@drumresources.com ("Kendall Phipps")
|
Test results for 5.3.2RC1 [failed]
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #45877 (Array key '2147483647' left as string) [Zend/tests/bug45877.phpt]
Bug #45554 (Inconsistent behavior of the u format char) [ext/date/tests/bug45554.phpt]
Integer overflow [ext/filter/tests/046.phpt]
Phar: phpinfo display 3 [ext/phar/tests/phpinfo_003.phpt]
Test posix_kill(), posix_get_last_error and posix_strerror() functions : basic functionality [ext/posix/tests/posix_kill_basic.phpt]
proc_open [ext/standard/tests
|
1/4/2010 11:28:07 AM
|
0
|
nore...@php.net
|
Test results for 5.3.2RC1 [failed]
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #45877 (Array key '2147483647' left as string) [Zend/tests/bug45877.phpt]
Bug #45554 (Inconsistent behavior of the u format char) [ext/date/tests/bug45554.phpt]
Integer overflow [ext/filter/tests/046.phpt]
Phar: phpinfo display 3 [ext/phar/tests/phpinfo_003.phpt]
Test posix_kill(), posix_get_last_error and posix_strerror() functions : basic functionality [ext/posix/tests/posix_kill_basic.phpt]
proc_open [ext/standard/tests
|
1/4/2010 11:15:18 AM
|
0
|
nore...@php.net
|
gd examples
Hi,
I am new to gd and I've just built gd-2.0.35 on a linux box. Are there
any C or C++ examples to create images from gd?
Thank you.
Kind regards,
Jupiter
|
1/4/2010 11:14:23 AM
|
0
|
webmail....@gmail.com (hce)
|
#50646 [NEW]: Documentation translation Problem
From: 001 at mircoweb dot de
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Translation problem
Bug description: Documentation translation Problem
Description:
------------
German text for manual entry 'define', explaination 'value':
Es sind nur Skalar- und NULL-Werte sind erlaubt.
(double word 'sind') - should be;
Es sind nur Skalar- und NULL-Werte erlaubt.
or
Nur Skalar- und NULL-Werte sind erlaubt.
Reproduce code:
---------------
---
From manual page: function.define#Parameter-Liste
---
--
Edit bug report at http://b
|
1/4/2010 10:28:25 AM
|
0
|
doc-b...@lists.php.net ("001 at mircoweb dot de")
|
New mirror in Czech
Hello,
I hope waiting period is past, so here are offer for (re)new mirror:
* Your country: Czech Rebublic (.cz)
* The xx.php.net address: cz.php.net
* Your name and email address: Jiri Solc (jiri.solc@fs.cvut.cz)
* A hostname that we can use as a CNAME: php.ftp.cvut.cz
* Whether or not you've installed local stats: Nope.
* The name of the hosting company: Czech Technical University in Prague
* The URL of the hosting company: http://www.cvut.cz
Have a nice day and plese let me know.
Reagrds
Jiri
--
Jiri SOLC *** department of netw
|
1/4/2010 10:17:01 AM
|
0
|
...@cvut.cz
|
PHP 6 Bug Summary Report
PHP 6 Bug Database summary - http://bugs.php.net/
Num Status Summary (107 total -- which includes 46 feature requests)
===============================================[*General Issues]==============
50189 Open [PATCH] - unicode byte order difference between SPARC and x86
===============================================[Apache related]===============
47061 Open User not logged under Apache
===============================================[Apache2 related]==============
44083 Open virtual() not outputting results if zlib.output_compression = On
=====================
|
1/4/2010 10:00:00 AM
|
0
|
intern...@lists.php.net
|
Applying For Mirror Relisting
Dear admins,
Due to various reasons, our PHP mirror site has to been unlisted.
It has been one month since then, and we are applying to be listed.
Information regarding our mirror site is as follows:
Country: Taiwan
Applying for: tw.php.net
Contact: NTUFTP Admin <master@ftp.ntu.edu.tw>
Hostname: ftp.ntu.edu.tw
Sponsor: National Taiwan University
Sponsor URL: http://www.ntu.edu.tw/
We have also setup local stats.
The mirror is also available at http://php.ntu.edu.tw/
Regards,
Chen-Yu Tsai, NTUFTP Admin
|
1/4/2010 9:50:42 AM
|
0
|
mas...@ftp.ntu.edu.tw (NTUFTP Admin)
|
PHP 5 Bug Summary Report
PHP 5 Bug Database summary - http://bugs.php.net/
Num Status Summary (1571 total -- which includes 1021 feature requests)
===============================================[*Directory/Filesystem functions]
49620 Suspended is_writeable does not work using netshare and normal user rights
50542 Assigned scandir() cannot open UNC paths since PHP 5.3.1
===============================================[*General Issues]==============
48597 Open Unclosed array keys break space escaping in $_GET/POST/REQUEST
50314 Verified File upload problem with typo in form
50512 Open Yum
|
1/4/2010 9:30:06 AM
|
0
|
intern...@lists.php.net
|
[PHP Wiki] new user: firdaus_81
A new user has registered. Here are the details:
User name : firdaus_81
Full name : Muhamad Firdaus B.Idris
E-mail : lithium4_81@yahoo.com
Date : 2010/01/04 06:27
Browser : Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_2 like Mac OS X; e=
n-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7D11 Safar=
i/528.16
IP-Address : 121.122.8.141
Hostname : 121.122.8.141
--=20
This mail was generated by DokuWiki at
http://wiki.php.net/
|
1/4/2010 6:27:19 AM
|
0
|
php-webmas...@lists.php.net
|
hope add func_alias() function
php v5.3 added class_alias() function.
same, i hope add func_alias() function is used to solve the problem
without throwing an exception.
Example:
// Now
class str
{
public static function len($str)
{
return strlen($str); // Warning is here, none throwing an exception
// if u need exception, pls youself write ?
// However, if this type of operation a lot?
}
}
str::len(array()); // Warning in the above
// Expected
class str{}
func_alias('strlen', array('str', 'len'));
str::len(array()); // strlen same warning.
// This a f
|
1/4/2010 6:01:54 AM
|
0
|
da...@rune.ws (dark9)
|
hope add func_alias() function
php v5.3 added class_alias() function.
same, i hope add func_alias() function is used to solve the problem
without throwing an exception.
Example:
// Now
class str
{
public static function len($str)
{
return strlen($str); // Warning is here, none throwing an exception
// if u need exception, pls youself write ?
// However, if this type of operation a lot?
}
}
str::len(array()); // Warning in the above
// Expected
class str{}
func_alias('strlen', array('str', 'len'));
str::len(array()); // strlen same warning.
// This a f
|
1/4/2010 5:45:39 AM
|
0
|
da...@rune.ws (dark9)
|
Ejemplo en is-bool.xml
--001636d34a9b011131047c4ddc3d
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
He cambiado el ejemplo en:
http://svn.php.net/repository/phpdoc/en/trunk/reference/var/functions/is-bo=
ol.xml
Cualquier otro error en el repositorio oficial en Ingl=E9s me dec=EDs y lo
cambio.
Saludos.
--=20
Yago Ferrer
--001636d34a9b011131047c4ddc3d--
|
1/4/2010 2:55:32 AM
|
0
|
y...@php.net (Yago Ferrer)
|
/opt/php-5.3.1/php_test_results_20100104_0216.txt qa-reports@lists.php.net
Can u assist?
Regards
Ken Lim
Lead Developer
Information Technology | Mitre 10 Australia Ltd. | 12 Dansu Court Hallam =
Vic 3803=20
=20 Direct: Ph: (03) 9703 4510 | Fax: (03) 9703 4222 | Mob: 0407 522 211
22Email: klim@mitre10.com.au | Website: www.mitre10.com.au
Please consider the environment before you print this email
Subject: /opt/php-5.3.1/php_test_results_20100104_0216.txt qa-reports@lis=
ts.php.net=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=
|
1/4/2010 2:24:45 AM
|
0
|
K...@mitre10.com.au
|
link exchange
good day;
we are offering a 100% free link exchange. your site will be putted in
our index page and our site will be putted in one of your suggested
links.. here are my sites info
url: http://linkz.racequeen.ph
title: RaceQueen, inc online business link exchange
description: Racequeen, Inc. Provide customers with dedicated servers.
And offshore staffs for leasing services. we also offer a free link
exchange for any software related site
or try visiting our link page
http://linkz.racequeen.ph
or email me if you are interested
abigail@racequeen.ph
|
1/4/2010 2:16:12 AM
|
0
|
abig...@racequeen.ph (Abigail Del Rosario)
|
note 95445 added to function.dio-read
I am using dio functions on windows to read RS232 port.
I can read/write but it seems that the write function cannot be binary.
In particular:
dio_write($com1,chr(10),1); will result in writing 2 bytes 0D 0A be cause \n is translated to \r\n. I have not found any way to overcome this limitation so far
----
Server IP: 69.147.83.197
Probable Submitter: 210.64.15.56
----
Manual Page -- http://www.php.net/manual/en/function.dio-read.php
Edit -- https://master.php.net/note/edit/95445
Del: integrated -- https://master.php.net/note/delete/95445/integrated
Del: useless -- http
|
1/4/2010 2:14:22 AM
|
1
|
m...@mail.seven.com.tw
|
note 95444 added to function.rmdir
I don't think and of the recursive function here actually work so here is my one that does...
<?php
function rmrf($path){
$files = scandir($path);
foreach($files as $file){
if ($file !== '.' && $file !== '..'){
if(is_dir($path.'/'.$file)){
if (count(glob($path.'/'.$file.'/*')) > 0){
rmrf($path.'/'.$file);
}else{
rmdir($path.'/'.$file);
}
}else{
unlink($path.'/'.$file);
}
}
}
rmdir($path);
}
?>
----
Server IP: 87.124.86.46
Probable Submitter: 188.220.133.216 (proxied: 188.220.133.216)
----
Manual Page -
|
1/4/2010 1:36:18 AM
|
0
|
ja...@jacekk.co.uk
|
RE: [PHP-INSTALL] RE:
This is a multi-part message in MIME format.
------_=_NextPart_001_01CA8CD8.0BF66850
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Best thing to do would be install something like WAMP server and see if
that works. Also, you should try <?php phpinfo(); ?> as your testing
page - then you can rule out that it is the software issue and the
problem lies with your code.
________________________________
From: Bhagavathy Padmanabhan [mailto:bhagavathy.p@iimbeealumni.org]=20
Sent: Sunday, 15 November 2009 8:47 PM
To: php-install@lists.p
|
1/4/2010 12:51:26 AM
|
0
|
Jacob.Bedn...@gotalk.com ("Jacob Bednarz; Graphic Designer")
|
Remove From Mailing List
This is a multi-part message in MIME format.
------=_NextPart_000_0027_01CA8C94.5E61DA00
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Please remove my email for the php mailing list.
------=_NextPart_000_0027_01CA8C94.5E61DA00
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
cha
|
1/4/2010 12:46:59 AM
|
0
|
rfconsult...@oroville.net ("RFConsulting")
|
note 95443 added to book.array
taking from "PHP and MySQL Web Develpment"
<?php
@ $fp = fopen("../orders/orders.txt", 'r');
if (!orders)
{
echo '<p><strong>No orders pending. '
.'Please try again later.</strong></p>';
}
while (!feof($fp)
{
$order= fgets($fp, 999);
echo $orders . '</ br>';
}
fclose($fp);
?>
----
Server IP: 89.185.144.38
Probable Submitter: 86.41.106.207
----
Manual Page -- http://www.php.net/manual/en/book.array.php
Edit -- https://master.php.net/note/edit/95443
Del: integrated -- https://master.php.net/note/delete/95443/integrated
|
1/3/2010 11:29:20 PM
|
1
|
Fergal...@osu1.php.net
|
note 95442 added to function.ssh2-sftp-mkdir
I am having trouble removing folders using SSH2 because permissions are being set to 0775 even when I set them to 0777 using this function. The remove directory function only seems to work on folders with 0777 permissions.
----
Server IP: 69.147.83.197
Probable Submitter: 86.53.80.168
----
Manual Page -- http://www.php.net/manual/en/function.ssh2-sftp-mkdir.php
Edit -- https://master.php.net/note/edit/95442
Del: integrated -- https://master.php.net/note/delete/95442/integrated
Del: useless -- https://master.php.net/note/delete/95442/useless
Del: bad code -- https://mast
|
1/3/2010 10:54:12 PM
|
1
|
op...@osu1.php.net
|
#50645 [NEW]: changing coma per period
From: yago@php.net
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: changing coma per period
Description:
------------
Changing coma per period.
File: /reference/curl/functions/curl-getinfo.xml
Line: 17
'Gets information about the last transfer.'
Thanks
Yago
--
Edit bug report at http://bugs.php.net/?id=50645&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50645&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50645&r=trysnapshot53
|
1/3/2010 9:47:15 PM
|
1
|
doc-b...@lists.php.net ("y...@php.net")
|
note 95441 added to pdostatement.fetchobject
Its worth noting that the settings are done before the call to the constructor:
class NewsVO
{
var $id;
var $title;
var $content;
var $date;
public function __construct()
{
die($this->title);
}
}
Print the title instead of nothing! I am not sure its a bug, because its very usefull to do some post-treatment on the VO properties...
So, question is, can we use it as a special PDO feature or its a pure bug?
----
Server IP: 69.147.83.197
Probable Submitter: 93.1.160.222
----
Manual Page -- http://www.php.net/manual/en/pdostatement.fetchobject.php
Edi
|
1/3/2010 9:23:27 PM
|
1
|
thomasdec...@ebuildy.com
|
Net_DNS Maintainer
--------------ms010909060300090609040005
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi All.
I'm Phil Taylor, from www.phil-taylor.com (I'm sure you can google to
find out about me.. my involvement in Mambo/Joomla and other projects)
I am using Net_DNS extensively in a load of high profile sites and have
started porting those sites to PHP 5.3
I noticed, and fixed, a load of PHP 5.3 issues with Net_DNS and when I
came to provide these back to the project I see its without a maintaner.
I'll be happy to fill that role and undertake
|
1/3/2010 6:55:50 PM
|
1
|
p...@phil-taylor.com ("Mr Phil E. Taylor")
|
note 95440 added to function.array-walk
A little note.
Previous example works only in PHP 5.3 and greater.
----
Server IP: 93.93.89.253
Probable Submitter: 194.220.83.177
----
Manual Page -- http://www.php.net/manual/en/function.array-walk.php
Edit -- https://master.php.net/note/edit/95440
Del: integrated -- https://master.php.net/note/delete/95440/integrated
Del: useless -- https://master.php.net/note/delete/95440/useless
Del: bad code -- https://master.php.net/note/delete/95440/bad+code
Del: spam -- https://master.php.net/note/delete/95440/spam
Del: non-english -- https://master.php.net/note/delet
|
1/3/2010 4:59:21 PM
|
1
|
Anonym...@osu1.php.net
|
[SOAP] PHP Web Service:Uncaught SoapFault exception
hi everyone!
When i run web services applications i take always this message:
Fatal error: Uncaught SoapFault exception: [Client] looks like we got no XML
document in C:\Program Files\Apache
Group\Apache2\htdocs\WebServices\SOAP_EXTENSION\StockQuote\client3.php:3
Stack trace: #0 [internal function]: SoapClient->__call('getQuote', Array)
#1 C:\Program Files\Apache
Group\Apache2\htdocs\WebServices\SOAP_EXTENSION\StockQuote\client3.php(3):
SoapClient->getQuote('ibm') #2 {main} thrown in C:\Program Files\Apache
Group\Apache2\htdocs\WebServices\SOAP_EXTENSION\StockQuote\client3.php o
|
1/3/2010 4:49:26 PM
|
1
|
pdimi...@yahoo.com (DimG)
|
note 95439 added to install.windows.iis
If you encounter the following error using PHP under IIS: "Warning: session_start(): open .... failed", you need to grant "read/write" permissions to the "IUSR" on the directory listed in "session.save_path" (in "php.ini").
In Vista, do the following:
1. Right-click on folder defined in "session.save_path" in "php.ini" file. (ex: "C:\Windows\Temp")
2. Select "Properties"
3. Click "Security" tab
4. Click "Edit"
5. Click "Add"
6. Click "Advanced"
7. Click "Find Now"
8. Select "IUSR"
9. Click "OK"
10. Click "OK".
11. Under "Permissions for IUSR", ensure the following are checked:
|
1/3/2010 4:41:13 PM
|
0
|
...@osu1.php.net
|
note 95438 added to function.explode
kurze frage,
z.B.:
$string[1]=explode($string[1],";");
wie wird der string dann abgespeichert
($string[1][0] oda so??)
----
Server IP: 69.147.83.197
Probable Submitter: 91.206.225.139
----
Manual Page -- http://www.php.net/manual/en/function.explode.php
Edit -- https://master.php.net/note/edit/95438
Del: integrated -- https://master.php.net/note/delete/95438/integrated
Del: useless -- https://master.php.net/note/delete/95438/useless
Del: bad code -- https://master.php.net/note/delete/95438/bad+code
Del: spam -- https://master.php.net/note/delete/95438
|
1/3/2010 4:35:23 PM
|
1
|
...@osu1.php.net
|
#50644 [NEW]: Error on description
From: kapouetangels at free dot fr
Operating system: Unix
PHP version: 5.2.12
PHP Bug Type: Documentation problem
Bug description: Error on description
Description:
------------
Excuse my english, i'm french.
Function ob_get_contents :
In the description you say "Gets the contents of the output buffer without
clearing it."
But in the example you can show that the buffer was cleaned.
You contradict yourself.
Sincerely, Delphin.
In french :
Dans la description vous dites "Retourne le contenu du tampon de sortie
sans l'effacer."
Or dans l'examp
|
1/3/2010 4:35:09 PM
|
1
|
doc-b...@lists.php.net ("kapouetangels at free dot fr")
|
demand for registration
--0016e6d58f7f793f25047c44e055
Content-Type: text/plain; charset=ISO-8859-1
Hello
I wander the following when I try to register in your site "pear.php.net":
We can not allow you to continue since your IP has been marked suspicious
within the past 30 days by the http://projecthoneypot.org/, if that was done
in error then please contact pear-dev@lists.php.net as well as the
projecthoneypot people to resolve the issue
please I need this registration to be able to ask questions about the
package MDB2
And thank you in advance
--0016e6d58f7f793f25047c44e055--
|
1/3/2010 4:12:52 PM
|
1
|
khattar...@gmail.com (mohamed khattary)
|
Test results for 5.3.2RC1 [success]
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 0
Exts tested : 45
---------------------------------------------------------------------
Number of tests : 29 28
Tests skipped : 1 ( 3.4%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 0 ( 0.0%) ( 0.0%)
Expected fail : 0 ( 0.0%) ( 0.0%)
Tests passed : 28 ( 96.6%) (100.0%)
------------------------------------------------------------
|
1/3/2010 3:24:09 PM
|
0
|
nore...@php.net
|
note 95437 added to function.array-walk
You can use lambda function as a second parameter:
<?php
array_walk($myArray, function(&$value, $key){
// if you want to change array values then "&" before the $value is mandatory.
});
?>
Example (multiply positive values by two):
<?php
$myArray = array(1, 2, 3, 4, 5);
array_walk($myArray, function(&$value, $index){
if ($value > 0) $value *= 2;
});
?>
----
Server IP: 93.93.89.253
Probable Submitter: 194.220.83.177
----
Manual Page -- http://www.php.net/manual/en/function.array-walk.php
Edit -- https://master.php.net/note/edit/95437
Del: integrated --
|
1/3/2010 3:17:15 PM
|
0
|
arekand...@yandex.ru
|
note 95436 added to function.trim
Noticed strange behavior when trimming a directory off a file name starting with the letter "o".
<?php
$filePath = 'blog/2010/oh-this-is-an-example';
$section = 'blog/2010';
echo ltrim($filePath, $section);
?>
result: h-this-is-an-example
Does anyone know what "/o" is and why this is stripped?
Current fix:
<?php
$filePath = 'blog/2010/oh-this-is-an-example';
$filePath = str_replace('/o', '/O', $filePath); //FIX for filenames beginning with "o"
$section = 'blog/2010';
echo ltrim($filePath, $section);
?>
result: Oh-this-is-an-example
----
Server IP: 92.48.74.199
|
1/3/2010 3:06:17 PM
|
1
|
mash...@toshine.net
|
note 95435 added to function.method-exists
Hi,
Your first argument is not an optional one. You should place it at the end.
----
Server IP: 69.147.83.197
Probable Submitter: 81.57.139.130
----
Manual Page -- http://www.php.net/manual/en/function.method-exists.php
Edit -- https://master.php.net/note/edit/95435
Del: integrated -- https://master.php.net/note/delete/95435/integrated
Del: useless -- https://master.php.net/note/delete/95435/useless
Del: bad code -- https://master.php.net/note/delete/95435/bad+code
Del: spam -- https://master.php.net/note/delete/95435/spam
Del: non-english -- https://master.
|
1/3/2010 1:44:19 PM
|
1
|
miaseyeATgmailDOT...@osu1.php.net
|
note 95434 added to tutorial.firstpage
If you save your code as UTF-8, make sure that the BOM (EF BB BF) is not present as the first 3 bytes of the file otherwise it may interfere with the code if the PHP need to be run before any output (e.g. header()).
----
Server IP: 69.147.83.197
Probable Submitter: 119.247.149.171
----
Manual Page -- http://www.php.net/manual/en/tutorial.firstpage.php
Edit -- https://master.php.net/note/edit/95434
Del: integrated -- https://master.php.net/note/delete/95434/integrated
Del: useless -- https://master.php.net/note/delete/95434/useless
Del: bad code -- https://master.php.net
|
1/3/2010 1:43:17 PM
|
0
|
mikl...@gmail.com
|
#50643 [NEW]: Translation attributes for strings
From: daniel at dseichter dot de
Operating system: Linux, Windows
PHP version: 5.3.1
PHP Bug Type: Feature/Change Request
Bug description: Translation attributes for strings
Description:
------------
I developed for many years in progress 4GL (OpenEdge from progress
software) and in case of international projects, progress has the nice
feature of translation attributes like for example:
'text':U, 'text':T10, 'text':L10 and 'text':R10
The :U,:T10,... after the string is relevant for the translation within
the compiler of progress.
:U: untranslateable
:T
|
1/3/2010 1:26:18 PM
|
0
|
php-b...@lists.php.net ("daniel at dseichter dot de")
|
#50642 [NEW]: 'if(!$result)'
From: nakulgoud at gmail dot com
Operating system: Windows XP SP2
PHP version: 5.3.1
PHP Bug Type: *Database Functions
Bug description: 'if(!$result)'
Description:
------------
After exection of query where mysql returns an empty set then
'if($result)' returns true.It should return false.How to handle this
situation.
Reproduce code:
---------------
---
From manual page: function.mysql-fetch-row#Examples
---
$query="select name from user where id=42'";
$result=mysql_query($query);
if (!$result) {
echo 'Could not run query: ' . mysql_error();
|
1/3/2010 12:54:09 PM
|
1
|
php-b...@lists.php.net ("nakulgoud at gmail dot com")
|
note 95433 added to language.exceptions
If you are using exceptions, code which will store uncaught exceptions might be nice for you,
for example,
PDO throws an exception, but you thought that this is impossible, so you were not even thinking about using try{...}catch(...){...},
function exception_handler($exception) {
ob_start();
print_r($GLOBALS);
print_r($exception);
file_put_contents('exceptions.txt', ob_get_clean(). "\n",FILE_APPEND);
}
set_exception_handler('exception_handler');
to save a uncatched exception simply write
throw new Exception('error');
somewhere in code.
If we have a lot of exceptions, f
|
1/3/2010 12:43:20 PM
|
0
|
test30...@gmail.com
|
Notes Status, 22820 total
Following are the top 20 pages of the manual, sorted by the number
of user notes contributed. These sections could use a polish, those
notes represent 6.7% of the 22820 total user notes.
Notes | Page
-------+---------------------------------------------------------
96 | http://php.net/manual/en/function.date.php
90 | http://php.net/manual/en/function.curl-setopt.php
83 | http://php.net/manual/en/function.session-start.php
80 | http://php.net/manual/en/features.http-auth.php
80 | http://php.net/manual/en/function.strtotime.php
80 | http://php.net/manual/en/
|
1/3/2010 12:24:17 PM
|
0
|
php...@lists.php.net
|
[mirrors] Status information
Following is data gathered from the various mirrors. It is ordered by those
that are suspected to be dead, mirrors which are alive but have errors, and
finally the rest, sorted by hostname. The maintainers of inactive and outdated
mirror sites are automatically notified the same time, as this mail goes out.
View the mirror trouble guide here: http://php.net/mirroring-troubles.php
These mirrors are badly broken or no response was returned within the last three days:
docs.php.net
And now for the rest of the mirrors:
----------------------------------------------------------------
|
1/3/2010 12:23:16 PM
|
0
|
php-mirr...@lists.php.net
|
note 95432 added to features.file-upload.post-method
To Michael.
Have you tried it with "/home/username/public_html/uploaddir" ? i mean, by preceding the path with the root /.
Otherwise, "home/username/public_html/uploaddir" is the same as "./home/username/public_html/uploaddir".
Sorry for the inconveniences, but asking is free!
----
Server IP: 69.147.83.197
Probable Submitter: 84.124.216.190
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.post-method.php
Edit -- https://master.php.net/note/edit/95432
Del: integrated -- https://master.php.net/note/delete/95432/integrated
Del: useless -- https://
|
1/3/2010 9:54:16 AM
|
1
|
chic...@osu1.php.net
|
note 95431 added to function.imagick-coalesceimages
Where an example of use of this function. On one site has not found a way of application...
----
Server IP: 195.54.192.44
Probable Submitter: 94.180.131.201
----
Manual Page -- http://www.php.net/manual/en/function.imagick-coalesceimages.php
Edit -- https://master.php.net/note/edit/95431
Del: integrated -- https://master.php.net/note/delete/95431/integrated
Del: useless -- https://master.php.net/note/delete/95431/useless
Del: bad code -- https://master.php.net/note/delete/95431/bad+code
Del: spam -- https://master.php.net/note/delete/95431/spam
Del: non-english
|
1/3/2010 9:42:13 AM
|
1
|
it_is_g...@mail.ru
|
almacenar imagenes con php en mysql
--001517741218b127db047c3e8c60
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hola a todos.
Me gustaria recibir ayuda y asi conocer de que manera puedo insertar
imagenes con php a una bd mysql tambi=E9n luego mostrarlas ya he le=EDdo un
poco, usando campos BLOB en mysql, etc. pero quisiera algo mas claro y una
mejor orientaci=F3n sobre todo en PHP y conocer asi diferentes formas.
--=20
Agradecido.
Hahmael T=E2her.
--001517741218b127db047c3e8c60--
|
1/3/2010 8:39:57 AM
|
0
|
hahm...@gmail.com (hahmael)
|
Instll php on Window 2003 64Bit questions
Dear All,
If the OS is Windows 2003 64Bit (IIS)...
So, which php package must download and how to config it for running
with IIS ?
Due to I don't quite the online manual:
http://www.php.net/manual/en/install.windows.iis.php
Which installation mode is suitable of it ?
Thanks !
Edward.
|
1/3/2010 7:10:32 AM
|
3
|
edward...@ita.org.mo ("Edward S.P. Leong")
|
note 95430 added to function.preg-quote
preg_quote wasn't escaping the hyphen. According to a previous comment, this is a bug that has been fixed as of 5.3. Here is a function that fixes it:
<?php
function regex_quote ($str, $delim='/')
{
$quoted = preg_quote($str, $delim);
if ( version_compare(PHP_VERSION, '5.3.0', '<') )
$quoted = str_replace('-', '\\-', $quoted);
return $quoted;
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 71.238.254.92
----
Manual Page -- http://www.php.net/manual/en/function.preg-quote.php
Edit -- https://master.php.net/note/edit/95430
Del: integrated -- https://mas
|
1/3/2010 4:35:18 AM
|
0
|
corydotmawhorteratephectivedot...@osu1.php.net
|
#50641 [NEW]: Extension directory
From: twallis at mts dot net
Operating system: Windows
PHP version: 5.2.12
PHP Bug Type: Performance problem
Bug description: Extension directory
Description:
------------
In the php.ini files included in the download the extensions directly is
set as: extension_dir = "./"
This prevents php from working. It took me four hours of searching until
I tripped over documentation about extension_dir. Once I chenged the line
to read: extension_dir = "c:/php/ext" the problem was fixed.
Nowhere was it stated as part of the installation procedure to change this
|
1/3/2010 3:20:28 AM
|
1
|
php-b...@lists.php.net ("twallis at mts dot net")
|
RE: [PHP-INSTALL] Vista Install
This is a multi-part message in MIME format.
------_=_NextPart_001_01CA8C19.ED4539E4
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I know WAMP server works on Vista - maybe you should try that? Also, if =
you have Skype running, that could stop it form running too.
Jacob.
Save on overseas calls and SMS direct from your mobile. gotalk mobile =
lets you "Share the Moment" with family and friends overseas when and =
where you like. Call rates on our Straight Talk Plus plan start from =
just 1/2c per min (plus flagfall). Find out mor
|
1/3/2010 2:09:19 AM
|
0
|
Jacob.Bedn...@gotalk.com ("Jacob Bednarz; Graphic Designer")
|
note 95429 added to reserved.variables.globals
#!/usr/bin/php
<?php
unset($GLOBALS);
$GLOBALS['variable1'] = "string1";
$GLOBALS['variable2'] = "string2";
$GLOBALS['variable3'] = "string3";
$GLOBALS['variable4'] = "string4";
function testFunc () {
foreach (array_keys($GLOBALS) as $globy) {
$$globy = $GLOBALS[$globy];
}
echo <<<_END_
$variable1
$variable2
$variable3
$variable4
_END_;
}
echo testFunc();
?>
----
Server IP: 69.147.83.197
Probable Submitter: 24.94.245.84
----
Manual Page -- http://www.php.net/manual/en/reserved.variables.globals.php
Edit -- https://master.php.net/n
|
1/3/2010 2:07:24 AM
|
1
|
casey.hyperspire....@osu1.php.net ((at) (dot))
|
#50640 [NEW]: Documentation error
From: user at example dot com
Operating system: none
PHP version: 5.2.12
PHP Bug Type: Documentation problem
Bug description: Documentation error
Description:
------------
The explanation on this page is incorrect
Examples 3 and 4 are false
Reproduce code:
---------------
---
From manual page: function.sprintf#Parameters
---
%1$s is not a valid syntax , the correct syntax is %1\$s
a backslash is needed before $
--
Edit bug report at http://bugs.php.net/?id=50640&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.p
|
1/3/2010 1:19:38 AM
|
1
|
doc-b...@lists.php.net ("user at example dot com")
|
note 95428 added to function.sprintf
The explanation on this page is incorrect
Examples 3 and 4 are false
%1$s is not valid, the correct syntax is %1\$s
Examples corrected
Example #3 Argument swapping
<?php
$format = 'The %2\$s contains %1\$d monkeys';
printf($format, $num, $location);
?>
Example #4 Argument swapping
<?php
$format = 'The %\2$s contains %1\$d monkeys.
That\'s a nice %2\$s full of %1\$d monkeys.';
printf($format, $num, $location);
?>
----
Server IP: 217.71.118.186
Probable Submitter: 213.219.182.218
----
Manual Page -- http://www.php.net/manual/en/function.sprintf.php
Edit
|
1/3/2010 1:14:14 AM
|
1
|
Anonym...@osu1.php.net
|
note 95427 added to function.sprintf
L'explication sur cette page est incorrecte
les exemples 3 et 4 sont faux
%1$s n'est pas valide, la syntaxe correcte est %1\$
Exemples corrigés
Example #3 Argument swapping
<?php
$format = 'The %2\$s contains %1\$d monkeys';
printf($format, $num, $location);
?>
Example #4 Argument swapping
<?php
$format = 'The %\2$s contains %1\$d monkeys.
That\'s a nice %2\$s full of %1\$d monkeys.';
printf($format, $num, $location);
?>
----
Server IP: 217.71.118.186
Probable Submitter: 213.219.182.218
----
Manual Page -- http://www.php.net/manual/en/function.sprintf.php
|
1/3/2010 1:12:26 AM
|
1
|
Anonym...@osu1.php.net
|
note 95426 added to function.sprintf
L'explication sur cette page est incorrecte
les exemple 3 et 4 sont faux
%1$s n'est pas valide, la syntaxe correcte est %1\$
Exemples corrigés
Example #3 Argument swapping
<?php
$format = 'The %2\$s contains %1\$d monkeys';
printf($format, $num, $location);
?>
Example #4 Argument swapping
<?php
$format = 'The %\2$s contains %1\$d monkeys.
That\'s a nice %2\$s full of %1\$d monkeys.';
printf($format, $num, $location);
?>
----
Server IP: 217.71.118.186
Probable Submitter: 213.219.182.218
----
Manual Page -- http://www.php.net/manual/en/function.sprintf.php
|
1/3/2010 1:11:23 AM
|
1
|
Anonym...@osu1.php.net
|
note 95425 added to function.feof
Please note that feof() used with TCP-Connections, returns false as long as the connection is open.
It even returns false when there is no data available.
BTW: Using feof() with HTTP for a single request, you should always make sure that you set the HTTP-Header "Connection" to "close" and _not_ to "keep-alive".
----
Server IP: 212.124.37.9
Probable Submitter: 88.76.119.128
----
Manual Page -- http://www.php.net/manual/en/function.feof.php
Edit -- https://master.php.net/note/edit/95425
Del: integrated -- https://master.php.net/note/delete/95425/integrated
Del: useless --
|
1/3/2010 12:45:15 AM
|
0
|
jakic...@osu1.php.net
|
[ANNOUNCEMENT] xdebug-2.1.0beta1 (beta) Released.
The new PECL package xdebug-2.1.0beta1 (beta) has been released at http://pecl.php.net/.
Release notes
-------------
Sun, Jan 03, 2010 - xdebug 2.1.0beta1
+ Added features:
- Added error display collection and suppressions.
- Added the recording of headers being set in scripts.
- Added variable assignment tracing.
- Added the ability to turn of the default overriding of var_dump().
- Added "Scream" support, which disables the @ operator.
- Added a trace-file analysing script.
- Added support for debugging into phars.
- Added a default xdebug.ini. (Patch by Martin Schuhf
|
1/3/2010 12:33:22 AM
|
0
|
pecl-...@lists.php.net ("PECL Announce")
|
#50639 [NEW]: �ntroarse should be �ntoarse!
From: stavar dot ciprian at yahoo dot com
Operating system: win seven
PHP version: 5.3.2RC1
PHP Bug Type: Documentation problem
Bug description: �ntroarse should be �ntoarse!
Description:
------------
"Valorile �ntroarse" should be "Valorile �ntoarse"
Reproduce code:
---------------
---
From manual page: function.htmlentities#Valorile întroarse
---
--
Edit bug report at http://bugs.php.net/?id=50639&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50639&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bu
|
1/2/2010 11:37:35 PM
|
2
|
doc-b...@lists.php.net ("stavar dot ciprian at yahoo dot com")
|
#50638 [NEW]: User Stream $context is Not Populated
From: cullin dot wible at cullinwible dot com
Operating system: CentOS 5.4 x86_64
PHP version: 5.3.1
PHP Bug Type: *General Issues
Bug description: User Stream $context is Not Populated
Description:
------------
When creating a user stream using the streamWrapper format, the $context
variable is NOT set during the stream_open method call.
Reproduce code:
---------------
class TestStream {
public $context;
public function __construct() {
/* do nothing */
}
public function stream_open($path, $mode, $options, &$opened_path) {
echo "Open
|
1/2/2010 11:10:27 PM
|
2
|
php-b...@lists.php.net ("cullin dot wible at cullinwible dot com")
|
PECL/memcache 3.0.5 issues
Hi,
We accidentally got 3.0.5 onto a set of our servers. We have seen some
really odd behavior. It would seem we have some failing sets, but the
method never returns false. But, pulling the data back out on the next
run of the script (not immediately, could be minutes apart) yields old data.
Also, it would seem the servers are using a different hashing algorithm
than ones running 2.2.5. No options are set to have it use consistent
hashing. We use traditional hashing. But, getting from a server
running 2.2.5 does not yield the same data as the servers running 3.0.5.
W
|
1/2/2010 10:09:51 PM
|
0
|
br...@moonspot.net (Brian Moon)
|
note 95424 added to function.printer-open
HOW TO KICK CASHDRAWER OPEN
AFTER PRINTING .....
HELP OR SUGGEST ME PLEASE
THIS IS MY CODE FOR PRINTER 's COMMAND
if($all_info)
{
$lines = "";
$lines = explode("\r\n",$all_info);
$a="0";
$handle = printer_open("TMU-950 CUT");
printer_start_doc($handle, $orderno); printer_start_page($handle);
$font = printer_create_font($printer_font, 11, 11, 0, false, false, false, 0);
printer_select_font($handle, $font);
for($i=0; $i<count($lines); $i++)
{
printer_draw_text($handle, $lines[$i], 0, $a,5);
$a+=$line_height;
}
printer_delete_font($font); printer
|
1/2/2010 9:57:21 PM
|
1
|
sakd...@hotmail.com
|
note 95423 added to function.addslashes
<?php
// I wrote this function because I wanted to apply addslashes
// no earlier than at the query string, but I didn't want to
// have to escape each variable separately. Note that the
// query string must be enclosed in single quotes, to prevent
// the variables from being interpreted before they get passed
// to the function.
//
// The function will detect variables of the following forms:
// $variable
// $variable[0]
// $variable[string]
function escaped($query, $function = "addslashes") {
$e = preg_replace("|\\\$([a-zA-Z_][a-zA-Z0-9_]+)\[([^\]]*?)\]|e", "$function(
|
1/2/2010 9:50:32 PM
|
1
|
phpdotnet-sh...@pressbin.com
|
note 95422 added to function.mail
RFC-2822 is quite explicit, that "Though some message systems locally store messages in this format (which eliminates the need for translation between formats) and others use formats that differ from the one specified in this standard, local storage is outside of the scope of this standard."
And it is not just "some", but most Unix mailers choke when you try pipe CRLF instead of Unix line endings to "sendmail" command. PHP is using line endings as is, so you have better chances for success if you use Unix file format or line endings.
----
Server IP: 69.147.83.197
Probable Submitter: 6
|
1/2/2010 9:46:16 PM
|
0
|
rch+...@online.lt
|
note 95421 added to function.fgetcsv
I was free to modifie the class from jaimthorn
http://www.php.net/manual/de/function.fgetcsv.php#88616
My problem was/is that i´ve got many line breaks in my spreadsheet fields.
As result of this i had many line breaks in my csv-file, witch let php thinks, that it is a new coloum/line in the spreadsheet -> Epic Fail ! =)
So i modified the class a little
bit and maybe some one need it also like me.
Sry for my bad english.
Here it goes, only the changes you´ve to change
<?php
....
class PaperPear_CSVParser
{
....
private $header_index = '';
private $current_r
|
1/2/2010 9:23:49 PM
|
1
|
MarcoMosc...@osu1.php.net
|
[PHP] Regexp and Arrays
--001485f854c6e58ca9047c34e740
Content-Type: text/plain; charset=ISO-8859-1
I have been plauged for a few days by this, can anyone see a problem with
this function??
function printByType($string, $mode)
{
(string) $string;
$lengths = array(
'VARCHAR' => 10
, 'TINYINT' => 1
, 'TEXT' => 10
, 'DATE' => 7
, 'SMALLINT' => 1
, 'MEDIUMINT' => 2
, 'INT' => 2
, 'BIGINT' => 3
, 'FLOAT' => 4
, 'DOUBLE' => 4
, 'DECIMAL' => 4
, 'DATETIME' => 10
, 'TIMESTAMP' => 10
, 'TIME' => 7
, 'YEAR' => 4
, 'CHAR' => 7
,
|
1/2/2010 9:09:37 PM
|
0
|
allenmcc...@gmail.com (Allen McCabe)
|
Vista Install
This is a multi-part message in MIME format.
------=_NextPart_000_0023_01CA8BBA.BFB6DA10
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Have installed XAMPP. When I try to go to local host in browser I get the
unresolved host error message. Can anyone help? Apache and mySQL appear to
be working.
------=_NextPart_000_0023_01CA8BBA.BFB6DA10
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3
|
1/2/2010 8:49:00 PM
|
1
|
tompuchal...@starband.net ("Tom Puchalski")
|
Y! BOSS Search
Hi Hannes & Philip,
I have been researching Yahoo Boss, and it looks like there are a
number of ways we could improve on the existing search (I'm not
referring to the autocomplete search, but rather the full-page search).
I found an interesting article on Tech Crunch about how they
implemented Yahoo Boss:
http://www.techcrunch.com/2008/11/26/techcrunchs-new-search-engine-powered-by-yahoo-boss/
One of the key things that they do is manually feed data to Yahoo via
XML. This allows them to associate arbitrary metadata with each page.
That way they can offer advance search
|
1/2/2010 7:45:14 PM
|
0
|
ste...@ambitious.ca (Stewart Lord)
|
note 95420 added to function.rand
Another way to create an array of random numbers where there are no identical numbers.
($n = number of random numbers to return in the array
$min = minimum number
$max = maximum number)
<?php
function uniqueRand($n, $min = 0, $max = null)
{
if($max === null)
$max = getrandmax();
$array = range($min, $max);
$return = array();
$keys = array_rand($array, $n);
foreach($keys as $key)
$return[] = $array[$key];
return $return;
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 72.208.240.199
----
Manual Page -- http://www.php.net/manual/en/function.ra
|
1/2/2010 7:11:25 PM
|
0
|
JohnG...@osu1.php.net
|
array position isfirst / islast / valid ?
Hello
Would it be possible to add functions to know the relative internal array position?
I found "[PHP-DEV] RFC array functions" from 2006, but nothing really changed.
The need to use next, prev in combination is ridiculous compared to a clean array_hasmore or array_pos_islast, as the internals already know this.
To get an array_valid_position or array_pos_isvalid wouldn't be bad either.
So would it possible to introduce:
array_pos_isfirst(& $array)
array_pos_islast(& $array)
array_pos_isvalid(& $array)
Best regards
Oskar Eisemuth
|
1/2/2010 4:47:10 PM
|
3
|
patch...@gmail.com (Oskar Eisemuth)
|
#50637 [NEW]: Misspel on english online documentation
From: pnoexz at gmail dot com
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Translation problem
Bug description: Misspel on english online documentation
Description:
------------
http://php.net/manual/en/language.oop5.serialization.php
In the second paragraph, before the first example, you can read this:
If you want to be able to unserialize this in another file, an object of
class A, the definition of class A must be _prest ent in_ in that file
first.
This doesnt seem to be a one-mirror problem.
--
Edit bug report at http:/
|
1/2/2010 4:13:13 PM
|
3
|
doc-b...@lists.php.net ("pnoexz at gmail dot com")
|
note 95419 added to function.array-intersect
Actually array_intersect finds the dublicate values, here is my approach which is 5 times faster than built-in function array_intersect().. Give a try..
function my_array_intersect($a,$b)
{
for($i=0;$i<sizeof($a);$i++)
{
$m[]=$a[$i];
}
for($i=0;$i<sizeof($a);$i++)
{
$m[]=$b[$i];
}
sort($m);
$get=array();
for($i=0;$i<sizeof($m);$i++)
{
if($m[$i]==$m[$i+1])
$get[]=$m[$i];
}
return $get;
}
Barış ÇUHADAR
189780@gmai
|
1/2/2010 3:13:16 PM
|
0
|
189...@gmail.com
|
#50636 [NEW]: MySQLi_Result sets values before calling constructor
From: stein at rhrk dot uni-kl dot de
Operating system:
PHP version: 5.2.12
PHP Bug Type: MySQLi related
Bug description: MySQLi_Result sets values before calling constructor
Description:
------------
MySQLi_Result::fetch_object sets properties before calling the
constructor, see BUG #49521
The behavior is similar to the one in BUG #49521 which has been fixed as
of PHP 5.2.12.
Note: It should be considered that this behavior may be not bug at all.
Calling the constructor BEFORE setting the properties (as done in BUG
#49521) leaves no possibility to wor
|
1/2/2010 3:03:49 PM
|
1
|
php-b...@lists.php.net ("stein at rhrk dot uni-kl dot de")
|
#50635 [NEW]: Parse error occures if '?>' is put into a single-string comment
From: sergio at js-client dot com
Operating system:
PHP version: 5.3.1
PHP Bug Type: *General Issues
Bug description: Parse error occures if '?>' is put into a single-string comment
Description:
------------
Parse error (as unexpected $end) occures if '?>' is put into a
single-string comment
Reproduce code:
---------------
<?php
function comments_test() {
//?>
//preg_match_all('~(?>\s)=~s', $str);
}
?>
Expected result:
----------------
No parsing errors
Actual result:
--------------
PHP Parse error: syntax error, un
|
1/2/2010 2:14:22 PM
|
1
|
php-b...@lists.php.net ("sergio at js-client dot com")
|
Prueba para ver si me funciona las news en mi e-mail
--001485f7bf187bed70047c2efcf6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Perdonad por mandar este mensaje de prueba, pero tengo problemas, ya que no
me llegan los mensajes a mi e-mail.
Un saludo a todos y feliz a=F1o nuevo.
--001485f7bf187bed70047c2efcf6--
|
1/2/2010 2:05:53 PM
|
0
|
jesusruiz2...@gmail.com (=?ISO-8859-1?B?SmVz+nMgR2FyY+1h?=)
|
note 95418 added to mongocollection.remove
To remove a document based on its ID, you need to ensure that you pass the ID as a MongoID object rather than just a string:
<?php
$id = '4b3f272c8ead0eb19d000000';
// will not work:
$collection->remove(array('_id' => $id), true);
// will work:
$collection->remove(array('_id' => new MongoId($id)), true);
?>
----
Server IP: 69.147.83.197
Probable Submitter: 78.149.181.66
----
Manual Page -- http://www.php.net/manual/en/mongocollection.remove.php
Edit -- https://master.php.net/note/edit/95418
Del: integrated -- https://master.php.net/note/delete/95418/integrated
Del:
|
1/2/2010 1:42:23 PM
|
0
|
DavidWin...@osu1.php.net
|
#50634 [NEW]: 'Core' introduced in 5.3.1
From: anthon dot pang at gmail dot com
Operating system: Linux or Windows
PHP version: 5.3.1
PHP Bug Type: Documentation problem
Bug description: 'Core' introduced in 5.3.1
Description:
------------
Changelog should read:
Version Description
5.3.1 Core constants are categorized under Core, previously mhash.
5.3.0 Core constants are categorized under mhash, previously internal.
5.0.0 The categorize parameter was added.
Reproduce code:
---------------
---
From manual page: function.get-defined-constants#Changelog
---
--
Edit bug report
|
1/2/2010 12:20:41 PM
|
6
|
doc-b...@lists.php.net ("anthon dot pang at gmail dot com")
|
note 95417 added to function.stream-socket-server
I had a horrible time trying to shove a TLS socket into an existing TCP program. It appears to me that functions like stream_socket_recvfrom and stream_socket_sendto don't work with TLS/SSL (which may be obvious to PHP gurus...sorry if it is, I'm in a bit over my head here).
In the end I ended up doing all my IO with fread() and fwrite(), which solved all my problems.
----
Server IP: 69.147.83.197
Probable Submitter: 76.179.160.225
----
Manual Page -- http://www.php.net/manual/en/function.stream-socket-server.php
Edit -- https://master.php.net/note/edit/95417
Del: integrated
|
1/2/2010 11:34:24 AM
|
0
|
pete...@me.com
|
[ANNOUNCEMENT] tokyo_tyrant-0.2.0 (beta) Released.
The new PECL package tokyo_tyrant-0.2.0 (beta) has been released at http://pecl.php.net/.
Release notes
-------------
- Warnings instead of fatal errors in session handler
- Added TokyoTyrantIterator
- Added getIterator method to TokyoTyrant and TokyoTyrantTable classes
Package Info
-------------
tokyo_tyrant extension provides object oriented API for communicating
with Tokyo Tyrant key-value store.
This extension requires Tokyo Cabinet, Tokyo Tyrant and PHP version 5.2.0+.
Related Links
-------------
Package home: http://pecl.php.net/package/tokyo_tyrant
Changelog: ht
|
1/2/2010 10:57:32 AM
|
0
|
pecl-...@lists.php.net ("PECL Announce")
|
#50633 [NEW]: Add constant FILTER_EXCEPTION_ON_FAILURE to throw exceptions
From: gmblar+php at gmail dot com
Operating system: all
PHP version: 5.3.1
PHP Bug Type: Filter related
Bug description: Add constant FILTER_EXCEPTION_ON_FAILURE to throw exceptions
Description:
------------
Add constant FILTER_EXCEPTION_ON_FAILURE to throw meaningful exceptions
why filter fails
Reproduce code:
---------------
<?php
$foo = filter_input(INPUT_GET, 'foo', FILTER_VALIDATE_INT, array(
'flags' => FILTER_REQUIRE_SCALAR + FILTER_EXCEPTION_ON_FAILURE,
'options' => array(
'min_range' => 5,
'max_range' => 42
)
))
|
1/2/2010 9:47:46 AM
|
0
|
php-b...@lists.php.net ("gmblar+php at gmail dot com")
|
#50632 [NEW]: Return default value if var is undefined
From: gmblar+php at gmail dot com
Operating system: all
PHP version: 5.3.1
PHP Bug Type: Filter related
Bug description: Return default value if var is undefined
Description:
------------
if $_GET['foo'] is undefined, filter functions return NULL instead of
the default value defined in options.
Reproduce code:
---------------
<?php
$foo = filter_input(INPUT_GET, 'foo', FILTER_VALIDATE_INT, array(
'flags' => FILTER_REQUIRE_SCALAR,
'options' => array(
'default' => 23,
'min_range' => 5,
'max_range' => 42
)
));
|
1/2/2010 9:38:41 AM
|
1
|
php-b...@lists.php.net ("gmblar+php at gmail dot com")
|
PHP5.3, php.ini and ~E_DEPRECATED
Has anyone figured out a way to turn off E_DEPRECATED errors in php.ini
under PHP5.3.x? It appears that php ignores the php.ini setting that
attempts to turn off those messages. I've seen this reported as a bug,
but with it resolved as "bogus" or "I am pretty sure this is fixed" but
no definitive notice that it has actually been fixed or assigned to be
fixed.
--
Earl Cooley III (shiva@io.com)
|
1/2/2010 9:33:17 AM
|
1
|
sh...@io.com (Earl Cooley III)
|
mod rewrite
--0016e64b970e641091047c29c616
Content-Type: text/plain; charset=ISO-8859-1
hi
i am using a cms which requires mod_rewrite to be enabled for seo urls
in the wamp that i use in my local machine in the httpd.conf file i have
this line and removed the comment
LoadModule rewrite_module modules/mod_rewrite.so
when i view the phpinfo i can see that mod_rewrite is on in the Loaded
Modules
i am guessing that my hosting might not allow to edit the httpd.conf file so
i tried adding the following to the .htaccess which is in the root directory
Options +FollowSymLinks
RewriteEngine
|
1/2/2010 7:52:50 AM
|
1
|
sudhakarar...@gmail.com (Sudhakar)
|
#50631 [NEW]: strtotime() gives incorrect output for certain date
From: barlow at fhtsolutions dot com
Operating system: Linux or XP
PHP version: 5.2.12
PHP Bug Type: Date/time related
Bug description: strtotime() gives incorrect output for certain date
Description:
------------
strtotime() reports an incorrect value for a particular date: 2010-03-15
It seems to think that this day has 23 hours!
Reproduce code:
---------------
---
From manual page: function.strtotime#Description
---
<?php
$a = strtotime("2010-03-14");
$b = strtotime("2010-03-15");
echo "Number of hours difference: ".(($b-$a)/3600)."<br />";
/
|
1/2/2010 6:04:30 AM
|
1
|
php-b...@lists.php.net ("barlow at fhtsolutions dot com")
|
note 95416 added to function.func-get-arg
A much more efficient way then the example shown by beta3designs [at] gmail [dot] com
<?php
function avg(){
return array_sum(func_get_args()) / func_num_args();
}
echo sprintf("%.2f", avg(2,1,2,1,3,4,5,1,3,6));
?>
----
Server IP: 212.124.37.9
Probable Submitter: 87.79.61.219
----
Manual Page -- http://www.php.net/manual/en/function.func-get-arg.php
Edit -- https://master.php.net/note/edit/95416
Del: integrated -- https://master.php.net/note/delete/95416/integrated
Del: useless -- https://master.php.net/note/delete/95416/useless
Del: bad code -- https://maste
|
1/2/2010 4:11:15 AM
|
1
|
jackfoxm...@gmail.com
|
[ANNOUNCEMENT] Services_JSON-1.0.2 (stable) Released.
The new PEAR package Services_JSON-1.0.2 (stable) has been released at http://pear.php.net/.
Release notes
-------------
Fixed Bug #16908 - When locale was set, and it changed the way numbers are formated, the output for floats was broken
Package Info
------------
JSON (JavaScript Object Notation, http://json.org) is a lightweight data-interchange format.
It is easy for humans to read and write. It is easy for machines to parse and generate.
It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999.
This feature ca
|
1/2/2010 4:09:32 AM
|
0
|
pear-...@lists.php.net ("PEAR Announce")
|
note 95415 added to class.errorexception
As noted below, it's important to realize that unless caught, any Exception thrown will halt the script. So converting EVERY notice, warning, or error to an ErrorException will halt your script when something harmlesss like E_USER_NOTICE is triggered.
It seems to me the best use of the ErrorException class is something like this:
<?php
function custom_error_handler($number, $string, $file, $line, $context)
{
// Determine if this error is one of the enabled ones in php config (php.ini, .htaccess, etc)
$error_is_enabled = (bool)($number & ini_get('error_reporting') );
// -- FA
|
1/2/2010 4:03:24 AM
|
0
|
triplepo...@gmail.com
|
note 95414 added to function.shuffle
Here is a quick function I wrote that generates a random password and uses shuffle() to easily shuffle the order.
public function randPass($upper = 3, $lower = 3, $numeric = 3, $other = 2) {
//we need these vars to create a password string
$passOrder = Array();
$passWord = '';
//generate the contents of the password
for ($i = 0; $i < $upper; $i++) {
$passOrder[] = chr(rand(65, 90));
}
for ($i = 0; $i < $lower; $i++) {
$passOrder[] = chr(rand(97, 122));
}
for ($i = 0; $i < $numeric; $i++) {
$passOrder[] = chr(rand(48,
|
1/2/2010 2:46:21 AM
|
1
|
ty...@CompLangs.com
|
note 95413 added to function.fread
Note that fread() returns an empty string if you try to read beyond EOF, while the manual states otherwise ("Returns [...] FALSE on failure."). This e. g. happens with empty files (0 bytes long).
This does not look like a bug in PHP's fread() implementation to me, but rather like a documentation bug. The manpage for the C function fread() states:
> fread() does not distinguish between end-of-file and error, and callers must use feof(3) and ferror(3) to determine which occurred.
It also says:
> If an error occurs, or the end-of-file is reached, the return value is a short item count (or z
|
1/2/2010 1:16:20 AM
|
0
|
Tb...@osu1.php.net
|
[PHP] Arrays & Regexp - Help Requested
--00504502b1c1d66c69047c22dee6
Content-Type: text/plain; charset=ISO-8859-1
Happy New Year, here's my first question of the year (and it's only 15 hours
into the year!).
I am creating a small database management tool for my a website (my work IP
blocks my access to PhpMyAdmin) and I don't want to install any additional
software.
I am working on adding rows and need to format the input boxes properly (ie.
VARCHAR needs an text input, TEXT needs a textarea input). Using a mysql
query I can determine the data types for each field. I have a function that
uses this information to re
|
1/1/2010 11:38:36 PM
|
1
|
allenmcc...@gmail.com (Allen McCabe)
|
note 95412 added to function.strtr
For the multibyte function (mb_strtr) I use the mbfunctions library:
http://code.google.com/p/mbfunctions/
It has the function mb_strip_accents also.
----
Server IP: 80.64.47.13
Probable Submitter: 95.214.45.176
----
Manual Page -- http://www.php.net/manual/en/function.strtr.php
Edit -- https://master.php.net/note/edit/95412
Del: integrated -- https://master.php.net/note/delete/95412/integrated
Del: useless -- https://master.php.net/note/delete/95412/useless
Del: bad code -- https://master.php.net/note/delete/95412/bad+code
Del: spam -- https://master.php.
|
1/1/2010 11:16:20 PM
|
1
|
...@osu1.php.net
|
note 95411 added to function.trim
If you need the multibyte function (mb_trim) check out the mbfunctions library:
http://code.google.com/p/mbfunctions/
----
Server IP: 80.64.47.13
Probable Submitter: 95.214.45.176
----
Manual Page -- http://www.php.net/manual/en/function.trim.php
Edit -- https://master.php.net/note/edit/95411
Del: integrated -- https://master.php.net/note/delete/95411/integrated
Del: useless -- https://master.php.net/note/delete/95411/useless
Del: bad code -- https://master.php.net/note/delete/95411/bad+code
Del: spam -- https://master.php.net/note/delete/95411/spam
Del: non
|
1/1/2010 11:13:21 PM
|
1
|
...@osu1.php.net
|
note 95410 added to function.array-values
Simple array_flatten that actually works...
takes a multi-dimensional array, and flattens into a zero indexed array.
function array_flatten($array, $flat = false)
{
if (!is_array($array) || empty($array)) return '';
if (empty($flat)) $flat = array();
foreach ($array as $key => $val) {
if (is_array($val)) $flat = array_flatten($val, $flat);
else $flat[] = $val;
}
return $flat;
}
----
Server IP: 69.147.83.197
Probable Submitter: 97.117.123.20
----
Manual Page -- http://www.php.net/manual/en/function.array-values.php
Edit --
|
1/1/2010 10:31:16 PM
|
1
|
cmat
|
#50630 [NEW]: Modulo on strings/floats won't work on huge numbers
From: bananen-joe at bananen-joe dot de
Operating system: Windows XP SP3
PHP version: 5.3.1
PHP Bug Type: Scripting Engine problem
Bug description: Modulo on strings/floats won't work on huge numbers
Description:
------------
If you use the modulo operator on huge numbers (which cannot be converted
into integers) you get a strange result.
Even not error is reported.
Reproduce code:
---------------
error_reporting(E_ALL);
$number = '9999999990';
echo "$number % 10 = ", $number % 10, "<br>";
$number = 9999999990;
echo "$number % 10 = ", $number % 10, "<b
|
1/1/2010 10:25:25 PM
|
0
|
php-b...@lists.php.net ("bananen-joe at bananen-joe dot de")
|
note 95409 added to mysqli.installation
how to install it in VPS server running CentOS
i add
--with-mysqli=/usr/lib/mysql
and restart apache but it didnot work ??
any help
----
Server IP: 69.147.83.197
Probable Submitter: 41.232.98.77
----
Manual Page -- http://www.php.net/manual/en/mysqli.installation.php
Edit -- https://master.php.net/note/edit/95409
Del: integrated -- https://master.php.net/note/delete/95409/integrated
Del: useless -- https://master.php.net/note/delete/95409/useless
Del: bad code -- https://master.php.net/note/delete/95409/bad+code
Del: spam -- https://master.php.net/note/de
|
1/1/2010 10:01:24 PM
|
1
|
A7...@osu1.php.net
|
#50629 [NEW]: Invalid CRT parameters detected in stream_get_contents()
From: viaujoc at videotron dot ca
Operating system: Win2003
PHP version: 5.3.1
PHP Bug Type: Streams related
Bug description: Invalid CRT parameters detected in stream_get_contents()
Description:
------------
When using stream_get_contents() without the $maxlength argument, the
warning "Warning: Invalid CRT parameters detected" is showing up. This only
happens in PHP 5.3.1, it works correctly in PHP 5.2.12.
Adding a very large value to $maxlength, even much larger than the actual
content to be retrieve makes the warning go away.
Reproduce code:
--------
|
1/1/2010 7:45:06 PM
|
1
|
php-b...@lists.php.net ("viaujoc at videotron dot ca")
|