<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-140</id>
	<title>Nabble - PHP - General</title>
	<updated>2009-11-09T04:50:42Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/PHP---General-f140.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PHP---General-f140.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26265949</id>
	<title>Re: Multilingual website, texts in external JavaScript problem</title>
	<published>2009-11-09T04:50:42Z</published>
	<updated>2009-11-09T04:50:42Z</updated>
	<author>
		<name>Phpster</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;On Nov 9, 2009, at 1:04 AM, leledumbo &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265949&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;leledumbo_cool@...&lt;/a&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I need to create a multilingual website and my framework already &amp;nbsp;
&lt;br&gt;&amp;gt; gives me
&lt;br&gt;&amp;gt; that facility. However, I also use JavaScript quite extensively and &amp;nbsp;
&lt;br&gt;&amp;gt; since
&lt;br&gt;&amp;gt; XHTML 1.0 Strict doesn't allow inline script, I must use &amp;nbsp;
&lt;br&gt;&amp;gt; external .js file.
&lt;br&gt;&amp;gt; The problem is in these scripts, there are strings that needs to be
&lt;br&gt;&amp;gt; translated as well. How can I make PHP parse these scripts as well? &amp;nbsp;
&lt;br&gt;&amp;gt; Or are
&lt;br&gt;&amp;gt; there alternative approaches?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Multilingual-website%2C-texts-in-external-JavaScript-problem-tp26261666p26261666.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Multilingual-website%2C-texts-in-external-JavaScript-problem-tp26261666p26261666.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the PHP - General mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;I use a standard error code ( error.2510 ) treating it as the js array &amp;nbsp;
&lt;br&gt;key, and then call the correct language file with translated value
&lt;br&gt;&lt;br&gt;Bastien
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multilingual-website%2C-texts-in-external-JavaScript-problem-tp26261666p26265949.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26265427</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-09T04:11:09Z</published>
	<updated>2009-11-09T04:11:09Z</updated>
	<author>
		<name>Tim Thorburn</name>
	</author>
	<content type="html">Tony Marston wrote:
&lt;br&gt;&amp;gt; How many hosting companies write to all their account holders to ask 
&lt;br&gt;&amp;gt; permission before upgrading PHP, not just from 4 to 5, but all the releases 
&lt;br&gt;&amp;gt; in between? Very few of them, if any, in my experience.
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;I've no idea what horrible hosting companies you've had experiences 
&lt;br&gt;with, however all of the companies I've used in the last few years have 
&lt;br&gt;had an option to move back and forth between PHP4 and PHP5 in the event 
&lt;br&gt;that certain scrips/frameworks/apps/whatever required one version over 
&lt;br&gt;the other. &amp;nbsp;What makes you think these companies won't do the same thing 
&lt;br&gt;when they finally decide to add PHP6 to their servers? &amp;nbsp;I doubt very 
&lt;br&gt;many reputable hosting companies would simply upgrade to the latest 
&lt;br&gt;flavor of PHP/Apache/MySQL/anything simply because it was released this 
&lt;br&gt;morning without doing ample internal testing; if you or your clients are 
&lt;br&gt;using one that does this - I'd advise you look elsewhere.
&lt;br&gt;&lt;br&gt;Whenever PHP6 reaches a stable release build, it will still be quite 
&lt;br&gt;some time before its offered as an option to any mainstream shared 
&lt;br&gt;hosting service - this should leave you ample time to adapt to incoming 
&lt;br&gt;changes. &amp;nbsp;Failing that, you always have the option of purchasing your 
&lt;br&gt;own server or VPS from any number of hosts to configure as you see fit. &amp;nbsp;
&lt;br&gt;Or you can explain your moral outrage to potential clients detailing 
&lt;br&gt;your refusal to work because you disagree with a proposed change that 
&lt;br&gt;won't see the light of day for years to come; your call.
&lt;br&gt;&lt;br&gt;Incessant whining under the guise of expressing your own opinion isn't 
&lt;br&gt;going to make everything better. &amp;nbsp;Sorry.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26265427.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26265352</id>
	<title>Re: Hash function</title>
	<published>2009-11-09T04:05:54Z</published>
	<updated>2009-11-09T04:05:54Z</updated>
	<author>
		<name>Ali Asghar Toraby Parizy</name>
	</author>
	<content type="html">Ok, thanks
&lt;br&gt;but how can i create serial number that nobody can guess it. for example
&lt;br&gt;when i use sha1() every body can examine it too! and so they can create it
&lt;br&gt;themselves!
&lt;br&gt;what strategy is useful to protect license?
&lt;br&gt;I think it is better to add a specific hidden string to request code,
&lt;br&gt;instead of user name that is known for a probable jobber user.
&lt;br&gt;what do you think about it?
&lt;br&gt;&lt;br&gt;On Mon, Nov 9, 2009 at 3:09 PM, John Black &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265352&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;spam@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Ali Asghar Toraby Parizy wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; hi friends
&lt;br&gt;&amp;gt;&amp;gt; I need a hash function to build a Unique serial number by mixing a request
&lt;br&gt;&amp;gt;&amp;gt; code and a user name
&lt;br&gt;&amp;gt;&amp;gt; request codes are strings like this: They are literally HEX codes of MAC
&lt;br&gt;&amp;gt;&amp;gt; mac
&lt;br&gt;&amp;gt;&amp;gt; addresses.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;002314EFD000544AB05345300045675609782123C3254B312123D12312EE13123F123D123123E00000000E00000000E0000000E0000000E0000000E00000000E00000000&amp;quot;
&lt;br&gt;&amp;gt;&amp;gt; i want to create a function that mix together this request code with user
&lt;br&gt;&amp;gt;&amp;gt; name that user entered and create new serial number.
&lt;br&gt;&amp;gt;&amp;gt; What implications i have to satisfy to create such hash function in php?
&lt;br&gt;&amp;gt;&amp;gt; Thanks for any suggestion
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How about using sha1 to hash your string. If the data is unique then the
&lt;br&gt;&amp;gt; hash will be unique as well.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; $string = $request_code.$user_name;
&lt;br&gt;&amp;gt; $hash = sha1($string);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; John
&lt;br&gt;&amp;gt; Jeder hat soviel Recht, wie er Macht hat.
&lt;br&gt;&amp;gt; [Spinoza]
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hash-function-tp26264576p26265352.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26265384</id>
	<title>Re: Hash function</title>
	<published>2009-11-09T04:05:54Z</published>
	<updated>2009-11-09T04:05:54Z</updated>
	<author>
		<name>Ashley Sheridan-3</name>
	</author>
	<content type="html">On Mon, 2009-11-09 at 15:35 +0330, Ali Asghar Toraby Parizy wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Ok, thanks
&lt;br&gt;&amp;gt; but how can i create serial number that nobody can guess it. for example
&lt;br&gt;&amp;gt; when i use sha1() every body can examine it too! and so they can create it
&lt;br&gt;&amp;gt; themselves!
&lt;br&gt;&amp;gt; what strategy is useful to protect license?
&lt;br&gt;&amp;gt; I think it is better to add a specific hidden string to request code,
&lt;br&gt;&amp;gt; instead of user name that is known for a probable jobber user.
&lt;br&gt;&amp;gt; what do you think about it?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Mon, Nov 9, 2009 at 3:09 PM, John Black &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265384&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;spam@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Ali Asghar Toraby Parizy wrote:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; hi friends
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I need a hash function to build a Unique serial number by mixing a request
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; code and a user name
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; request codes are strings like this: They are literally HEX codes of MAC
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; mac
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; addresses.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;quot;002314EFD000544AB05345300045675609782123C3254B312123D12312EE13123F123D123123E00000000E00000000E0000000E0000000E0000000E00000000E00000000&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; i want to create a function that mix together this request code with user
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; name that user entered and create new serial number.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; What implications i have to satisfy to create such hash function in php?
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Thanks for any suggestion
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; How about using sha1 to hash your string. If the data is unique then the
&lt;br&gt;&amp;gt; &amp;gt; hash will be unique as well.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; $string = $request_code.$user_name;
&lt;br&gt;&amp;gt; &amp;gt; $hash = sha1($string);
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; John
&lt;br&gt;&amp;gt; &amp;gt; Jeder hat soviel Recht, wie er Macht hat.
&lt;br&gt;&amp;gt; &amp;gt; [Spinoza]
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; &amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;The crypt() function in PHP offers a one-way encryption, so
&lt;br&gt;theoretically, it would be too difficult to work out backwards (not
&lt;br&gt;impossible, but would need a fair bit of computing power to figure it
&lt;br&gt;out!)
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ash
&lt;br&gt;&lt;a href=&quot;http://www.ashleysheridan.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ashleysheridan.co.uk&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hash-function-tp26264576p26265384.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26265170</id>
	<title>Re: Multilingual website, texts in external JavaScript problem</title>
	<published>2009-11-09T03:54:51Z</published>
	<updated>2009-11-09T03:54:51Z</updated>
	<author>
		<name>Peter Ford-4</name>
	</author>
	<content type="html">leledumbo wrote:
&lt;br&gt;&amp;gt; I need to create a multilingual website and my framework already gives me
&lt;br&gt;&amp;gt; that facility. However, I also use JavaScript quite extensively and since
&lt;br&gt;&amp;gt; XHTML 1.0 Strict doesn't allow inline script, I must use external .js file.
&lt;br&gt;&amp;gt; The problem is in these scripts, there are strings that needs to be
&lt;br&gt;&amp;gt; translated as well. How can I make PHP parse these scripts as well? Or are
&lt;br&gt;&amp;gt; there alternative approaches?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;I don't see why you can't use inline script in XHTML 1.0 Strict: just put the
&lt;br&gt;script in CDATA sections, like
&lt;br&gt;&lt;br&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
&lt;br&gt;/*&amp;lt;![CDATA[*/
&lt;br&gt;&lt;br&gt;// Inline javascript here
&lt;br&gt;&lt;br&gt;/*]]&amp;gt;*/
&lt;br&gt;&amp;lt;/script&amp;gt;
&lt;br&gt;&lt;br&gt;That seems to validate fine in XHTML 1.0 Strict for me...
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Peter Ford &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;phone: 01580 893333
&lt;br&gt;Developer &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fax: &amp;nbsp; 01580 893399
&lt;br&gt;Justcroft International Ltd., Staplehurst, Kent
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multilingual-website%2C-texts-in-external-JavaScript-problem-tp26261666p26265170.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26265060</id>
	<title>Re: Hash function</title>
	<published>2009-11-09T03:44:53Z</published>
	<updated>2009-11-09T03:44:53Z</updated>
	<author>
		<name>Ashley Sheridan-3</name>
	</author>
	<content type="html">On Mon, 2009-11-09 at 12:39 +0100, John Black wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Ali Asghar Toraby Parizy wrote:
&lt;br&gt;&amp;gt; &amp;gt; hi friends
&lt;br&gt;&amp;gt; &amp;gt; I need a hash function to build a Unique serial number by mixing a request
&lt;br&gt;&amp;gt; &amp;gt; code and a user name
&lt;br&gt;&amp;gt; &amp;gt; request codes are strings like this: They are literally HEX codes of MAC mac
&lt;br&gt;&amp;gt; &amp;gt; addresses.
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;002314EFD000544AB05345300045675609782123C3254B312123D12312EE13123F123D123123E00000000E00000000E0000000E0000000E0000000E00000000E00000000&amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; i want to create a function that mix together this request code with user
&lt;br&gt;&amp;gt; &amp;gt; name that user entered and create new serial number.
&lt;br&gt;&amp;gt; &amp;gt; What implications i have to satisfy to create such hash function in php?
&lt;br&gt;&amp;gt; &amp;gt; Thanks for any suggestion
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; How about using sha1 to hash your string. If the data is unique then the 
&lt;br&gt;&amp;gt; hash will be unique as well.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $string = $request_code.$user_name;
&lt;br&gt;&amp;gt; $hash = sha1($string);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; John
&lt;br&gt;&amp;gt; Jeder hat soviel Recht, wie er Macht hat.
&lt;br&gt;&amp;gt; [Spinoza]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;I'm not sure you can guarantee uniqueness, but you can say with a high
&lt;br&gt;degree of certainty that it's extremely unlikely to not be unique! 
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ash
&lt;br&gt;&lt;a href=&quot;http://www.ashleysheridan.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ashleysheridan.co.uk&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hash-function-tp26264576p26265060.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264982</id>
	<title>Re: Paypal transaction</title>
	<published>2009-11-09T03:41:50Z</published>
	<updated>2009-11-09T03:41:50Z</updated>
	<author>
		<name>Bugzilla from spam@network-technologies.org</name>
	</author>
	<content type="html">Ali Asghar Toraby Parizy wrote:
&lt;br&gt;&amp;gt; Hi friends
&lt;br&gt;&amp;gt; I have an application I want to sell it in my website
&lt;br&gt;&amp;gt; How can i use PayPal to marketing? i understand php so i am eager to write
&lt;br&gt;&amp;gt; some php code, myself.
&lt;br&gt;&amp;gt; How can i implement a php code to use PayPal gateway
&lt;br&gt;&amp;gt; Thanks for any help
&lt;br&gt;&lt;br&gt;Create a PayPal developer account here &lt;a href=&quot;https://developer.paypal.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://developer.paypal.com/&lt;/a&gt;&lt;br&gt;They will provide you with sample code and access to the sandbox so you 
&lt;br&gt;can test your payment scripts without risking real money.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John
&lt;br&gt;No Victim, No Crime
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Paypal-transaction-tp26264772p26264982.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264960</id>
	<title>Re: Hash function</title>
	<published>2009-11-09T03:39:37Z</published>
	<updated>2009-11-09T03:39:37Z</updated>
	<author>
		<name>Bugzilla from spam@network-technologies.org</name>
	</author>
	<content type="html">Ali Asghar Toraby Parizy wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; hi friends
&lt;br&gt;&amp;gt; I need a hash function to build a Unique serial number by mixing a request
&lt;br&gt;&amp;gt; code and a user name
&lt;br&gt;&amp;gt; request codes are strings like this: They are literally HEX codes of MAC mac
&lt;br&gt;&amp;gt; addresses.
&lt;br&gt;&amp;gt; &amp;quot;002314EFD000544AB05345300045675609782123C3254B312123D12312EE13123F123D123123E00000000E00000000E0000000E0000000E0000000E00000000E00000000&amp;quot;
&lt;br&gt;&amp;gt; i want to create a function that mix together this request code with user
&lt;br&gt;&amp;gt; name that user entered and create new serial number.
&lt;br&gt;&amp;gt; What implications i have to satisfy to create such hash function in php?
&lt;br&gt;&amp;gt; Thanks for any suggestion
&lt;/div&gt;&lt;br&gt;How about using sha1 to hash your string. If the data is unique then the 
&lt;br&gt;hash will be unique as well.
&lt;br&gt;&lt;br&gt;$string = $request_code.$user_name;
&lt;br&gt;$hash = sha1($string);
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John
&lt;br&gt;Jeder hat soviel Recht, wie er Macht hat.
&lt;br&gt;[Spinoza]
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hash-function-tp26264576p26264960.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264864</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for  equivalent PCRE functions</title>
	<published>2009-11-09T03:31:29Z</published>
	<updated>2009-11-09T03:31:29Z</updated>
	<author>
		<name>David Otton</name>
	</author>
	<content type="html">2009/11/9 Tony Marston &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264864&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt;:
&lt;br&gt;&lt;br&gt;&amp;gt; So you wouldn't trust the PHP developers to write simple code which takes
&lt;br&gt;&amp;gt; each POSIX function and redirects it to a PCRE function? I have more faith
&lt;br&gt;&amp;gt; in their ability than I do yours.
&lt;br&gt;&lt;br&gt;If it's as simple as you claim, why don't you mock-up your solution in
&lt;br&gt;PHP, rather than C? You'll get taken more seriously if you have
&lt;br&gt;working code that someone can write unit tests against.
&lt;br&gt;&lt;br&gt;If your solution doesn't get any traction with the core team, you'll
&lt;br&gt;still be able to offer it to the community as a simple download, just
&lt;br&gt;&amp;quot;include this at the top of your script to fix &amp;quot;ereg*() not found&amp;quot;
&lt;br&gt;problems&amp;quot;. That would be really useful to all those people whose cause
&lt;br&gt;you are championing.
&lt;br&gt;&lt;br&gt;(BTW, the reference implementation for PHP is... PHP. There isn't an
&lt;br&gt;ISO standard or anything here. How PHP6 behaves is correct, because
&lt;br&gt;it's PHP6).
&lt;br&gt;&lt;br&gt;(BTW^2 - you're on the wrong list for this. If you want to influence
&lt;br&gt;the guys who make the decisions you need to take this to
&lt;br&gt;php-internals, where the heavyweights hang out).
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26264864.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264804</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-09T03:25:17Z</published>
	<updated>2009-11-09T03:25:17Z</updated>
	<author>
		<name>Tony Marston</name>
	</author>
	<content type="html">&lt;br&gt;&amp;quot;Ashley Sheridan&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264804&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ash@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;news:1257764339.1076.56.camel@localhost...
&lt;br&gt;&amp;gt; On Mon, 2009-11-09 at 00:23 +0000, Tony Marston wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; developer laziness
&lt;br&gt;&amp;gt;&amp;gt; or incompetence is not an acceptable excuse.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Exactly, so fix your scripts!
&lt;br&gt;&lt;br&gt;But my scripts aren't broken! It's PHP 6 that is broken.
&lt;br&gt;&lt;br&gt;&amp;gt; I do wonder though, what hosting company you use that would just upgrade
&lt;br&gt;&amp;gt; to PHP6 without warning on you and 'break' your scripts,
&lt;br&gt;&lt;br&gt;How many hosting companies write to all their account holders to ask 
&lt;br&gt;permission before upgrading PHP, not just from 4 to 5, but all the releases 
&lt;br&gt;in between? Very few of them, if any, in my experience.
&lt;br&gt;&lt;br&gt;&amp;gt; yet at the same
&lt;br&gt;&amp;gt; time would not allow you to install what you call an 'amateur fudge'. I
&lt;br&gt;&amp;gt; can't think of any hosting company that would care so little about their
&lt;br&gt;&amp;gt; customers.
&lt;br&gt;&lt;br&gt;Some hosting companies won't allow you to use htaccess files, refuse to 
&lt;br&gt;install any optional extension, let alone one from the PECL or PEAR 
&lt;br&gt;repositories. Some of them won't give you more than one MySQL database. 
&lt;br&gt;Different companies provide different levels of service. The only thing that 
&lt;br&gt;the DO have in common is that they charge you for it.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tony Marston
&lt;br&gt;&lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; Ash
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.ashleysheridan.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ashleysheridan.co.uk&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26264804.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264772</id>
	<title>Paypal transaction</title>
	<published>2009-11-09T03:22:42Z</published>
	<updated>2009-11-09T03:22:42Z</updated>
	<author>
		<name>Ali Asghar Toraby Parizy</name>
	</author>
	<content type="html">Hi friends
&lt;br&gt;I have an application I want to sell it in my website
&lt;br&gt;How can i use PayPal to marketing? i understand php so i am eager to write
&lt;br&gt;some php code, myself.
&lt;br&gt;How can i implement a php code to use PayPal gateway
&lt;br&gt;Thanks for any help
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Paypal-transaction-tp26264772p26264772.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264576</id>
	<title>Hash function</title>
	<published>2009-11-09T03:08:12Z</published>
	<updated>2009-11-09T03:08:12Z</updated>
	<author>
		<name>Ali Asghar Toraby Parizy</name>
	</author>
	<content type="html">hi friends
&lt;br&gt;I need a hash function to build a Unique serial number by mixing a request
&lt;br&gt;code and a user name
&lt;br&gt;request codes are strings like this: They are literally HEX codes of MAC mac
&lt;br&gt;addresses.
&lt;br&gt;&amp;quot;002314EFD000544AB05345300045675609782123C3254B312123D12312EE13123F123D123123E00000000E00000000E0000000E0000000E0000000E00000000E00000000&amp;quot;
&lt;br&gt;i want to create a function that mix together this request code with user
&lt;br&gt;name that user entered and create new serial number.
&lt;br&gt;What implications i have to satisfy to create such hash function in php?
&lt;br&gt;Thanks for any suggestion
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hash-function-tp26264576p26264576.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264494</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-09T02:58:59Z</published>
	<updated>2009-11-09T02:58:59Z</updated>
	<author>
		<name>Ashley Sheridan-3</name>
	</author>
	<content type="html">On Mon, 2009-11-09 at 00:23 +0000, Tony Marston wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; developer laziness 
&lt;br&gt;&amp;gt; or incompetence is not an acceptable excuse.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Exactly, so fix your scripts!
&lt;br&gt;&lt;br&gt;I do wonder though, what hosting company you use that would just upgrade
&lt;br&gt;to PHP6 without warning on you and 'break' your scripts, yet at the same
&lt;br&gt;time would not allow you to install what you call an 'amateur fudge'. I
&lt;br&gt;can't think of any hosting company that would care so little about their
&lt;br&gt;customers.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ash
&lt;br&gt;&lt;a href=&quot;http://www.ashleysheridan.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ashleysheridan.co.uk&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26264494.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264434</id>
	<title>Re: Multilingual website, texts in external JavaScript problem</title>
	<published>2009-11-09T02:52:40Z</published>
	<updated>2009-11-09T02:52:40Z</updated>
	<author>
		<name>Ashley Sheridan-3</name>
	</author>
	<content type="html">On Sun, 2009-11-08 at 22:04 -0800, leledumbo wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I need to create a multilingual website and my framework already gives me
&lt;br&gt;&amp;gt; that facility. However, I also use JavaScript quite extensively and since
&lt;br&gt;&amp;gt; XHTML 1.0 Strict doesn't allow inline script, I must use external .js file.
&lt;br&gt;&amp;gt; The problem is in these scripts, there are strings that needs to be
&lt;br&gt;&amp;gt; translated as well. How can I make PHP parse these scripts as well? Or are
&lt;br&gt;&amp;gt; there alternative approaches?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Multilingual-website%2C-texts-in-external-JavaScript-problem-tp26261666p26261666.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Multilingual-website%2C-texts-in-external-JavaScript-problem-tp26261666p26261666.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the PHP - General mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;You could either use several different Javascript files to hold the
&lt;br&gt;language translations and just those as variables, and then in the main
&lt;br&gt;Javascript use the variables rather than the actual words. Or you could
&lt;br&gt;store all the translations into a Javascript array and refer to the
&lt;br&gt;specific array element you need to output
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Ash
&lt;br&gt;&lt;a href=&quot;http://www.ashleysheridan.co.uk&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ashleysheridan.co.uk&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multilingual-website%2C-texts-in-external-JavaScript-problem-tp26261666p26264434.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264339</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-09T02:48:50Z</published>
	<updated>2009-11-09T02:48:50Z</updated>
	<author>
		<name>Tony Marston</name>
	</author>
	<content type="html">&lt;br&gt;&amp;quot;Robert Cummings&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264339&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robert@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264339&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AF76E1F.2050700@...&lt;/a&gt;...
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Tony Marston wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Robert Cummings&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264339&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robert@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Then you've got several options:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 1) Don't upgrade PHP.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Not an acceptable option.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 2) Pick a different hosting provider.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Not an acceptable optional.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 3) Fix your scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The scripts aren't broken. It's PHP 6 that's going to be broken.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I think you're missing the point of a full version increase. This is not 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; a minor or micro version change... script breakage is *expected*.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; But breakage should be kept to an absolute minimum, and developer 
&lt;br&gt;&amp;gt;&amp;gt; laziness or incompetence is not an acceptable excuse.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Not quite true... major version moves are an opportunity to make a break 
&lt;br&gt;&amp;gt; for freedom. All there needs to be is an upgrade path... and that is 
&lt;br&gt;&amp;gt; clearly in play right now with the warning indicating that POSIX regex 
&lt;br&gt;&amp;gt; functions are being deprecated.
&lt;/div&gt;&lt;br&gt;But a lot of people won't see those warnings until they run 5.3.0 for the 
&lt;br&gt;first time. It is common practice, at least in all the other languages that 
&lt;br&gt;I have used, that is something is going to be removed that it is marked as 
&lt;br&gt;deprecated at the start of the previous release, not at the end. So marking 
&lt;br&gt;the POIX functions as deprecated should have happened in 5.0, not 5.3.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You don't think PHP should support legacy cruft in the core forever do 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; you?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Widely use regex functions are not &amp;quot;legacy cruft&amp;quot;. Besides, who decides 
&lt;br&gt;&amp;gt;&amp;gt; what is &amp;quot;cruft&amp;quot; and should be removed from the language?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; They most certainly are cruft.
&lt;br&gt;&lt;br&gt;That is just your opinion. Other people think that PHP should be rewritten 
&lt;br&gt;so that it appears more like their favourite language. Among the suggestions 
&lt;br&gt;I have seen are:
&lt;br&gt;- make all variables statically typed instead of dynamically typed.
&lt;br&gt;- remove all procedural functions and make the language &amp;quot;pure&amp;quot; OO.
&lt;br&gt;&lt;br&gt;Who decides if they are right?
&lt;br&gt;&lt;br&gt;&amp;gt;.. hence the reason they are being removed. The people who decide what is, 
&lt;br&gt;&amp;gt;and is not, cruft are the very same people who are writing the code. If you 
&lt;br&gt;&amp;gt;are not happy with this then there's the age old saying in open source... 
&lt;br&gt;&amp;gt;&amp;quot;put up or shut up&amp;quot;.
&lt;br&gt;&lt;br&gt;I can't because I don't program in C. So I shall do the nextbest thing - 
&lt;br&gt;complain at every opporunity.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; If unicode support is slopped onto the current POSIX regex functions 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; won't that then make them non-POSIX? Food for thought. Also, why support 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; two libraries for which one is obviously inferior in speed and 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; functionality?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; That is why I suggested that instead of dropping the POSIX functions 
&lt;br&gt;&amp;gt;&amp;gt; entirely and seriously annoying lots of users, that they should simply be 
&lt;br&gt;&amp;gt;&amp;gt; rewritten as wrappers for the PCRE functions. In that way all the calls 
&lt;br&gt;&amp;gt;&amp;gt; to ereg_* would still work, but all they would do is immediately call the 
&lt;br&gt;&amp;gt;&amp;gt; relevant preg_* function. The small amount of effort that tghis would 
&lt;br&gt;&amp;gt;&amp;gt; take would kill two birds with one stone:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; (1) There would be only one regex engine to support, which would be PCRE.
&lt;br&gt;&amp;gt;&amp;gt; (2) Lots of developers would be spared the hassle of modifying their code 
&lt;br&gt;&amp;gt;&amp;gt; as all the calls to POSIX functions would still work as expected because 
&lt;br&gt;&amp;gt;&amp;gt; the language would redirect to the PCRE function automatically.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This would probably be worse than removing the POSIX functions.
&lt;br&gt;&amp;gt; POSIX and PCRE I daresay are not completely compatible.
&lt;/div&gt;&lt;br&gt;&amp;quot;probably&amp;quot; and &amp;quot;daresay&amp;quot; mean that you are just guessing. According to some 
&lt;br&gt;people who know what they are talking about there is a one-for-one 
&lt;br&gt;comparison between each POSIX and each PCRE function.
&lt;br&gt;&lt;br&gt;&amp;gt; At least when you remove the POSIX functions then the problem space is 
&lt;br&gt;&amp;gt; well defined.
&lt;br&gt;&lt;br&gt;And lots of sers will be pissed off because they won'tbe able to upgrade to 
&lt;br&gt;PHP 6 without major programmer intervention.
&lt;br&gt;&lt;br&gt;&amp;gt; Suddenly having POSIX regex functions that are really wrappers around PCRE 
&lt;br&gt;&amp;gt; functions may introduce subtle differences in output for the same horde of 
&lt;br&gt;&amp;gt; users but without the same explicability.
&lt;br&gt;&lt;br&gt;&amp;quot;may introduce&amp;quot;? There you go, guessng again. Can you point out *any* POSIX 
&lt;br&gt;function that cannot be converted into PCRE?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; I am not suggesting that the POSIX functions be rewritten to deal with 
&lt;br&gt;&amp;gt;&amp;gt; unicode as that would require a huge amount of effort, but by redirecting 
&lt;br&gt;&amp;gt;&amp;gt; al POSIX calls to the equivalent PCRE function would have the same effect 
&lt;br&gt;&amp;gt;&amp;gt; for far less effort.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The choice is simple - either a small amount of effort from a small 
&lt;br&gt;&amp;gt;&amp;gt; number of developers, or a large amount of effort from a large number of 
&lt;br&gt;&amp;gt;&amp;gt; seriously pissed-off users. Do the maths. It's not rocket science.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This isn't a mathematical problem. It's a question of correctness.
&lt;/div&gt;&lt;br&gt;Lot's of PHP users, myself included, do not think that it is &amp;quot;correct&amp;quot; to 
&lt;br&gt;remove widely used functionality just beause the developers are too lazy to 
&lt;br&gt;do a proper job.
&lt;br&gt;&lt;br&gt;&amp;gt; I wasn't happy to hear POSIX regex functions were going either, but when I 
&lt;br&gt;&amp;gt; heard the reasoning I did the best thing I could... I fixed my code to 
&lt;br&gt;&amp;gt; prepare for the inevitable.
&lt;br&gt;&lt;br&gt;So you had to fix what wasn't broken just to circumvent a stupid decision by 
&lt;br&gt;the PHP developers.
&lt;br&gt;&lt;br&gt;&amp;gt; There's no way I'd trust my code to &amp;quot;just work&amp;quot; with POSIX functions 
&lt;br&gt;&amp;gt; redirected through PCRE and so I'd still need to do the same legwork.
&lt;br&gt;&lt;br&gt;So you wouldn't trust the PHP developers to write simple code which takes 
&lt;br&gt;each POSIX function and redirects it to a PCRE function? I have more faith 
&lt;br&gt;in their ability than I do yours.
&lt;br&gt;&lt;br&gt;&amp;gt; Wrapping the POSIX regex functions around PCRE will lead to more problems 
&lt;br&gt;&amp;gt; than it solves IMHO.
&lt;br&gt;&lt;br&gt;IMHO your opinion does not carry much weight.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tony Marston
&lt;br&gt;&lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Rob.
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.interjinn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.interjinn.com&lt;/a&gt;&lt;br&gt;&amp;gt; Application and Templating Framework for PHP 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26264339.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26264111</id>
	<title>Re: Convert deprecated POSIX functions into wrappers forequivalent PCRE functions</title>
	<published>2009-11-09T02:29:26Z</published>
	<updated>2009-11-09T02:29:26Z</updated>
	<author>
		<name>Tony Marston</name>
	</author>
	<content type="html">&lt;br&gt;&amp;quot;Paul M Foster&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264111&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;paulf@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26264111&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;20091109030235.GH3738@...&lt;/a&gt;...
&lt;br&gt;&amp;gt; On Sun, Nov 08, 2009 at 06:30:37PM -0500, Robert Cummings wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Also, why support
&lt;br&gt;&amp;gt;&amp;gt; two libraries for which one is obviously inferior in speed and
&lt;br&gt;&amp;gt;&amp;gt; functionality?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Because Tony's Radicore framework has a bunch of ereg* calls in it. ;-}
&lt;br&gt;&lt;br&gt;Just like a lot of other people's work.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tony Marston
&lt;br&gt;&lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Paul
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Paul M. Foster 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26264111.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26262157</id>
	<title>Re: Connect to LDAP</title>
	<published>2009-11-08T23:19:16Z</published>
	<updated>2009-11-08T23:19:16Z</updated>
	<author>
		<name>Devendra Jadhav</name>
	</author>
	<content type="html">Yes. Correct
&lt;br&gt;&lt;br&gt;On Mon, Nov 9, 2009 at 7:30 AM, Ashley M. Kirchner &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26262157&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ashley@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Hi folks,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; I've never done any PHP-&amp;gt;LDAP code writing (nor have I ever dealt with an
&lt;br&gt;&amp;gt; LDAP server to begin with.) &amp;nbsp;However I'm writing an app which requires
&lt;br&gt;&amp;gt; verifying a user's credentials against an LDAP server. &amp;nbsp;The admin of the
&lt;br&gt;&amp;gt; server sent me the following snippet, however also made it clear that he is
&lt;br&gt;&amp;gt; not 100% whether it's accurate (he's not a PHP coder). &amp;nbsp;And I don't have
&lt;br&gt;&amp;gt; remote access to the server (the app is going to sit on the internal network
&lt;br&gt;&amp;gt; and the LDAP server doesn't accept outside connections.)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; So, asking the wise folks on here, does the following piece look
&lt;br&gt;&amp;gt; semantically correct?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Check against LDAP server */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$adServer = &amp;quot;server.address.hidden&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldapconn = ldap_connect($adServer) or die(&amp;quot;Connection to the AD
&lt;br&gt;&amp;gt; server failed.&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldapuser = $_POST[&amp;quot;uname&amp;quot;];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldappass = $_POST[&amp;quot;pword&amp;quot;];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldapbind = ldap_bind($ldapconn, $ldapuser, $ldappass);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ($ldapbind) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$msg = &amp;quot;User Authenticated Successfully!&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$_SESSION['username'] = $ldapuser;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$_SESSION['password'] = $ldappass;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return true;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$msg = &amp;quot;Invalid username / password&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; Thanks.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; -- A
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Devendra Jadhav
&lt;br&gt;देवेंद्र जाधव
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Connect-to-LDAP-tp26260269p26262157.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26261666</id>
	<title>Multilingual website, texts in external JavaScript problem</title>
	<published>2009-11-08T22:04:06Z</published>
	<updated>2009-11-08T22:04:06Z</updated>
	<author>
		<name>leledumbo</name>
	</author>
	<content type="html">I need to create a multilingual website and my framework already gives me that facility. However, I also use JavaScript quite extensively and since XHTML 1.0 Strict doesn't allow inline script, I must use external .js file. The problem is in these scripts, there are strings that needs to be translated as well. How can I make PHP parse these scripts as well? Or are there alternative approaches?
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Multilingual-website%2C-texts-in-external-JavaScript-problem-tp26261666p26261666.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26261613</id>
	<title>Re: Re: Checkbox in PHP form</title>
	<published>2009-11-08T21:52:08Z</published>
	<updated>2009-11-08T21:52:08Z</updated>
	<author>
		<name>Brian Hazelton</name>
	</author>
	<content type="html">&amp;lt;input class=text id=&amp;quot;myCheck1&amp;quot; type=&amp;quot;checkbox&amp;quot; &amp;lt;?php if ( $row[33] ==
&lt;br&gt;'no') { echo &amp;quot;checked=&amp;quot;checked&amp;quot;; &amp;nbsp;} ?&amp;gt; value=&amp;quot;PFDs&amp;quot;
&lt;br&gt;name=f_sequipment1&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;PFDs&amp;lt;b&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checkbox-in-PHP-form-tp26260110p26261613.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26260637</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-08T19:02:35Z</published>
	<updated>2009-11-08T19:02:35Z</updated>
	<author>
		<name>Paul M Foster</name>
	</author>
	<content type="html">On Sun, Nov 08, 2009 at 06:30:37PM -0500, Robert Cummings wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Also, why support
&lt;br&gt;&amp;gt; two libraries for which one is obviously inferior in speed and
&lt;br&gt;&amp;gt; functionality?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Because Tony's Radicore framework has a bunch of ereg* calls in it. ;-}
&lt;br&gt;&lt;br&gt;Paul
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Paul M. Foster
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26260637.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26260269</id>
	<title>Connect to LDAP</title>
	<published>2009-11-08T18:00:09Z</published>
	<updated>2009-11-08T18:00:09Z</updated>
	<author>
		<name>Ashley M. Kirchner</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; Hi folks,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; I've never done any PHP-&amp;gt;LDAP code writing (nor have I ever dealt 
&lt;br&gt;with an LDAP server to begin with.) &amp;nbsp;However I'm writing an app which 
&lt;br&gt;requires verifying a user's credentials against an LDAP server. &amp;nbsp;The 
&lt;br&gt;admin of the server sent me the following snippet, however also made it 
&lt;br&gt;clear that he is not 100% whether it's accurate (he's not a PHP coder). &amp;nbsp;
&lt;br&gt;And I don't have remote access to the server (the app is going to sit on 
&lt;br&gt;the internal network and the LDAP server doesn't accept outside 
&lt;br&gt;connections.)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; So, asking the wise folks on here, does the following piece look 
&lt;br&gt;semantically correct?
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Check against LDAP server */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$adServer = &amp;quot;server.address.hidden&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldapconn = ldap_connect($adServer) or die(&amp;quot;Connection to the 
&lt;br&gt;AD server failed.&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldapuser = $_POST[&amp;quot;uname&amp;quot;];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldappass = $_POST[&amp;quot;pword&amp;quot;];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ldapbind = ldap_bind($ldapconn, $ldapuser, $ldappass);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ($ldapbind) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$msg = &amp;quot;User Authenticated Successfully!&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$_SESSION['username'] = $ldapuser;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$_SESSION['password'] = $ldappass;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return true;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$msg = &amp;quot;Invalid username / password&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return false;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Thanks.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; -- A
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Connect-to-LDAP-tp26260269p26260269.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26260147</id>
	<title>Re: Checkbox in PHP form</title>
	<published>2009-11-08T17:45:00Z</published>
	<updated>2009-11-08T17:45:00Z</updated>
	<author>
		<name>mlemos</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;on 11/08/2009 11:39 PM Ernie Kemp said the following:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Need some help here with checkboxes in an html form.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My issue is I have a form that needs to be viewed with checkboxes filled
&lt;br&gt;&amp;gt; in depending on the values in the table.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I tried:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;INPUT class=text id=&amp;quot;myCheck1&amp;quot; type=checkbox &amp;lt;?php if ( $row[33] =
&lt;br&gt;&amp;gt; 'no') { echo &amp;quot;checked=yes&amp;quot;; &amp;nbsp;} else { echo ''; &amp;nbsp;} ?&amp;gt; value=&amp;quot;PFDs&amp;quot;
&lt;br&gt;&amp;gt; name=f_sequipment1&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;PFDs&amp;lt;b&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but the checkbox field is always checked.
&lt;/div&gt;&lt;br&gt;It should be $row[33] == 'no'
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Manuel Lemos
&lt;br&gt;&lt;br&gt;Find and post PHP jobs
&lt;br&gt;&lt;a href=&quot;http://www.phpclasses.org/jobs/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.phpclasses.org/jobs/&lt;/a&gt;&lt;br&gt;&lt;br&gt;PHP Classes - Free ready to use OOP components written in PHP
&lt;br&gt;&lt;a href=&quot;http://www.phpclasses.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.phpclasses.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checkbox-in-PHP-form-tp26260110p26260147.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26260110</id>
	<title>Checkbox in PHP form</title>
	<published>2009-11-08T17:39:40Z</published>
	<updated>2009-11-08T17:39:40Z</updated>
	<author>
		<name>Ernie Kemp</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;meta name=&quot;Microsoft Theme 2.00&quot; content=&quot;rmnsque 011&quot;&gt;
&lt;meta http-equiv=Content-Type content=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body bgcolor=white background=&quot;cid:image001.jpg@01CA60B3.3F974090&quot; lang=EN-CA link=&quot;#996600&quot; vlink=&quot;#666666&quot;&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;v:background id=&quot;_x0000_s1025&quot; o:bwmode=&quot;white&quot; o:targetscreensize=&quot;800,600&quot;&gt;
  &lt;v:fill src=&quot;cid:image001.jpg@01CA60B3.3F974090&quot; o:title=&quot;romtextb&quot; type=&quot;frame&quot; /&gt;
 &lt;/v:background&gt;&lt;/xml&gt;&lt;![endif]--&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;Need some help here with checkboxes in an html form.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;My issue is I have a form that needs to be viewed with
checkboxes filled in depending on the values in the table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;I tried:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;&amp;lt;INPUT class=text id=&amp;quot;myCheck1&amp;quot; type=checkbox &lt;/span&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:red'&gt;&amp;lt;?php
if ( $row[33] = 'no') { echo &amp;quot;checked=yes&amp;quot;; &amp;nbsp;} else { echo ''; &amp;nbsp;}
?&amp;gt;&lt;/span&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt; value=&amp;quot;PFDs&amp;quot;
name=f_sequipment1&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;font size=&amp;quot;2&amp;quot;&amp;gt;PFDs&amp;lt;b&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;but the checkbox field is always checked.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;I thought of JavaScript also but it would have to be a &amp;#8220;if
$row[33] then run a JavaScript function&amp;#8221; .&amp;nbsp; This is not working for
me neither.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;Sorry if this seems trivial but I need your help.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:windowtext'&gt;Thanks in advance..... &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Ancestory SF&quot;;
color:windowtext'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Ancestory SF&quot;;
color:windowtext'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Ancestory SF&quot;;
color:windowtext'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checkbox-in-PHP-form-tp26260110p26260110.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26259984</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-08T17:19:27Z</published>
	<updated>2009-11-08T17:19:27Z</updated>
	<author>
		<name>Robert Cummings</name>
	</author>
	<content type="html">Tony Marston wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;quot;Robert Cummings&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259984&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robert@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Then you've got several options:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 1) Don't upgrade PHP.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Not an acceptable option.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 2) Pick a different hosting provider.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Not an acceptable optional.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 3) Fix your scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The scripts aren't broken. It's PHP 6 that's going to be broken.
&lt;br&gt;&amp;gt;&amp;gt; I think you're missing the point of a full version increase. This is not a 
&lt;br&gt;&amp;gt;&amp;gt; minor or micro version change... script breakage is *expected*.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But breakage should be kept to an absolute minimum, and developer laziness 
&lt;br&gt;&amp;gt; or incompetence is not an acceptable excuse.
&lt;/div&gt;&lt;br&gt;Not quite true... major version moves are an opportunity to make a break 
&lt;br&gt;for freedom. All there needs to be is an upgrade path... and that is 
&lt;br&gt;clearly in play right now with the warning indicating that POSIX regex 
&lt;br&gt;functions are being deprecated.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; You don't think PHP should support legacy cruft in the core forever do 
&lt;br&gt;&amp;gt;&amp;gt; you?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Widely use regex functions are not &amp;quot;legacy cruft&amp;quot;. Besides, who decides what 
&lt;br&gt;&amp;gt; is &amp;quot;cruft&amp;quot; and should be removed from the language?
&lt;br&gt;&lt;br&gt;They most certainly are cruft... hence the reason they are being 
&lt;br&gt;removed. The people who decide what is, and is not, cruft are the very 
&lt;br&gt;same people who are writing the code. If you are not happy with this 
&lt;br&gt;then there's the age old saying in open source... &amp;quot;put up or shut up&amp;quot;.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; If unicode support is slopped onto the current POSIX regex functions won't 
&lt;br&gt;&amp;gt;&amp;gt; that then make them non-POSIX? Food for thought. Also, why support two 
&lt;br&gt;&amp;gt;&amp;gt; libraries for which one is obviously inferior in speed and functionality?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; That is why I suggested that instead of dropping the POSIX functions 
&lt;br&gt;&amp;gt; entirely and seriously annoying lots of users, that they should simply be 
&lt;br&gt;&amp;gt; rewritten as wrappers for the PCRE functions. In that way all the calls to 
&lt;br&gt;&amp;gt; ereg_* would still work, but all they would do is immediately call the 
&lt;br&gt;&amp;gt; relevant preg_* function. The small amount of effort that tghis would take 
&lt;br&gt;&amp;gt; would kill two birds with one stone:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (1) There would be only one regex engine to support, which would be PCRE.
&lt;br&gt;&amp;gt; (2) Lots of developers would be spared the hassle of modifying their code as 
&lt;br&gt;&amp;gt; all the calls to POSIX functions would still work as expected because the 
&lt;br&gt;&amp;gt; language would redirect to the PCRE function automatically.
&lt;/div&gt;&lt;br&gt;This would probably be worse than removing the POSIX functions. POSIX 
&lt;br&gt;and PCRE I daresay are not completely compatible. At least when you 
&lt;br&gt;remove the POSIX functions then the problem space is well defined. 
&lt;br&gt;Suddenly having POSIX regex functions that are really wrappers around 
&lt;br&gt;PCRE functions may introduce subtle differences in output for the same 
&lt;br&gt;horde of users but without the same explicability.
&lt;br&gt;&lt;br&gt;&amp;gt; I am not suggesting that the POSIX functions be rewritten to deal with 
&lt;br&gt;&amp;gt; unicode as that would require a huge amount of effort, but by redirecting al 
&lt;br&gt;&amp;gt; POSIX calls to the equivalent PCRE function would have the same effect for 
&lt;br&gt;&amp;gt; far less effort.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The choice is simple - either a small amount of effort from a small number 
&lt;br&gt;&amp;gt; of developers, or a large amount of effort from a large number of seriously 
&lt;br&gt;&amp;gt; pissed-off users. Do the maths. It's not rocket science.
&lt;br&gt;&lt;br&gt;This isn't a mathematical problem. It's a question of correctness. I 
&lt;br&gt;wasn't happy to hear POSIX regex functions were going either, but when I 
&lt;br&gt;heard the reasoning I did the best thing I could... I fixed my code to 
&lt;br&gt;prepare for the inevitable. There's no way I'd trust my code to &amp;quot;just 
&lt;br&gt;work&amp;quot; with POSIX functions redirected through PCRE and so I'd still need 
&lt;br&gt;to do the same legwork.
&lt;br&gt;&lt;br&gt;Wrapping the POSIX regex functions around PCRE will lead to more 
&lt;br&gt;problems than it solves IMHO.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Rob.
&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.interjinn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.interjinn.com&lt;/a&gt;&lt;br&gt;Application and Templating Framework for PHP
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26259984.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26259551</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-08T16:23:22Z</published>
	<updated>2009-11-08T16:23:22Z</updated>
	<author>
		<name>Tony Marston</name>
	</author>
	<content type="html">&lt;br&gt;&amp;quot;Robert Cummings&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259551&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robert@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259551&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AF7549D.1060005@...&lt;/a&gt;...
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Tony Marston wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Eddie Drapkin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259551&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oorza2k5@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;&amp;gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259551&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;68de37340911081330v799803f3he6ed60ecc6e67bdb@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt; On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259551&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; That's an amateur fudge, not a professional fix. Besides, what happens 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; your hosting company won't let you install PECL extensions?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Tony Marston
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;Eddie Drapkin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259551&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oorza2k5@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259551&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;68de37340911081209p45577d46r70a3c194f1079510@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Sun, Nov 8, 2009 at 2:47 PM, Tony Marston
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259551&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;It is for the better&amp;quot;? How can you justify that? It is a problem that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; will
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; cause a lot of headaches for a lot of users, yet the solution which I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; proposed will remove that problem with only very little effort, yet 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; still
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; leave only one regex engine which has to be supported in PHP 6.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; You have to balance out the small bit of effort required in 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; implementing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this solution against the huge amount of effort required in changing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; thousands, if not millions of scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For the PHP developers to say &amp;quot;we can't be bothered to update the 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; POSIX
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; functions to deal with unicode, so we've decided to drop them from PHP
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; entirely even though it will break lots of scripts&amp;quot; will not go down 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; well
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; userland.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Tony Marston
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;John Black&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259551&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;spam@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259551&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AF70120.1040209@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The same can be said about the removal of magic_quotes(), it will 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; break
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; A
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; LOT of old scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am in the same boat, I did not keep up to date with the PHP 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; developer
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; plans and just found out about ereg when I installed PHP 5.3.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I think it was handled properly by displaying warning messages before
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; actually removing it. It will give people enough time to update their
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; scripts or weed out the old and insecure scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Yes, it will create some headache but, AFAIK, it is for the better.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; John
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Intelligent Life
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://xkcd.com/638/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xkcd.com/638/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The plan, as far as I am aware, is to move POSIX regular expressions
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; into PECL as of PHP6. If you can fix your scripts by simply running
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;pecl install ereg&amp;quot; what's all the hee-hawing about?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Then you've got several options:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 1) Don't upgrade PHP.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Not an acceptable option.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 2) Pick a different hosting provider.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Not an acceptable optional.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 3) Fix your scripts.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The scripts aren't broken. It's PHP 6 that's going to be broken.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think you're missing the point of a full version increase. This is not a 
&lt;br&gt;&amp;gt; minor or micro version change... script breakage is *expected*.
&lt;/div&gt;&lt;br&gt;But breakage should be kept to an absolute minimum, and developer laziness 
&lt;br&gt;or incompetence is not an acceptable excuse.
&lt;br&gt;&lt;br&gt;&amp;gt; You don't think PHP should support legacy cruft in the core forever do 
&lt;br&gt;&amp;gt; you?
&lt;br&gt;&lt;br&gt;Widely use regex functions are not &amp;quot;legacy cruft&amp;quot;. Besides, who decides what 
&lt;br&gt;is &amp;quot;cruft&amp;quot; and should be removed from the language?
&lt;br&gt;&lt;br&gt;&amp;gt; If unicode support is slopped onto the current POSIX regex functions won't 
&lt;br&gt;&amp;gt; that then make them non-POSIX? Food for thought. Also, why support two 
&lt;br&gt;&amp;gt; libraries for which one is obviously inferior in speed and functionality?
&lt;br&gt;&lt;br&gt;That is why I suggested that instead of dropping the POSIX functions 
&lt;br&gt;entirely and seriously annoying lots of users, that they should simply be 
&lt;br&gt;rewritten as wrappers for the PCRE functions. In that way all the calls to 
&lt;br&gt;ereg_* would still work, but all they would do is immediately call the 
&lt;br&gt;relevant preg_* function. The small amount of effort that tghis would take 
&lt;br&gt;would kill two birds with one stone:
&lt;br&gt;&lt;br&gt;(1) There would be only one regex engine to support, which would be PCRE.
&lt;br&gt;(2) Lots of developers would be spared the hassle of modifying their code as 
&lt;br&gt;all the calls to POSIX functions would still work as expected because the 
&lt;br&gt;language would redirect to the PCRE function automatically.
&lt;br&gt;&lt;br&gt;I am not suggesting that the POSIX functions be rewritten to deal with 
&lt;br&gt;unicode as that would require a huge amount of effort, but by redirecting al 
&lt;br&gt;POSIX calls to the equivalent PCRE function would have the same effect for 
&lt;br&gt;far less effort.
&lt;br&gt;&lt;br&gt;The choice is simple - either a small amount of effort from a small number 
&lt;br&gt;of developers, or a large amount of effort from a large number of seriously 
&lt;br&gt;pissed-off users. Do the maths. It's not rocket science.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tony Marston
&lt;br&gt;&lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Cheers,
&lt;br&gt;&amp;gt; Rob.
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.interjinn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.interjinn.com&lt;/a&gt;&lt;br&gt;&amp;gt; Application and Templating Framework for PHP 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26259551.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26259214</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-08T15:30:37Z</published>
	<updated>2009-11-08T15:30:37Z</updated>
	<author>
		<name>Robert Cummings</name>
	</author>
	<content type="html">Tony Marston wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;quot;Eddie Drapkin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259214&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oorza2k5@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259214&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;68de37340911081330v799803f3he6ed60ecc6e67bdb@...&lt;/a&gt;...
&lt;br&gt;&amp;gt; On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259214&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; That's an amateur fudge, not a professional fix. Besides, what happens if
&lt;br&gt;&amp;gt;&amp;gt; your hosting company won't let you install PECL extensions?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Tony Marston
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;Eddie Drapkin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259214&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oorza2k5@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259214&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;68de37340911081209p45577d46r70a3c194f1079510@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Sun, Nov 8, 2009 at 2:47 PM, Tony Marston
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259214&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;It is for the better&amp;quot;? How can you justify that? It is a problem that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; will
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; cause a lot of headaches for a lot of users, yet the solution which I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; proposed will remove that problem with only very little effort, yet 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; still
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; leave only one regex engine which has to be supported in PHP 6.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; You have to balance out the small bit of effort required in implementing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; this solution against the huge amount of effort required in changing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; thousands, if not millions of scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; For the PHP developers to say &amp;quot;we can't be bothered to update the POSIX
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; functions to deal with unicode, so we've decided to drop them from PHP
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; entirely even though it will break lots of scripts&amp;quot; will not go down 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; well
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; userland.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Tony Marston
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;John Black&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259214&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;spam@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259214&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AF70120.1040209@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The same can be said about the removal of magic_quotes(), it will break
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; A
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; LOT of old scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am in the same boat, I did not keep up to date with the PHP developer
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; plans and just found out about ereg when I installed PHP 5.3.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I think it was handled properly by displaying warning messages before
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; actually removing it. It will give people enough time to update their
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; scripts or weed out the old and insecure scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Yes, it will create some headache but, AFAIK, it is for the better.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; John
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Intelligent Life
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://xkcd.com/638/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xkcd.com/638/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The plan, as far as I am aware, is to move POSIX regular expressions
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; into PECL as of PHP6. If you can fix your scripts by simply running
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;pecl install ereg&amp;quot; what's all the hee-hawing about?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Then you've got several options:
&lt;br&gt;&amp;gt;&amp;gt; 1) Don't upgrade PHP.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Not an acceptable option.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 2) Pick a different hosting provider.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Not an acceptable optional.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 3) Fix your scripts.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The scripts aren't broken. It's PHP 6 that's going to be broken.
&lt;/div&gt;&lt;br&gt;I think you're missing the point of a full version increase. This is not 
&lt;br&gt;a minor or micro version change... script breakage is *expected*. You 
&lt;br&gt;don't think PHP should support legacy cruft in the core forever do you? 
&lt;br&gt;If unicode support is slopped onto the current POSIX regex functions 
&lt;br&gt;won't that then make them non-POSIX? Food for thought. Also, why support 
&lt;br&gt;two libraries for which one is obviously inferior in speed and 
&lt;br&gt;functionality?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Rob.
&lt;br&gt;-- 
&lt;br&gt;&lt;a href=&quot;http://www.interjinn.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.interjinn.com&lt;/a&gt;&lt;br&gt;Application and Templating Framework for PHP
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26259214.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26258887</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-08T14:47:50Z</published>
	<updated>2009-11-08T14:47:50Z</updated>
	<author>
		<name>Tony Marston</name>
	</author>
	<content type="html">&lt;br&gt;&amp;quot;Eddie Drapkin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258887&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oorza2k5@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258887&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;68de37340911081330v799803f3he6ed60ecc6e67bdb@...&lt;/a&gt;...
&lt;br&gt;On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258887&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; That's an amateur fudge, not a professional fix. Besides, what happens if
&lt;br&gt;&amp;gt; your hosting company won't let you install PECL extensions?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Tony Marston
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;Eddie Drapkin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258887&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oorza2k5@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258887&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;68de37340911081209p45577d46r70a3c194f1079510@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt; On Sun, Nov 8, 2009 at 2:47 PM, Tony Marston
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258887&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;It is for the better&amp;quot;? How can you justify that? It is a problem that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; will
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; cause a lot of headaches for a lot of users, yet the solution which I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; proposed will remove that problem with only very little effort, yet 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; still
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; leave only one regex engine which has to be supported in PHP 6.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You have to balance out the small bit of effort required in implementing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this solution against the huge amount of effort required in changing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thousands, if not millions of scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For the PHP developers to say &amp;quot;we can't be bothered to update the POSIX
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; functions to deal with unicode, so we've decided to drop them from PHP
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; entirely even though it will break lots of scripts&amp;quot; will not go down 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; well
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; userland.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Tony Marston
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;John Black&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258887&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;spam@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258887&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AF70120.1040209@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The same can be said about the removal of magic_quotes(), it will break
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; A
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; LOT of old scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am in the same boat, I did not keep up to date with the PHP developer
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; plans and just found out about ereg when I installed PHP 5.3.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I think it was handled properly by displaying warning messages before
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; actually removing it. It will give people enough time to update their
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; scripts or weed out the old and insecure scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Yes, it will create some headache but, AFAIK, it is for the better.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; John
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Intelligent Life
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://xkcd.com/638/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xkcd.com/638/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The plan, as far as I am aware, is to move POSIX regular expressions
&lt;br&gt;&amp;gt;&amp;gt; into PECL as of PHP6. If you can fix your scripts by simply running
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;pecl install ereg&amp;quot; what's all the hee-hawing about?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&amp;gt; Then you've got several options:
&lt;br&gt;&amp;gt; 1) Don't upgrade PHP.
&lt;br&gt;&lt;br&gt;Not an acceptable option.
&lt;br&gt;&lt;br&gt;&amp;gt; 2) Pick a different hosting provider.
&lt;br&gt;&lt;br&gt;Not an acceptable optional.
&lt;br&gt;&lt;br&gt;&amp;gt; 3) Fix your scripts.
&lt;br&gt;&lt;br&gt;The scripts aren't broken. It's PHP 6 that's going to be broken.
&lt;br&gt;&lt;br&gt;&amp;gt; You talk about a &amp;quot;professional&amp;quot; fix. &amp;nbsp;The right fix is to remove the
&lt;br&gt;&amp;gt; depracated elements
&lt;br&gt;&lt;br&gt;My whole argument is that they shouldn't have been deprecated in the first 
&lt;br&gt;place.
&lt;br&gt;&lt;br&gt;&amp;gt; from your scripts before upgrading PHP, which
&lt;br&gt;&amp;gt; realistically shouldn't be that big of a deal for the vast majority of
&lt;br&gt;&amp;gt; expressions.
&lt;br&gt;&lt;br&gt;It is going to be a VERY big deal for all hose users who suddenly finf that 
&lt;br&gt;their scripts won't run in PHP 6.
&lt;br&gt;&lt;br&gt;&amp;gt; Rather than accept the change and just fix your scripts,
&lt;br&gt;&lt;br&gt;It's not a change, it's a removal of core functions that have worked 
&lt;br&gt;flawlessly for years. Both the POSIX and the PCRE functions needed to be 
&lt;br&gt;updated to work with unicode, but the developers couldn't be bothered to 
&lt;br&gt;update both. The only reason that the POSIX have been deprecated is because 
&lt;br&gt;the PHP developers are either too lazy or too incompetent to provide a 
&lt;br&gt;proper fix.
&lt;br&gt;&lt;br&gt;&amp;gt; you propose a problem that breaks a lot of other things and introduces
&lt;br&gt;&amp;gt; way more problems than it solves.
&lt;br&gt;&lt;br&gt;&amp;gt; You're not the first person to post this exact same tantrum on this
&lt;br&gt;l&amp;gt; list and the response has always been: fix your scripts
&lt;br&gt;&lt;br&gt;The scripts aren't broken, it's PHP 6 that's broken.
&lt;br&gt;&lt;br&gt;&amp;gt; or don't upgrade.
&lt;br&gt;&lt;br&gt;Not an acceptable option.
&lt;br&gt;&lt;br&gt;&amp;gt; Seeing as PHP 6 is a long ways away you've got plenty of
&lt;br&gt;&amp;gt; time to fix your scripts
&lt;br&gt;&lt;br&gt;Just as the PHP developers have plenty of time to do a proper job.
&lt;br&gt;&lt;br&gt;&amp;gt; and it's not like this is being sprung overnight,
&lt;br&gt;&lt;br&gt;To a lot of peope it will appear to be sprung overnight as the first time 
&lt;br&gt;they will know that the POSIX functions have been removed is when their 
&lt;br&gt;scripts don't work.
&lt;br&gt;&lt;br&gt;&amp;gt; so do the real professional thing
&lt;br&gt;&lt;br&gt;The professional thing would be to fix PHP 6 so that is doesn't &amp;nbsp;break 
&lt;br&gt;existing scripts needlessly.
&lt;br&gt;&lt;br&gt;&amp;gt; and upgrade your scripts,
&lt;br&gt;&amp;gt; if you want to upgrade (when 6 is released). &amp;nbsp;Breaking BC happens.
&lt;br&gt;&lt;br&gt;There is a difference between breaking BC because of genuinely 
&lt;br&gt;insurmountable reasons, and breaking it because of pure laziness.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tony Marston
&lt;br&gt;&lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26258887.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26258194</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for  equivalent PCRE functions</title>
	<published>2009-11-08T13:30:31Z</published>
	<updated>2009-11-08T13:30:31Z</updated>
	<author>
		<name>Eddie Drapkin</name>
	</author>
	<content type="html">On Sun, Nov 8, 2009 at 4:13 PM, Tony Marston
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258194&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; That's an amateur fudge, not a professional fix. Besides, what happens if
&lt;br&gt;&amp;gt; your hosting company won't let you install PECL extensions?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Tony Marston
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;Eddie Drapkin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258194&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oorza2k5@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258194&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;68de37340911081209p45577d46r70a3c194f1079510@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt; On Sun, Nov 8, 2009 at 2:47 PM, Tony Marston
&lt;br&gt;&amp;gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258194&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;It is for the better&amp;quot;? How can you justify that? It is a problem that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; will
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; cause a lot of headaches for a lot of users, yet the solution which I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; have
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; proposed will remove that problem with only very little effort, yet still
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; leave only one regex engine which has to be supported in PHP 6.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; You have to balance out the small bit of effort required in implementing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this solution against the huge amount of effort required in changing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; thousands, if not millions of scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For the PHP developers to say &amp;quot;we can't be bothered to update the POSIX
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; functions to deal with unicode, so we've decided to drop them from PHP
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; entirely even though it will break lots of scripts&amp;quot; will not go down well
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; userland.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Tony Marston
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;quot;John Black&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258194&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;spam@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258194&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AF70120.1040209@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; The same can be said about the removal of magic_quotes(), it will break
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; A
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; LOT of old scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I am in the same boat, I did not keep up to date with the PHP developer
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; plans and just found out about ereg when I installed PHP 5.3.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I think it was handled properly by displaying warning messages before
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; actually removing it. It will give people enough time to update their
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; scripts or weed out the old and insecure scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Yes, it will create some headache but, AFAIK, it is for the better.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; John
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Intelligent Life
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://xkcd.com/638/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xkcd.com/638/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; The plan, as far as I am aware, is to move POSIX regular expressions
&lt;br&gt;&amp;gt;&amp;gt; into PECL as of PHP6.  If you can fix your scripts by simply running
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;pecl install ereg&amp;quot; what's all the hee-hawing about?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Then you've got several options:
&lt;br&gt;1) Don't upgrade PHP.
&lt;br&gt;2) Pick a different hosting provider.
&lt;br&gt;3) Fix your scripts.
&lt;br&gt;&lt;br&gt;You talk about a &amp;quot;professional&amp;quot; fix. &amp;nbsp;The right fix is to remove the
&lt;br&gt;depracated elements from your scripts before upgrading PHP, which
&lt;br&gt;realistically shouldn't be that big of a deal for the vast majority of
&lt;br&gt;expressions. &amp;nbsp;Rather than accept the change and just fix your scripts,
&lt;br&gt;you propose a problem that breaks a lot of other things and introduces
&lt;br&gt;way more problems than it solves.
&lt;br&gt;&lt;br&gt;You're not the first person to post this exact same tantrum on this
&lt;br&gt;list and the response has always been: fix your scripts or don't
&lt;br&gt;upgrade. &amp;nbsp;Seeing as PHP 6 is a long ways away you've got plenty of
&lt;br&gt;time to fix your scripts and it's not like this is being sprung
&lt;br&gt;overnight, so do the real professional thing and upgrade your scripts,
&lt;br&gt;if you want to upgrade (when 6 is released). &amp;nbsp;Breaking BC happens.
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26258194.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26258027</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-08T13:13:09Z</published>
	<updated>2009-11-08T13:13:09Z</updated>
	<author>
		<name>Tony Marston</name>
	</author>
	<content type="html">That's an amateur fudge, not a professional fix. Besides, what happens if 
&lt;br&gt;your hosting company won't let you install PECL extensions?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tony Marston
&lt;br&gt;&lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;quot;Eddie Drapkin&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258027&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oorza2k5@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258027&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;68de37340911081209p45577d46r70a3c194f1079510@...&lt;/a&gt;...
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, Nov 8, 2009 at 2:47 PM, Tony Marston
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258027&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;It is for the better&amp;quot;? How can you justify that? It is a problem that 
&lt;br&gt;&amp;gt;&amp;gt; will
&lt;br&gt;&amp;gt;&amp;gt; cause a lot of headaches for a lot of users, yet the solution which I 
&lt;br&gt;&amp;gt;&amp;gt; have
&lt;br&gt;&amp;gt;&amp;gt; proposed will remove that problem with only very little effort, yet still
&lt;br&gt;&amp;gt;&amp;gt; leave only one regex engine which has to be supported in PHP 6.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; You have to balance out the small bit of effort required in implementing
&lt;br&gt;&amp;gt;&amp;gt; this solution against the huge amount of effort required in changing
&lt;br&gt;&amp;gt;&amp;gt; thousands, if not millions of scripts.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For the PHP developers to say &amp;quot;we can't be bothered to update the POSIX
&lt;br&gt;&amp;gt;&amp;gt; functions to deal with unicode, so we've decided to drop them from PHP
&lt;br&gt;&amp;gt;&amp;gt; entirely even though it will break lots of scripts&amp;quot; will not go down well 
&lt;br&gt;&amp;gt;&amp;gt; in
&lt;br&gt;&amp;gt;&amp;gt; userland.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Tony Marston
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;quot;John Black&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258027&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;spam@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26258027&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AF70120.1040209@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; The same can be said about the removal of magic_quotes(), it will break 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; A
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; LOT of old scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I am in the same boat, I did not keep up to date with the PHP developer
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; plans and just found out about ereg when I installed PHP 5.3.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I think it was handled properly by displaying warning messages before
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; actually removing it. It will give people enough time to update their
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; scripts or weed out the old and insecure scripts.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Yes, it will create some headache but, AFAIK, it is for the better.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; John
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Intelligent Life
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://xkcd.com/638/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xkcd.com/638/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The plan, as far as I am aware, is to move POSIX regular expressions
&lt;br&gt;&amp;gt; into PECL as of PHP6. &amp;nbsp;If you can fix your scripts by simply running
&lt;br&gt;&amp;gt; &amp;quot;pecl install ereg&amp;quot; what's all the hee-hawing about? 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26258027.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26257429</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for  equivalent PCRE functions</title>
	<published>2009-11-08T12:09:36Z</published>
	<updated>2009-11-08T12:09:36Z</updated>
	<author>
		<name>Eddie Drapkin</name>
	</author>
	<content type="html">On Sun, Nov 8, 2009 at 2:47 PM, Tony Marston
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257429&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tony@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;quot;It is for the better&amp;quot;? How can you justify that? It is a problem that will
&lt;br&gt;&amp;gt; cause a lot of headaches for a lot of users, yet the solution which I have
&lt;br&gt;&amp;gt; proposed will remove that problem with only very little effort, yet still
&lt;br&gt;&amp;gt; leave only one regex engine which has to be supported in PHP 6.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You have to balance out the small bit of effort required in implementing
&lt;br&gt;&amp;gt; this solution against the huge amount of effort required in changing
&lt;br&gt;&amp;gt; thousands, if not millions of scripts.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For the PHP developers to say &amp;quot;we can't be bothered to update the POSIX
&lt;br&gt;&amp;gt; functions to deal with unicode, so we've decided to drop them from PHP
&lt;br&gt;&amp;gt; entirely even though it will break lots of scripts&amp;quot; will not go down well in
&lt;br&gt;&amp;gt; userland.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Tony Marston
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;quot;John Black&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257429&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;spam@...&lt;/a&gt;&amp;gt; wrote in message
&lt;br&gt;&amp;gt; news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257429&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AF70120.1040209@...&lt;/a&gt;...
&lt;br&gt;&amp;gt;&amp;gt; The same can be said about the removal of magic_quotes(), it will break A
&lt;br&gt;&amp;gt;&amp;gt; LOT of old scripts.
&lt;br&gt;&amp;gt;&amp;gt; I am in the same boat, I did not keep up to date with the PHP developer
&lt;br&gt;&amp;gt;&amp;gt; plans and just found out about ereg when I installed PHP 5.3.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I think it was handled properly by displaying warning messages before
&lt;br&gt;&amp;gt;&amp;gt; actually removing it. It will give people enough time to update their
&lt;br&gt;&amp;gt;&amp;gt; scripts or weed out the old and insecure scripts.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yes, it will create some headache but, AFAIK, it is for the better.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; John
&lt;br&gt;&amp;gt;&amp;gt; Intelligent Life
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://xkcd.com/638/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xkcd.com/638/&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;The plan, as far as I am aware, is to move POSIX regular expressions
&lt;br&gt;into PECL as of PHP6. &amp;nbsp;If you can fix your scripts by simply running
&lt;br&gt;&amp;quot;pecl install ereg&amp;quot; what's all the hee-hawing about?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26257429.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26257232</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-08T11:47:46Z</published>
	<updated>2009-11-08T11:47:46Z</updated>
	<author>
		<name>Tony Marston</name>
	</author>
	<content type="html">&amp;quot;It is for the better&amp;quot;? How can you justify that? It is a problem that will 
&lt;br&gt;cause a lot of headaches for a lot of users, yet the solution which I have 
&lt;br&gt;proposed will remove that problem with only very little effort, yet still 
&lt;br&gt;leave only one regex engine which has to be supported in PHP 6.
&lt;br&gt;&lt;br&gt;You have to balance out the small bit of effort required in implementing 
&lt;br&gt;this solution against the huge amount of effort required in changing 
&lt;br&gt;thousands, if not millions of scripts.
&lt;br&gt;&lt;br&gt;For the PHP developers to say &amp;quot;we can't be bothered to update the POSIX 
&lt;br&gt;functions to deal with unicode, so we've decided to drop them from PHP 
&lt;br&gt;entirely even though it will break lots of scripts&amp;quot; will not go down well in 
&lt;br&gt;userland.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Tony Marston
&lt;br&gt;&lt;a href=&quot;http://www.tonymarston.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.tonymarston.net&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://www.radicore.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.radicore.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;quot;John Black&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257232&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;spam@...&lt;/a&gt;&amp;gt; wrote in message 
&lt;br&gt;news:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26257232&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;4AF70120.1040209@...&lt;/a&gt;...
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The same can be said about the removal of magic_quotes(), it will break A 
&lt;br&gt;&amp;gt; LOT of old scripts.
&lt;br&gt;&amp;gt; I am in the same boat, I did not keep up to date with the PHP developer 
&lt;br&gt;&amp;gt; plans and just found out about ereg when I installed PHP 5.3.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think it was handled properly by displaying warning messages before 
&lt;br&gt;&amp;gt; actually removing it. It will give people enough time to update their 
&lt;br&gt;&amp;gt; scripts or weed out the old and insecure scripts.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes, it will create some headache but, AFAIK, it is for the better.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; John
&lt;br&gt;&amp;gt; Intelligent Life
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://xkcd.com/638/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xkcd.com/638/&lt;/a&gt;&amp;nbsp;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26257232.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26256924</id>
	<title>Re: Re: Die Page, Die! (Was: Preview button to show PDF without submittingpost data?)</title>
	<published>2009-11-08T11:14:36Z</published>
	<updated>2009-11-08T11:14:36Z</updated>
	<author>
		<name>Phpster</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;br&gt;On Nov 8, 2009, at 1:20 PM, Dave M G &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256924&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;martin@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Nathan,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you for responding.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; yup.. forget the new window all together, if you have it set to &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; download
&lt;br&gt;&amp;gt;&amp;gt; as an attachment then the user won't be taken away from the page; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; so no
&lt;br&gt;&amp;gt;&amp;gt; need for a new window at all.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Right... so, we're all on board with the goals.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now... how do I do that?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The whole problem here is that I keep getting a new window even &amp;nbsp;
&lt;br&gt;&amp;gt; though I
&lt;br&gt;&amp;gt; don't want it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I would have thought if I told PHP to die immediately after outputting
&lt;br&gt;&amp;gt; the PDF, it would give up on making the new window.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've also tried JavaScript to kill the window after it's made.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; *How* do I get the page to die?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Dave M G
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;&amp;gt; To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;If you are popping up a new window just to handle the download, what &amp;nbsp;
&lt;br&gt;about using a small iframe or hidden frame to handle that instead?
&lt;br&gt;&lt;br&gt;Bastien
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preview-button-to-show-PDF-without-submitting-post-data--tp26226615p26256924.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26256347</id>
	<title>Re: Re: Die Page, Die! (Was: Preview button to show PDF without submittingpost data?)</title>
	<published>2009-11-08T10:20:11Z</published>
	<updated>2009-11-08T10:20:11Z</updated>
	<author>
		<name>Dave M G</name>
	</author>
	<content type="html">Nathan,
&lt;br&gt;&lt;br&gt;Thank you for responding.
&lt;br&gt;&lt;br&gt;&amp;gt; yup.. forget the new window all together, if you have it set to download
&lt;br&gt;&amp;gt; as an attachment then the user won't be taken away from the page; so no
&lt;br&gt;&amp;gt; need for a new window at all.
&lt;br&gt;&lt;br&gt;Right... so, we're all on board with the goals.
&lt;br&gt;&lt;br&gt;Now... how do I do that?
&lt;br&gt;&lt;br&gt;The whole problem here is that I keep getting a new window even though I
&lt;br&gt;don't want it.
&lt;br&gt;&lt;br&gt;I would have thought if I told PHP to die immediately after outputting
&lt;br&gt;the PDF, it would give up on making the new window.
&lt;br&gt;&lt;br&gt;I've also tried JavaScript to kill the window after it's made.
&lt;br&gt;&lt;br&gt;*How* do I get the page to die?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Dave M G
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Preview-button-to-show-PDF-without-submitting-post-data--tp26226615p26256347.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26256015</id>
	<title>Re: Carriage Returns</title>
	<published>2009-11-08T09:43:00Z</published>
	<updated>2009-11-08T09:43:00Z</updated>
	<author>
		<name>Nathan Rixham</name>
	</author>
	<content type="html">Dan Shirah wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; My guess is that you are getting an SQL error returned to you. &amp;nbsp;What does
&lt;br&gt;&amp;gt;&amp;gt; that
&lt;br&gt;&amp;gt;&amp;gt; say? &amp;nbsp;Is it talking about a broken SQL statement?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Also, an example of the actual insert statement with example data would be
&lt;br&gt;&amp;gt;&amp;gt; helpful.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm getting the generic error message: Prepare fails (E [SQLSTATE=IX 000
&lt;br&gt;&amp;gt; SQLCODE=-282])
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My insert statement when echo'd out using print_r($insert) is nothing
&lt;br&gt;&amp;gt; complex.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; INSERT INTO my_table VALUES (0, 'This is my text. When I use carriage
&lt;br&gt;&amp;gt; returns it breaks. I am not sure why.')
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;informix doesn't allow new lines in sql strings; unless you enable the
&lt;br&gt;&amp;quot;ALLOW_NEWLINE&amp;quot; setting on the server.
&lt;br&gt;&lt;br&gt;to remove newlines I'd suggest stripping all vertical space and
&lt;br&gt;replacing it with spaces, then stripping down the excess horizontal
&lt;br&gt;space.. something like
&lt;br&gt;&lt;br&gt;function strip_newlines( $string ) {
&lt;br&gt;&amp;nbsp; $string = preg_replace( '/\v/' , ' ' , $string );
&lt;br&gt;&amp;nbsp; $string = preg_replace( '/\h\h+/' , ' ' , $string );
&lt;br&gt;&amp;nbsp; return $string;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;$sql = strip_newlines( $sql );
&lt;br&gt;&lt;br&gt;regards,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Carriage-Returns-tp26234743p26256015.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26255923</id>
	<title>Re: Convert deprecated POSIX functions into wrappers for equivalent PCRE functions</title>
	<published>2009-11-08T09:34:24Z</published>
	<updated>2009-11-08T09:34:24Z</updated>
	<author>
		<name>Bugzilla from spam@network-technologies.org</name>
	</author>
	<content type="html">The same can be said about the removal of magic_quotes(), it will break 
&lt;br&gt;A LOT of old scripts.
&lt;br&gt;I am in the same boat, I did not keep up to date with the PHP developer 
&lt;br&gt;plans and just found out about ereg when I installed PHP 5.3.
&lt;br&gt;&lt;br&gt;I think it was handled properly by displaying warning messages before 
&lt;br&gt;actually removing it. It will give people enough time to update their 
&lt;br&gt;scripts or weed out the old and insecure scripts.
&lt;br&gt;&lt;br&gt;Yes, it will create some headache but, AFAIK, it is for the better.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;John
&lt;br&gt;Intelligent Life
&lt;br&gt;&lt;a href=&quot;http://xkcd.com/638/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xkcd.com/638/&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;PHP General Mailing List (&lt;a href=&quot;http://www.php.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/&lt;/a&gt;)
&lt;br&gt;To unsubscribe, visit: &lt;a href=&quot;http://www.php.net/unsub.php&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.php.net/unsub.php&lt;/a&gt;&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Convert-deprecated-POSIX-functions-into-wrappers-for-equivalent-PCRE-functions-tp26255799p26255923.html" />
</entry>

</feed>
